[package]
edition = "2021"
rust-version = "1.88"
name = "matter-commissioning"
version = "0.2.0"
authors = ["matter-rust contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Matter commissioning state machine: setup payload, attestation, NOC issuance, network commissioning."
homepage = "https://github.com/phunapps/matter-rust"
readme = "README.md"
keywords = [
"matter",
"commissioning",
"iot",
"smart-home",
]
categories = [
"network-programming",
"embedded",
]
license = "Apache-2.0"
repository = "https://github.com/phunapps/matter-rust"
[features]
__test_shortcuts = []
default = []
driver = ["dep:tokio"]
test-support = []
tracing = ["dep:tracing"]
wiretrace = [
"tracing",
"dep:tracing-subscriber",
"dep:serde_json",
]
[lib]
name = "matter_commissioning"
path = "src/lib.rs"
[[example]]
name = "commission_ip"
path = "examples/commission_ip.rs"
required-features = ["driver"]
[[example]]
name = "control_onoff"
path = "examples/control_onoff.rs"
required-features = ["driver"]
[[test]]
name = "attestation_negative"
path = "tests/attestation_negative.rs"
[[test]]
name = "attestation_parse"
path = "tests/attestation_parse.rs"
[[test]]
name = "attestation_response_byte_parity"
path = "tests/attestation_response_byte_parity.rs"
[[test]]
name = "attestation_response_proptest"
path = "tests/attestation_response_proptest.rs"
[[test]]
name = "cd_verification"
path = "tests/cd_verification.rs"
[[test]]
name = "chip_cd_vector"
path = "tests/chip_cd_vector.rs"
[[test]]
name = "commission_ble_loopback"
path = "tests/commission_ble_loopback.rs"
[[test]]
name = "commission_loopback"
path = "tests/commission_loopback.rs"
[[test]]
name = "commissioning_byte_parity"
path = "tests/commissioning_byte_parity.rs"
[[test]]
name = "commissioning_e2e"
path = "tests/commissioning_e2e.rs"
[[test]]
name = "mock_device_attestation_csr"
path = "tests/mock_device_attestation_csr.rs"
[[test]]
name = "mock_pki"
path = "tests/mock_pki.rs"
[[test]]
name = "noc_byte_parity"
path = "tests/noc_byte_parity.rs"
[[test]]
name = "noc_fabric_record"
path = "tests/noc_fabric_record.rs"
[[test]]
name = "noc_happy_path"
path = "tests/noc_happy_path.rs"
[[test]]
name = "noc_negative"
path = "tests/noc_negative.rs"
[[test]]
name = "noc_proptest"
path = "tests/noc_proptest.rs"
[[test]]
name = "noc_round_trip"
path = "tests/noc_round_trip.rs"
[[test]]
name = "pase_over_btp"
path = "tests/pase_over_btp.rs"
[[test]]
name = "setup_byte_parity"
path = "tests/setup_byte_parity.rs"
[[test]]
name = "setup_proptest"
path = "tests/setup_proptest.rs"
[[test]]
name = "state_machine_attestation"
path = "tests/state_machine_attestation.rs"
[[test]]
name = "state_machine_network"
path = "tests/state_machine_network.rs"
required-features = ["__test_shortcuts"]
[[test]]
name = "state_machine_noc"
path = "tests/state_machine_noc.rs"
[[test]]
name = "state_machine_unit"
path = "tests/state_machine_unit.rs"
[[test]]
name = "x509_builder_gate"
path = "tests/x509_builder_gate.rs"
[dependencies.base64]
version = "0.22"
features = ["alloc"]
default-features = false
[dependencies.bitflags]
version = "2"
[dependencies.cms]
version = "0.2"
[dependencies.der]
version = "0.7"
features = [
"oid",
"alloc",
]
default-features = false
[dependencies.matter-cert]
version = "0.2.0"
[dependencies.matter-codec]
version = "0.2.0"
[dependencies.matter-crypto]
version = "0.2.0"
[dependencies.matter-interaction]
version = "0.2.0"
[dependencies.matter-transport]
version = "0.2.0"
[dependencies.ring]
version = "0.17"
[dependencies.rustls-pki-types]
version = "1"
default-features = false
[dependencies.rustls-webpki]
version = "0.103"
features = [
"std",
"ring",
]
default-features = false
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"macros",
"time",
"sync",
]
optional = true
default-features = false
[dependencies.tracing]
version = "0.1"
features = [
"attributes",
"std",
]
optional = true
default-features = false
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"fmt",
"env-filter",
"ansi",
"registry",
]
optional = true
default-features = false
[dependencies.x509-parser]
version = "0.18"
default-features = false
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.clap]
version = "4"
features = ["derive"]
[dev-dependencies.const-oid]
version = "0.9"
[dev-dependencies.hex]
version = "0.4"
features = ["alloc"]
default-features = false
[dev-dependencies.matter-ble]
version = "0.2.0"
[dev-dependencies.matter-cert]
version = "0.2.0"
features = ["test-support"]
[dev-dependencies.matter-clusters]
version = "0.2.0"
[dev-dependencies.p256]
version = "0.13"
features = [
"arithmetic",
"ecdh",
"ecdsa",
"pkcs8",
]
default-features = false
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.spki]
version = "0.7"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt",
"rt-multi-thread",
"time",
"sync",
"test-util",
]
default-features = false
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
"fmt",
"env-filter",
"ansi",
"registry",
]
default-features = false
[dev-dependencies.x509-cert]
version = "0.2"
[lints.clippy]
expect_used = "warn"
missing_const_for_fn = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
module_name_repetitions = "allow"
must_use_candidate = "allow"
undocumented_unsafe_blocks = "warn"
unwrap_used = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1