Skip to content

Commit 46f526a

Browse files
committed
Add some initial README/docs
1 parent 025fb70 commit 46f526a

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## SystemConfiguration bindings
2+
3+
This crate is a high level binding to the Apple [SystemConfiguration] framework. For low level
4+
FFI bindings, check out the [`system-configuration-sys`] crate.
5+
6+
This crate only implements a small part of the [SystemConfiguration] framework so far. If you
7+
need a yet unimplemented part, feel free to submit a pull request!
8+
9+
[SystemConfiguration]: https://developer.apple.com/documentation/systemconfiguration?language=objc
10+
[`system-configuration-sys`]: https://crates.io/crates/system-configuration-sys
11+
12+
License: MIT/Apache-2.0

system-configuration-sys/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
// option. This file may not be copied, modified, or distributed
77
// except according to those terms.
88

9+
//! Low level bindings to the Apple [SystemConfiguration] framework. Generated with bindgen.
10+
//! For a safe, higher level, API, check out the [`system-configuration`] crate.
11+
//!
12+
//! [SystemConfiguration]: https://developer.apple.com/documentation/systemconfiguration?language=objc
13+
//! [`system-configuration`]: https://crates.io/crates/system-configuration
14+
915
#![allow(non_camel_case_types)]
1016
#![allow(non_upper_case_globals)]
1117
#![allow(non_snake_case)]

system-configuration/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ keywords = ["macos", "system", "configuration", "bindings"]
77
categories = ["api-bindings", "os::macos-apis"]
88
repository = "https://github.com/mullvad/system-configuration-rs"
99
license = "MIT/Apache-2.0"
10+
readme = "../README.md"
1011

1112
[dependencies]
1213
core-foundation = "0.5"

system-configuration/src/dynamic_store.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
// option. This file may not be copied, modified, or distributed
77
// except according to those terms.
88

9+
//! Bindings to [`SCDynamicStore`].
10+
//!
11+
//! See the examples directory for examples how to use this module.
12+
//!
13+
//! [`SCDynamicStore`]: https://developer.apple.com/documentation/systemconfiguration/scdynamicstore?language=objc
14+
915
use core_foundation::array::{CFArray, CFArrayRef};
1016
use core_foundation::base::{TCFType, kCFAllocatorDefault};
1117
use core_foundation::boolean::CFBoolean;

system-configuration/src/lib.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
66
// option. This file may not be copied, modified, or distributed
77
// except according to those terms.
88

9+
//! # SystemConfiguration bindings
10+
//!
11+
//! This crate is a high level binding to the Apple [SystemConfiguration] framework. For low level
12+
//! FFI bindings, check out the [`system-configuration-sys`] crate.
13+
//!
14+
//! This crate only implements a small part of the [SystemConfiguration] framework so far. If you
15+
//! need a yet unimplemented part, feel free to submit a pull request!
16+
//!
17+
//! [SystemConfiguration]: https://developer.apple.com/documentation/systemconfiguration?language=objc
18+
//! [`system-configuration-sys`]: https://crates.io/crates/system-configuration-sys
19+
920
#[macro_use]
1021
extern crate core_foundation;
1122
extern crate system_configuration_sys;

0 commit comments

Comments
 (0)