[package]
edition = "2021"
rust-version = "1.76"
name = "corewlan"
version = "0.2.0"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
"src/**/*",
"examples/**/*",
"tests/**/*",
"swift-bridge/Package.swift",
"swift-bridge/Sources/**/*",
"build.rs",
"Cargo.toml",
"README.md",
"LICENSE-*",
"CHANGELOG.md",
"COVERAGE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's CoreWLAN framework — inspect Wi-Fi interfaces, mutable configurations, event delegates, and preferred network state on macOS"
homepage = "https://github.com/doom-fish/corewlan-rs"
readme = "README.md"
keywords = [
"wifi",
"wlan",
"corewlan",
"macos",
"networking",
]
categories = [
"api-bindings",
"os::macos-apis",
"network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/corewlan-rs"
[package.metadata.docs.rs]
all-features = true
default-target = "aarch64-apple-darwin"
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[badges.maintenance]
status = "actively-developed"
[lib]
name = "corewlan"
crate-type = ["lib"]
path = "src/lib.rs"
[[example]]
name = "01_smoke"
path = "examples/01_smoke.rs"
[[example]]
name = "02_wifi_client_events"
path = "examples/02_wifi_client_events.rs"
[[example]]
name = "03_interface_snapshot"
path = "examples/03_interface_snapshot.rs"
[[example]]
name = "04_channel_snapshot"
path = "examples/04_channel_snapshot.rs"
[[example]]
name = "05_network_snapshot"
path = "examples/05_network_snapshot.rs"
[[example]]
name = "06_configuration_snapshot"
path = "examples/06_configuration_snapshot.rs"
[[example]]
name = "07_mutable_configuration"
path = "examples/07_mutable_configuration.rs"
[[example]]
name = "08_network_profile_snapshot"
path = "examples/08_network_profile_snapshot.rs"
[[example]]
name = "09_mutable_network_profile"
path = "examples/09_mutable_network_profile.rs"
[[example]]
name = "10_security_types"
path = "examples/10_security_types.rs"
[[test]]
name = "channel_tests"
path = "tests/channel_tests.rs"
[[test]]
name = "configuration_tests"
path = "tests/configuration_tests.rs"
[[test]]
name = "interface_tests"
path = "tests/interface_tests.rs"
[[test]]
name = "mutable_configuration_tests"
path = "tests/mutable_configuration_tests.rs"
[[test]]
name = "mutable_network_profile_tests"
path = "tests/mutable_network_profile_tests.rs"
[[test]]
name = "network_profile_tests"
path = "tests/network_profile_tests.rs"
[[test]]
name = "network_tests"
path = "tests/network_tests.rs"
[[test]]
name = "security_tests"
path = "tests/security_tests.rs"
[[test]]
name = "wifi_client_tests"
path = "tests/wifi_client_tests.rs"
[dependencies.bitflags]
version = "2"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
[profile.release]
debug = 2
strip = "none"