chore: add lib.rs for new test cases

This commit is contained in:
Lin Yihai 2023-12-01 10:21:33 +08:00
parent 703446165b
commit a6ca281948
20 changed files with 5 additions and 40 deletions

View File

@ -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)

View File

@ -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

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"