Commit Graph

29 Commits

Author SHA1 Message Date
Eric Huss 888100352a Move ProcessBuilder to cargo-util. 2021-03-20 15:19:03 -07:00
Alex Crichton cc5e9df64a Cache failures in the rustc info cache
This commit updates the rustc info cache to cache failures to execute
rustc as well as successes. This fixes a weird issue where if you're
probing for flags the `rustc_info_cache` test fails on channels which
don't have the flag since previously a failure to execute rustc resulted
in never caching the result.
2021-02-01 11:29:25 -08:00
Dirkjan Ochtman c221fec911 Implement support for rust-version field in project metadata 2021-01-20 11:40:41 +01:00
Weihang Lo 0f1534ce8f
refactor: simplify match -> if let 2020-10-10 07:17:18 +08:00
Weihang Lo 2361fb0f6a
feat: glob support for package selection 2020-10-05 01:24:41 +08:00
Hanif Bin Ariffin 47428433d4 Fixed a spelling and some clippy warnings 2020-08-19 18:20:51 -04:00
Eric Huss 18bc90cd0e Show full error context on `cargo run` error. 2020-08-17 08:55:37 -07:00
Eric Huss 0e26eae5c1 Display embedded man pages for built-in commands. 2020-08-03 12:30:38 -07:00
Eric Huss aa80a984c0 Add unit-graph JSON output. 2020-03-15 15:16:36 -07:00
Dan Aloni 29b7e90ba3 named-profiles: formatting fixes from 'cargo fmt' 2019-06-20 19:43:33 +03:00
Dan Aloni 2f81adb115 named-profiles: feature gate exemptions
To preserve old `profile` behavior, some cases of `--profile`
should not trigger an error. Plus, the 'check' profile should be
allowed for profile selection tests and `rustc --profile=check`.
2019-06-20 18:32:29 +03:00
Dan Aloni 86c459d423 Support for named Cargo profiles
This allows creating custom profiles that inherit from other profiles.

For example, one can have a release-lto profile that looks like this:

    [profile.release-lto]
    inherits = "release"
    lto = true

The profile name will also carry itself into the output directory name
so that the different build outputs can be cached independently from
one another.

So in effect, at the `target` directory, a name will be created for
the new profile, in addition to the 'debug' and 'release' builds:

```
    $ cargo build --profile release-lto
    $ ls -l target
    debug release release-lto
```
2019-05-27 21:35:31 +03:00
John Bartholomew 6d066a6707 Remove ops::run_os, change ops::run to take &[OsString] directly. 2019-04-15 19:26:42 +01:00
John Bartholomew 3ab8407c5a Pass OsStr/OsString args through to the process spawned by cargo run.
To avoid breaking other (external) callers of ops::run(), this adds a
new function ops::run_os() taking an &[OsString], and turns ops::run()
into a wrapper (keeping its original signature) that calls run_os().
2019-04-14 16:56:56 +01:00
bors d74d879d63 Auto merge of #6358 - collin5:b4325, r=ehuss
Add --quiet option for `cargo test`

Fixes #4325
2019-03-11 17:00:13 +00:00
Collins Abitekaniza e873e4e9d5 explicitly add --quiet option to all subcommands 2019-02-21 18:35:17 +03:00
Dale Wijnand 12307fc29f
Introduce CompileFilter::from_raw_arguments
... in order to give CompileFilter::new as a better API.
2019-02-20 12:40:03 +00:00
Dale Wijnand 96269c27b8
Fix run's help message 2019-02-05 14:41:44 +01:00
Damian a51759c5e8 Moved checks into compile_options(), changed tests 2019-01-03 23:00:45 +01:00
Damian 56b6a80f57 --example with no argument now lists all available examples 2019-01-01 11:03:55 +01:00
Dale Wijnand 6d1d3a6840
Fix 2018 edition idioms 2018-12-06 20:26:07 +01:00
Dale Wijnand 04ddd4d0fc
Upgrade to Rust 2018 2018-12-06 20:18:35 +01:00
Eric Huss e8f37daeff Fix built-in aliases taking arguments. 2018-12-05 09:29:10 -08:00
Hidehito Yabuuchi ea1f525c02 Allow user aliases to override built-in aliases 2018-11-18 18:08:28 +09:00
Zach Lute 3492a3905c Replace 'project' with 'package' in many strings and comments. 2018-09-20 23:47:09 -07:00
Eric Huss fa54a79433 Allow `cargo run` in workspaces. 2018-08-08 18:39:00 -07:00
Ralf Jung 5936f6ae9e implement default-run option to set default binary for cargo run 2018-07-16 21:48:14 +02:00
Dirkjan Ochtman 293a2a7fab Expose CompileMode in command_prelude 2018-05-03 21:54:48 +02:00
Eric Huss 795f69b3dd Address autobins warning. 2018-05-03 10:08:26 -07:00