Move system-configuration dependency from stdlib to host_env · RustPython/RustPython@bfffa60 · GitHub
Skip to content

Commit bfffa60

Browse files
committed
Move system-configuration dependency from stdlib to host_env
Re-export the macOS system-configuration crate as host_env::system_configuration and update _scproxy call sites.
1 parent c1be714 commit bfffa60

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/host_env/Cargo.toml

Lines changed: 3 additions & 0 deletions

crates/host_env/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ pub mod time;
6565

6666
#[cfg(windows)]
6767
pub mod cert_store;
68+
#[cfg(target_os = "macos")]
69+
pub mod system_configuration {
70+
pub use ::system_configuration::*;
71+
}
6872
#[cfg(any(unix, windows))]
6973
pub mod faulthandler;
7074
#[cfg(any(unix, windows))]

crates/stdlib/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ liblzma-sys = { workspace = true }
131131
paste = { workspace = true }
132132
widestring = { workspace = true }
133133

134-
[target.'cfg(target_os = "macos")'.dependencies]
135-
system-configuration = { workspace = true }
136-
137134
[dev-dependencies]
138135
insta = { workspace = true }
139136
rustpython-pylib = { workspace = true, features = [ "freeze-stdlib" ] }

crates/stdlib/src/scproxy.rs

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)