Ramana Venkata
1bad99180a
cargo install
will ignore the target triple specified in a project directory
...
Fixes #5441
2018-06-17 19:49:31 +05:30
Mateusz Mikuła
059107e1a0
Always replace metadata when replacing package
...
Fixes https://github.com/rust-lang/cargo/issues/4582
2018-05-25 14:37:40 +02:00
Alex Crichton
8413008937
Rename the rust
manifest key to edition
...
This'll hopefully jive better with the terminology of "edition" throughout the
rest of Rust!
2018-05-03 11:45:04 -07:00
Aleksey Kladov
658343aa10
Don't install pre-releases by default
2018-05-03 01:32:06 +03:00
Dirkjan Ochtman
5c241e1027
Correct formatting with cargo fmt
2018-04-11 23:16:17 +02:00
Dale Wijnand
3ba58ae987
add the inverse is_not has_installed_exe
assertion
2018-04-10 15:13:26 +01:00
Dale Wijnand
e201a8949c
warn in 2015, error in 2018
2018-04-10 15:10:38 +01:00
Dale Wijnand
6086f26f91
enable cargo edition feature & bump to 2018
2018-04-10 06:44:59 +01:00
Dale Wijnand
4676820fea
Warn about cargo installing the cwd in 2018 edition
...
Fixes #5327
2018-04-10 01:37:12 +01:00
Lukas Lueg
81ed0620bc
Assert that Dependency::name is never empty, prevent 'install ""' from crashing
...
An explicit `cargo install ""` would cause clap to pass an empty crate-name,
leading to a panic(). We now assert() that Dependency::name is never the
empty string and prevent the situation in the first place by not allowing
the crate-name to be empty for `install`.
Fixes #5229
2018-03-23 16:07:01 +01:00
Ximin Luo
89d274875f
Revert "Work around #5134 for now"
...
This reverts commit d46db71b3ff17dfc0f4be6308c8b94613d65a572.
2018-03-15 17:05:13 +01:00
Aleksey Kladov
b0c181d91c
Prettify rustfmted single-line strings
2018-03-14 17:48:44 -07:00
Alex Crichton
1e6828485e
cargo fmt
2018-03-14 17:48:23 -07:00
Aleksey Kladov
16bde4e0ae
Unwind stack for cli errors
2018-03-09 10:43:00 +03:00
Aleksey Kladov
0470d77575
Support list subcommand
...
All tests are green 🎉
2018-03-08 23:31:56 +03:00
Aleksey Kladov
4d3ca92150
Use exit code 1 for command line parsing errors
...
Note that while we use 101 in majority of cases, sometimes we use 1 as
well.
2018-03-08 23:31:56 +03:00
Aleksey Kladov
c327245ca5
Drop old commands
2018-03-08 23:31:56 +03:00
Aleksey Kladov
57789d7ddc
Move install to clap
2018-03-08 23:30:46 +03:00
Ximin Luo
d46db71b3f
Work around #5134 for now
2018-03-07 14:46:43 +01:00
Ximin Luo
9c5eecd419
Merge remote-tracking branch 'upstream/master' into pr4988
2018-03-03 12:56:08 +01:00
Alex Crichton
a4a3302d46
Package lock files in published crates
...
Previously we had logic to explicitly skip lock files but there's actually a
good case to read these from crates.io (#2263 ) so let's do so!
Closes #2263
2018-02-28 13:57:16 -08:00
Alex Crichton
8b475c1085
Respect lock files in crates.io crates
...
Currently Cargo doesn't publish lock files in crates.io crates but we'll
eventually be doing so, so this changes Cargo to recognize `Cargo.lock` when
it's published to crates.io as use it as the basis for resolution during `cargo
install`.
cc #2263
2018-02-27 07:50:58 -08:00
Eh2406
0247dc429a
intellij rust suggested fixes
...
(cherry picked from commit 24836e9)
2018-02-26 17:29:17 -05:00
André Rocha
c2ff988c9f
Reorganize integration tests as one crate with many modules. Issue #4867 .
2018-02-21 13:33:51 -05:00