Skip to content

Commit ffedf69

Browse files
committed
New example: Speaker, demoing how to use the import macro outside of rs-matter
1 parent e847687 commit ffedf69

24 files changed

Lines changed: 677 additions & 575 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ members = [
55
"rs-matter-data-model",
66
"rs-matter-macros",
77
"rs-matter-macros-impl",
8+
"examples",
89
]
910

1011
exclude = ["examples/*", "tools/tlv"]
1112

1213
[profile.release]
13-
opt-level = 3
14+
opt-level = "z"
1415

1516
[profile.dev]
1617
debug = true
17-
opt-level = 3
18+
opt-level = "z"
1819

1920
[workspace.dependencies]
2021
clap = { version = "4", features = ["derive"] }

examples/Cargo.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[package]
2+
name = "rs-matter-examples"
3+
version = "0.1.0"
4+
edition = "2021"
5+
license = "MIT OR Apache-2.0"
6+
7+
[[bin]]
8+
name = "onoff_light"
9+
10+
[[bin]]
11+
name = "onoff_light_bt"
12+
13+
[[bin]]
14+
name = "speaker"
15+
16+
[features]
17+
zeroconf = ["rs-matter/zeroconf"]
18+
19+
[dependencies]
20+
log = "0.4"
21+
env_logger = "0.11"
22+
embassy-futures = "0.1"
23+
embassy-sync = "0.6"
24+
embassy-time = { version = "0.4", features = ["std"] }
25+
embassy-time-queue-utils = { version = "0.1", features = ["generic-queue-64"] }
26+
static_cell = "1"
27+
nix = { version = "0.27", features = ["net"] }
28+
async-io = "2"
29+
async-compat = "0.2"
30+
futures-lite = "2"
31+
rs-matter = { path = "../rs-matter", features = ["async-io", "async-compat"] }

examples/onoff_light_bt/src/dev_att.rs

Lines changed: 0 additions & 165 deletions
This file was deleted.

0 commit comments

Comments
 (0)