-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCargo.toml
More file actions
177 lines (146 loc) · 4.69 KB
/
Cargo.toml
File metadata and controls
177 lines (146 loc) · 4.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
[workspace]
members = [
"crates/zenoh-derive",
"crates/zenoh-proto",
"crates/zenoh-sansio",
"crates/zenoh-nostd"
]
exclude = ["platforms/zenoh-std", "platforms/zenoh-embassy", "platforms/zenoh-wasm"]
resolver = "3"
[workspace.package]
authors = []
categories = ["network-programming"]
description = "Zenoh: The Zero Overhead Pub/Sub/Query Protocol."
edition = "2024"
homepage = "http://zenoh.io"
license = "EPL-2.0 OR Apache-2.0"
repository = "https://github.com/ZettaScaleLabs/zenoh-nostd"
rust-version = "1.91.0"
version = "0.1.0"
readme = "README.md"
[workspace.dependencies]
zenoh-derive = { version = "0.1.0", path = "crates/zenoh-derive" }
zenoh-proto = { version = "0.1.0", path = "crates/zenoh-proto" }
zenoh-sansio = { version = "0.1.0", path = "crates/zenoh-sansio" }
zenoh-nostd = { version = "0.1.0", path = "crates/zenoh-nostd" }
# General dependencies
uhlc = { version = "0.9.0", default-features = false }
sha3 = { version = "0.10.8", default-features = false }
chacha20 = { version = "0.9" }
dyn-utils = { version = "0.1.0", git = "https://github.com/wyfo/dyn-utils", default-features = false, features = ["macros", "const_panic"] }
# Embassy (for async/await support)
embassy-futures = "0.1.2"
embassy-time = "0.5.0"
embassy-sync = "0.7.2"
embassy-executor = "0.9.1"
embedded-io-async = "0.7"
# Heapless / static
heapless = { version = "0.8", default-features = false }
static_cell = "2.1.1"
# Macros
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "2.0", features = ["full"] }
paste = "1.0"
# Logs
defmt = "1.0"
log = "0.4"
web-sys = { version = "0.3.82", features = ["console"] }
# Tests
rand = "0.8"
criterion = "0.7"
[package]
name = "zenoh-examples"
authors.workspace = true
description.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true
readme.workspace = true
[features]
default = ["std", "alloc", "log"]
log = ["zenoh-nostd/log"]
defmt = ["zenoh-nostd/defmt"]
web_console = ["zenoh-nostd/web_console"]
alloc = ["zenoh-nostd/alloc"]
std = [
"dep:zenoh-std",
"dep:env_logger",
"embassy-executor/arch-std",
"embassy-executor/executor-thread",
"embassy-time/std",
]
esp32s3 = [
"dep:zenoh-embassy",
"dep:getrandom",
"dep:esp-bootloader-esp-idf",
"dep:esp-hal",
"dep:embassy-net",
"dep:esp-alloc",
"dep:esp-println",
"dep:esp-rtos",
"dep:esp-radio",
"embassy-executor/defmt",
]
wasm = [
"dep:zenoh-wasm",
"dep:env_logger",
"getrandom/std",
"getrandom/js",
"dep:wasm-bindgen",
"embassy-executor/arch-wasm",
"embassy-executor/executor-thread",
"embassy-time/wasm",
]
[dependencies]
zenoh-nostd = { workspace = true }
static_cell = { workspace = true }
embassy-sync = { workspace = true }
embassy-executor = { workspace = true }
embassy-time = { workspace = true }
embassy-futures = { workspace = true }
zenoh-std = { version = "0.1.0", path = "platforms/zenoh-std", optional = true }
zenoh-embassy = { version = "0.1.0", path = "platforms/zenoh-embassy", optional = true }
zenoh-wasm = { version = "0.1.0", path = "platforms/zenoh-wasm", optional = true }
env_logger = { version = "0.11", optional = true}
getrandom = { version = "0.2.16", features = ["custom"], optional = true }
embassy-net = { version = "0.8.0", features = ["defmt", "dhcpv4", "medium-ethernet", "tcp", "udp"], optional = true }
esp-bootloader-esp-idf = { version = "0.4.0", features = ["defmt", "esp32s3"], optional = true }
esp-hal = { version = "1.0.0", features = ["defmt", "esp32s3", "unstable"], optional = true }
esp-alloc = { version = "0.9.0", features = ["defmt"], optional = true }
esp-println = { version = "0.16.1", features = ["defmt-espflash", "esp32s3"], optional = true }
esp-rtos = { version = "0.2.0", features = ["defmt", "esp32s3", "esp-radio", "esp-alloc", "embassy"], optional = true }
esp-radio = { version = "0.17.0", features = ["unstable", "defmt", "esp-alloc", "esp32s3", "smoltcp", "wifi"], optional = true }
defmt = { workspace = true }
wasm-bindgen = { version = "0.2", optional = true }
[[example]]
path = "examples/z_broker.rs"
name = "z_broker"
required-features = ["alloc"]
[profile.dev]
opt-level = "s"
lto = false
codegen-units = 16
panic = "abort"
strip = false
incremental = true
debug = true
overflow-checks = true
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = false
incremental = false
debug = false
overflow-checks = false
[patch.crates-io.yawc]
git = "https://github.com/infinitefield/yawc"
rev = "b43b05d51e18345d228b72c4f12a93e2f51df9d8"
[patch.crates-io.async-net]
git = "https://github.com/Hennzau/async-net"
rev = "f1ade444e88677b31b71ed1b7de0b2778d977aa8"