about summary refs log tree commit diff
path: root/library/sysroot
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-01-28 22:25:23 +0000
committerTrevor Gross <tmgross@umich.edu>2025-02-21 17:37:03 +0000
commit8c1b49d5e92c035661459063a645b78a47b6346a (patch)
treea8ba6543bb67eea250dbad131a6e7df825998ba5 /library/sysroot
parentcb1d076d42e9285488436688b8879225ab6db80e (diff)
downloadrust-8c1b49d5e92c035661459063a645b78a47b6346a.tar.gz
rust-8c1b49d5e92c035661459063a645b78a47b6346a.zip
Use `public-dependencies` in all sysroot crates
In [1], most dependencies of `std` and other sysroot crates were marked
private, but this did not happen for `alloc` and `test`. Update these
here, marking public standard library crates as the only non-private
dependencies.

[1]: https://github.com/rust-lang/rust/pull/111076
Diffstat (limited to 'library/sysroot')
-rw-r--r--library/sysroot/Cargo.toml8
1 files changed, 5 insertions, 3 deletions
diff --git a/library/sysroot/Cargo.toml b/library/sysroot/Cargo.toml
index aa6c3dc32e2..45a9eda445d 100644
--- a/library/sysroot/Cargo.toml
+++ b/library/sysroot/Cargo.toml
@@ -1,3 +1,5 @@
+cargo-features = ["public-dependency"]
+
 [package]
 name = "sysroot"
 version = "0.0.0"
@@ -5,10 +7,10 @@ edition = "2021"
 
 # this is a dummy crate to ensure that all required crates appear in the sysroot
 [dependencies]
-proc_macro = { path = "../proc_macro" }
+proc_macro = { path = "../proc_macro", public = true }
 profiler_builtins = { path = "../profiler_builtins", optional = true }
-std = { path = "../std" }
-test = { path = "../test" }
+std = { path = "../std", public = true }
+test = { path = "../test", public = true }
 
 # Forward features to the `std` crate as necessary
 [features]