Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --public for cargo add #13046

Merged
merged 10 commits into from
Dec 1, 2023
3 changes: 3 additions & 0 deletions tests/testsuite/cargo_add/no_public/in/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cargo-features = ["public-dependency"]
[workspace]

[lib]
path = "../../add_basic.in/src/lib.rs"
linyihai marked this conversation as resolved.
Show resolved Hide resolved

[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
Empty file.
3 changes: 3 additions & 0 deletions tests/testsuite/cargo_add/no_public/out/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cargo-features = ["public-dependency"]
[workspace]

[lib]
path = "../../add_basic.in/src/lib.rs"

[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
Expand Down
3 changes: 3 additions & 0 deletions tests/testsuite/cargo_add/overwrite_no_public/in/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cargo-features = ["public-dependency"]
[workspace]

[lib]
path = "../../add_basic.in/src/lib.rs"

[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
Expand Down
Empty file.
3 changes: 3 additions & 0 deletions tests/testsuite/cargo_add/overwrite_no_public/out/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cargo-features = ["public-dependency"]
[workspace]

[lib]
path = "../../add_basic.in/src/lib.rs"

[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cargo-features = ["public-dependency"]
[workspace]

[lib]
path = "../../add_basic.in/src/lib.rs"

[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cargo-features = ["public-dependency"]
[workspace]

[lib]
path = "../../add_basic.in/src/lib.rs"

[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
Expand Down
3 changes: 3 additions & 0 deletions tests/testsuite/cargo_add/overwrite_public/in/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cargo-features = ["public-dependency"]
[workspace]

[lib]
path = "../../add_basic.in/src/lib.rs"

[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
Expand Down
Empty file.
3 changes: 3 additions & 0 deletions tests/testsuite/cargo_add/overwrite_public/out/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cargo-features = ["public-dependency"]
[workspace]

[lib]
path = "../../add_basic.in/src/lib.rs"

[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cargo-features = ["public-dependency"]
[workspace]

[lib]
path = "../../add_basic.in/src/lib.rs"

[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cargo-features = ["public-dependency"]
[workspace]

[lib]
path = "../../add_basic.in/src/lib.rs"

[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite/cargo_add/public/in

This file was deleted.

9 changes: 9 additions & 0 deletions tests/testsuite/cargo_add/public/in/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cargo-features = ["public-dependency"]
[workspace]

[lib]
path = "../../add_basic.in/src/lib.rs"

[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
3 changes: 3 additions & 0 deletions tests/testsuite/cargo_add/public/out/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cargo-features = ["public-dependency"]
[workspace]

[lib]
path = "../../add_basic.in/src/lib.rs"

[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
Expand Down