system-configuration-rs icon indicating copy to clipboard operation
system-configuration-rs copied to clipboard

Bindings to System Configuration framework for macOS

Results 13 system-configuration-rs issues
Sort by recently updated
recently updated
newest added

File Changes: ``` system-configuration-sys/src/lib.rs system-configuration-sys/src/network_configuration.rs system-configuration-sys/src/preferences.rs system-configuration/Cargo.toml system-configuration/src/lib.rs system-configuration/src/network_configuration.rs system-configuration/examples/dns.rs ``` --- This change is [](https://reviewable.io/reviews/mullvad/system-configuration-rs/8)

`SCDynamicStore::get_proxies` always pass self as a reference. There is no way to call `SCDynamicStoreCopyProxies(NULL)`

This make `SCNetworkReachabilityCreateWithAddressPair` work with any valid pair of addresses, not only `0.0.0.0`. The fixed implementation is mostly taken from [`socket2`](https://github.com/rust-lang/socket2) - - - This change is [](https://reviewable.io/reviews/mullvad/system-configuration-rs/54)

Closes #51 I think to the least, Send + 'static is required. But it also depends on whether the callback might be invoked concurrently, which I think is possible, since...

Add binding to `` which includes functions that returns keys to be used for settings up notifications in SCDynamicStore. - - - This change is [](https://reviewable.io/reviews/mullvad/system-configuration-rs/52)

https://github.com/mullvad/system-configuration-rs/blob/fd43df6f57de954878d824c14c08b57045e46e76/system-configuration/src/dynamic_store.rs#L35-L44

Hi @gregoire-mullvad , can you create another crate to wrap `CFNetwork` framework? It's very useful.

We noticed crashes due to missing `null` checks in `dynamic_store.rs`. Additional background: `SCDynamicStoreCreate` / `SCDynamicStoreCreateWithOptions` can return `null`. The returned value is currently passed to `wrap_under_create_rule` without a `null` check,...

Fixes compilation errors when compiling on non-MacOS systems. Now causes compilation to be a no-op. Fixes [Issue #62 ](https://github.com/mullvad/system-configuration-rs/issues/62) - - - This change is [](https://reviewable.io/reviews/mullvad/system-configuration-rs/63)

I am getting the following build error from `system_configuration` v0.6.1 when building on Linux: ``` ERROR: /root/.cache/bazel/_bazel_root/f1dda70852d9c97abf4f8f9fda6b2822/external/rules_rust~~crate~crates_index__system-configuration-0.6.1/BUILD.bazel:16:13: Compiling Rust rlib system_configuration v0.6.1 (7 files) failed: (Exit 1): process_wrapper failed: error...