mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
chore: add lib.rs for new test cases
This commit is contained in:
parent
703446165b
commit
a6ca281948
@ -67,14 +67,14 @@ The package will be removed from your features.")
|
||||
.conflicts_with("build")
|
||||
.long_help("Mark the dependency as public
|
||||
|
||||
The dependnecy will be visible in both of your crate and outside."),
|
||||
The dependency can be referenced in your library's public API."),
|
||||
flag("no-public", "Mark the dependency as private")
|
||||
.conflicts_with("dev")
|
||||
.conflicts_with("build")
|
||||
.overrides_with("public")
|
||||
.long_help("Mark the dependency as private
|
||||
|
||||
The dependnecy will be only visible in your crate other than outside."),
|
||||
While you can use the crate in your implementation, it cannot be referenced in your public API."),
|
||||
clap::Arg::new("rename")
|
||||
.long("rename")
|
||||
.action(ArgAction::Set)
|
||||
|
@ -35,12 +35,13 @@ Options:
|
||||
--public
|
||||
Mark the dependency as public
|
||||
|
||||
The dependnecy will be visible in both of your crate and outside.
|
||||
The dependency can be referenced in your library's public API.
|
||||
|
||||
--no-public
|
||||
Mark the dependency as private
|
||||
|
||||
The dependnecy will be only visible in your crate other than outside.
|
||||
While you can use the crate in your implementation, it cannot be referenced in your public
|
||||
API.
|
||||
|
||||
--rename <NAME>
|
||||
Rename the dependency
|
||||
|
@ -1,9 +1,6 @@
|
||||
cargo-features = ["public-dependency"]
|
||||
[workspace]
|
||||
|
||||
[lib]
|
||||
path = "../../add_basic.in/src/lib.rs"
|
||||
|
||||
[package]
|
||||
name = "cargo-list-test-fixture"
|
||||
version = "0.0.0"
|
||||
|
0
tests/testsuite/cargo_add/no_public/in/src/lib.rs
Normal file
0
tests/testsuite/cargo_add/no_public/in/src/lib.rs
Normal file
@ -1,9 +1,6 @@
|
||||
cargo-features = ["public-dependency"]
|
||||
[workspace]
|
||||
|
||||
[lib]
|
||||
path = "../../add_basic.in/src/lib.rs"
|
||||
|
||||
[package]
|
||||
name = "cargo-list-test-fixture"
|
||||
version = "0.0.0"
|
||||
|
@ -1,9 +1,6 @@
|
||||
cargo-features = ["public-dependency"]
|
||||
[workspace]
|
||||
|
||||
[lib]
|
||||
path = "../../add_basic.in/src/lib.rs"
|
||||
|
||||
[package]
|
||||
name = "cargo-list-test-fixture"
|
||||
version = "0.0.0"
|
||||
|
@ -1,9 +1,6 @@
|
||||
cargo-features = ["public-dependency"]
|
||||
[workspace]
|
||||
|
||||
[lib]
|
||||
path = "../../add_basic.in/src/lib.rs"
|
||||
|
||||
[package]
|
||||
name = "cargo-list-test-fixture"
|
||||
version = "0.0.0"
|
||||
|
@ -1,9 +1,6 @@
|
||||
cargo-features = ["public-dependency"]
|
||||
[workspace]
|
||||
|
||||
[lib]
|
||||
path = "../../add_basic.in/src/lib.rs"
|
||||
|
||||
[package]
|
||||
name = "cargo-list-test-fixture"
|
||||
version = "0.0.0"
|
||||
|
@ -1,9 +1,6 @@
|
||||
cargo-features = ["public-dependency"]
|
||||
[workspace]
|
||||
|
||||
[lib]
|
||||
path = "../../add_basic.in/src/lib.rs"
|
||||
|
||||
[package]
|
||||
name = "cargo-list-test-fixture"
|
||||
version = "0.0.0"
|
||||
|
@ -1,9 +1,6 @@
|
||||
cargo-features = ["public-dependency"]
|
||||
[workspace]
|
||||
|
||||
[lib]
|
||||
path = "../../add_basic.in/src/lib.rs"
|
||||
|
||||
[package]
|
||||
name = "cargo-list-test-fixture"
|
||||
version = "0.0.0"
|
||||
|
@ -1,9 +1,6 @@
|
||||
cargo-features = ["public-dependency"]
|
||||
[workspace]
|
||||
|
||||
[lib]
|
||||
path = "../../add_basic.in/src/lib.rs"
|
||||
|
||||
[package]
|
||||
name = "cargo-list-test-fixture"
|
||||
version = "0.0.0"
|
||||
|
@ -1,9 +1,6 @@
|
||||
cargo-features = ["public-dependency"]
|
||||
[workspace]
|
||||
|
||||
[lib]
|
||||
path = "../../add_basic.in/src/lib.rs"
|
||||
|
||||
[package]
|
||||
name = "cargo-list-test-fixture"
|
||||
version = "0.0.0"
|
||||
|
@ -1,9 +1,6 @@
|
||||
cargo-features = ["public-dependency"]
|
||||
[workspace]
|
||||
|
||||
[lib]
|
||||
path = "../../add_basic.in/src/lib.rs"
|
||||
|
||||
[package]
|
||||
name = "cargo-list-test-fixture"
|
||||
version = "0.0.0"
|
||||
|
@ -1,9 +1,6 @@
|
||||
cargo-features = ["public-dependency"]
|
||||
[workspace]
|
||||
|
||||
[lib]
|
||||
path = "../../add_basic.in/src/lib.rs"
|
||||
|
||||
[package]
|
||||
name = "cargo-list-test-fixture"
|
||||
version = "0.0.0"
|
||||
|
0
tests/testsuite/cargo_add/public/in/src/lib.rs
Normal file
0
tests/testsuite/cargo_add/public/in/src/lib.rs
Normal file
@ -1,9 +1,6 @@
|
||||
cargo-features = ["public-dependency"]
|
||||
[workspace]
|
||||
|
||||
[lib]
|
||||
path = "../../add_basic.in/src/lib.rs"
|
||||
|
||||
[package]
|
||||
name = "cargo-list-test-fixture"
|
||||
version = "0.0.0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user