David Tolnay
f3834292b2
Pull in C-string literal support in prettyplease, syn, and proc-macro2
2024-04-14 18:09:27 -07:00
David Tolnay
eda549f0e5
Match flag_value's signature to Command::arg
2024-04-06 12:24:43 -07:00
David Tolnay
cfaac2f15c
Convert the last --k=v flag to use flag_value
2024-04-06 12:21:06 -07:00
David Tolnay
5c607447c1
Move fallible print_command out of apply_args
2024-04-06 10:41:57 -07:00
David Tolnay
1f5c8900fd
Copy trivial Coloring enum
2024-04-06 10:40:58 -07:00
David Tolnay
620c049f39
No need to convert to String first
2024-04-06 10:33:38 -07:00
David Tolnay
efb5715dc0
Merge pull request #223 from dtolnay/commandext
...
Move flag_value to an extension trait
2024-04-06 10:06:23 -07:00
David Tolnay
2a5e85c131
Move flag_value to an extension trait
2024-04-06 10:02:56 -07:00
David Tolnay
5c0f97ff03
Release 1.0.82
2024-04-06 09:55:43 -07:00
David Tolnay
4c094e0bb8
Lockfile update
2024-04-06 09:54:42 -07:00
David Tolnay
f5f212a65a
Merge pull request #222 from dtolnay/flagvalue
...
Pass flags as single arg where possible
2024-04-06 09:54:11 -07:00
David Tolnay
275c52e29e
Pass flags as single arg where possible
2024-04-06 09:46:05 -07:00
David Tolnay
d9d2488371
Merge pull request #221 from dtolnay/flagquote
...
Apply flaglike quoting only to flags
2024-04-06 09:40:20 -07:00
David Tolnay
59b7f1a9ad
Apply flaglike quoting only to flags
...
Before:
--config='build.rustflags=[]' --config host.rustflags='[]'
After:
--config='build.rustflags=[]' --config 'host.rustflags=[]'
2024-04-06 09:34:19 -07:00
David Tolnay
6b5ab10276
Merge pull request #220 from dtolnay/commandargs
...
Skip a CommandArgs clone
2024-04-06 09:34:05 -07:00
David Tolnay
8eb4623203
Skip a CommandArgs clone
2024-04-06 09:27:17 -07:00
David Tolnay
5c4d331ce5
Ignore new_without_default clippy lint
...
warning: you should consider adding a `Default` implementation for `CommandArgs`
--> src/cmd.rs:11:5
|
11 | / pub fn new() -> Self {
12 | | CommandArgs { args: Vec::new() }
13 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
10 + impl Default for CommandArgs {
11 + fn default() -> Self {
12 + Self::new()
13 + }
14 + }
|
2024-04-06 09:26:51 -07:00
David Tolnay
da2d88c871
Merge pull request #219 from dtolnay/quoteeq
...
Omit quotes around flags containing '='
2024-04-06 09:20:24 -07:00
David Tolnay
e47c55a419
Omit quotes around flags containing '='
2024-04-06 09:14:36 -07:00
David Tolnay
e3d5f7e3ec
Merge pull request #218 from dtolnay/shlex
...
Improve quoting of printed command
2024-04-06 09:04:52 -07:00
David Tolnay
6f67acec37
Improve quoting of printed command
2024-04-06 09:00:57 -07:00
David Tolnay
8170047456
Release 1.0.81
2024-03-29 14:24:12 -07:00
David Tolnay
577cd687b7
Lockfile update
2024-03-29 14:23:43 -07:00
David Tolnay
ed628471e7
Minimize RUSTFLAGS churn to reduce some rebuilds
2024-03-29 14:22:11 -07:00
David Tolnay
e8878f449f
Consolidate CI test and build workflows
2024-03-29 14:17:38 -07:00
David Tolnay
c2502d01d5
Merge pull request #217 from dtolnay/exec
...
Use Command::exec on cfg(unix)
2024-03-29 14:14:34 -07:00
David Tolnay
0be0341cc0
Use Command::exec on cfg(unix)
2024-03-29 14:11:20 -07:00
David Tolnay
fb2b123239
Ignore needless_return clippy lint
...
warning: unneeded `return` statement
--> src/main.rs:106:9
|
106 | return Err(Error::Io(err));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
106 - return Err(Error::Io(err));
106 + Err(Error::Io(err))
|
2024-03-29 14:09:01 -07:00
David Tolnay
4bf1ebdbea
Resolve enum_glob_use pedantic clippy lint
...
warning: usage of wildcard import for enum variants
--> src/main.rs:31:5
|
31 | use crate::opts::Coloring::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `crate::opts::Coloring::{Always, Auto, Never}`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_glob_use
= note: `-W clippy::enum-glob-use` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::enum_glob_use)]`
2024-03-29 14:06:37 -07:00
David Tolnay
6373604bdb
Merge pull request #216 from dtolnay/wrapper
...
Avoid triggering rerun-if-env-changed on RUSTC_BOOTSTRAP if possible
2024-03-29 14:02:56 -07:00
David Tolnay
4832aa3d29
Avoid triggering rerun-if-env-changed on RUSTC_BOOTSTRAP if possible
2024-03-29 13:55:54 -07:00
David Tolnay
7fe6b0203b
Merge pull request #215 from dtolnay/ci
...
Skip cargo test in most CI jobs
2024-03-29 13:54:03 -07:00
David Tolnay
d9bf9ec500
Skip cargo test in most CI jobs
2024-03-29 13:48:52 -07:00
David Tolnay
db00234ff5
Merge pull request #214 from dtolnay/ci
...
Add CI on macOS and Windows
2024-03-29 13:47:23 -07:00
David Tolnay
5185a4df8a
Add CI on macOS and Windows
2024-03-29 13:44:15 -07:00
David Tolnay
5a7f8b09d3
Merge pull request #213 from dtolnay/wrapper
...
Apply RUSTC_WRAPPER and RUSTC_WORKSPACE_WRAPPER
2024-03-29 13:00:29 -07:00
David Tolnay
f3b97bf103
Apply RUSTC_WRAPPER and RUSTC_WORKSPACE_WRAPPER
2024-03-29 12:57:46 -07:00
David Tolnay
f08dec1910
Merge pull request #212 from dtolnay/fserr
...
Use fs-err to improve error messages on filesystem operations
2024-03-29 08:50:50 -07:00
David Tolnay
7df18f3c2b
Use fs-err to improve error messages on filesystem operations
2024-03-29 08:49:17 -07:00
David Tolnay
95d6e65d4e
Merge pull request #211 from dtolnay/causedby
...
Print causes with error
2024-03-29 08:43:21 -07:00
David Tolnay
d74787b4f4
Print causes with error
2024-03-29 08:38:31 -07:00
David Tolnay
799aa1079b
Explicitly install a Rust toolchain for cargo-outdated job
...
Debugging a recent cargo-outdated bug, it would have been nice not to
wonder whether a rustc version change in GitHub's runner image was a
contributing factor.
2024-03-25 22:24:49 -07:00
David Tolnay
71a72f0011
Release 1.0.80
2024-03-24 22:36:48 -07:00
David Tolnay
3bd71b39c2
Lockfile update
2024-03-24 22:35:44 -07:00
David Tolnay
70d4187dba
Pull in prettyplease UseGroup fix
2024-03-24 22:35:37 -07:00
David Tolnay
bec65bf4f2
Ignore doc_markdown pedantic clippy lint
...
warning: item in documentation is missing backticks
--> src/opts.rs:131:66
|
131 | /// Local path to module or other named item to expand, e.g. os::unix::ffi
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
= note: `-W clippy::doc-markdown` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::doc_markdown)]`
help: try
|
131 | /// Local path to module or other named item to expand, e.g. `os::unix::ffi`
| ~~~~~~~~~~~~~~~
2024-02-27 22:30:51 -08:00
David Tolnay
4934b35c02
Raise minimum tested compiler to 1.74
...
Required by newest versions of clap and clap_builder.
error: package `clap_builder v4.5.0` cannot be built because it requires rustc 1.74 or
newer, while the currently active rustc version is 1.70.0
Either upgrade to rustc 1.74 or newer, or use
cargo update -p clap_builder@4.5.0 --precise ver
where `ver` is the latest version of `clap_builder` supporting rustc 1.70.0
2024-02-08 19:14:26 -08:00
David Tolnay
07c5c5935b
Merge pull request #208 from dtolnay/fallback
...
Remove pre-1.57 proc_macro2::fallback::force()
2024-01-20 17:12:04 -08:00
David Tolnay
79a45046de
Remove pre-1.57 proc_macro2::fallback::force()
2024-01-20 17:09:13 -08:00
David Tolnay
ce7b6148f8
Merge pull request #207 from dtolnay/exhaustive
...
Pick up changes to non_exhaustive_omitted_patterns lint
2024-01-03 18:20:05 -08:00