Skip to content

Commit 0ef522d

Browse files
authored
Option to only select a subset of the embassy-net/smoltcp features (#71)
* Option to only select a subset of the embassy-net/smoltcp features * Update to embassy-net 0.7 * Raise the embedded-sync version * Suppress uninlined format args warn * Fix CI * Update changelog * Update crate versions
1 parent b98764d commit 0ef522d

File tree

28 files changed

+194
-81
lines changed

28 files changed

+194
-81
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535
- name: Build | Fmt Check
3636
run: cargo fmt -- --check
3737
- name: Build | Clippy
38-
run: cargo clippy --features std,embedded-svc,edge-nal-embassy --examples --no-deps -- -Dwarnings
38+
run: cargo clippy --features std,embedded-svc,edge-nal-embassy/all --examples --no-deps -- -Dwarnings
3939
- name: Build | Clippy - defmt
40-
run: cargo clippy --features std,embedded-svc,edge-nal-embassy,defmt --no-deps -- -Dwarnings
40+
run: cargo clippy --features std,embedded-svc,edge-nal-embassy/all,defmt --no-deps -- -Dwarnings
4141
- name: Build | Clippy - log
42-
run: cargo clippy --features std,embedded-svc,edge-nal-embassy,log --examples --no-deps -- -Dwarnings
42+
run: cargo clippy --features std,embedded-svc,edge-nal-embassy/all,log --examples --no-deps -- -Dwarnings
4343
- name: Build | Default
4444
run: cargo build --features log
4545
- name: Build | Non-default

Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "edge-net"
3-
version = "0.10.1"
3+
version = "0.11.0"
44
authors = ["Ivan Markov <[email protected]>"]
55
edition = "2021"
66
categories = ["embedded", "hardware-support", "network-programming", "asynchronous"]
@@ -15,7 +15,7 @@ rust-version = "1.83"
1515
default = ["io"]
1616
async-io-mini = ["std", "edge-nal-std/async-io-mini"]
1717
std = ["io", "edge-captive/std", "edge-dhcp/std", "edge-http/std", "edge-mdns/std", "edge-raw/std", "edge-mqtt", "edge-ws/std", "edge-nal-std"]
18-
embassy = ["io", "edge-nal-embassy"]
18+
embassy = ["io", "edge-nal-embassy/all"]
1919
io = ["edge-captive/io", "edge-dhcp/io", "edge-http/io", "edge-mdns/io", "edge-raw/io", "edge-ws/io", "edge-nal"]
2020
log = ["edge-captive/log", "edge-dhcp/log", "edge-http/log", "edge-mdns/log", "edge-raw/log", "edge-ws/log", "edge-nal-embassy?/log"]
2121
defmt = ["edge-captive/defmt", "edge-dhcp/defmt", "edge-http/defmt", "edge-mdns/defmt", "edge-raw/defmt", "edge-ws/defmt", "edge-nal-embassy?/defmt"]
@@ -40,7 +40,7 @@ anyhow = "1"
4040
env_logger = "0.10"
4141
embedded-io-async = "0.6"
4242
embassy-time = { version = "0.4", features = ["std", "generic-queue-64"] }
43-
embassy-sync = "0.6"
43+
embassy-sync = "0.7"
4444
embassy-futures = "0.1"
4545
embedded-svc = { version = "0.28", features = ["std"] }
4646
futures-lite = "2"
@@ -109,20 +109,20 @@ members = [
109109

110110
[workspace.dependencies]
111111
embassy-futures = { version = "0.1", default-features = false }
112-
embassy-sync = { version = "0.6", default-features = false }
112+
embassy-sync = { version = "0.7", default-features = false }
113113
embassy-time = { version = "0.4", default-features = false }
114114
embedded-io-async = { version = "0.6", default-features = false }
115115
embedded-svc = { version = "0.28", default-features = false }
116116
heapless = { version = "0.8", default-features = false }
117117
domain = { version = "0.10", default-features = false, features = ["heapless"] }
118118

119-
edge-captive = { version = "0.5.0", path = "edge-captive", default-features = false }
120-
edge-dhcp = { version = "0.5.0", path = "edge-dhcp", default-features = false }
121-
edge-http = { version = "0.5.1", path = "edge-http", default-features = false }
122-
edge-mdns = { version = "0.5.0", path = "edge-mdns", default-features = false }
119+
edge-captive = { version = "0.6.0", path = "edge-captive", default-features = false }
120+
edge-dhcp = { version = "0.6.0", path = "edge-dhcp", default-features = false }
121+
edge-http = { version = "0.6.0", path = "edge-http", default-features = false }
122+
edge-mdns = { version = "0.6.0", path = "edge-mdns", default-features = false }
123123
edge-mqtt = { version = "0.4.0", path = "edge-mqtt", default-features = false }
124124
edge-nal = { version = "0.5.0", path = "edge-nal", default-features = false }
125-
edge-raw = { version = "0.5.0", path = "edge-raw", default-features = false }
126-
edge-ws = { version = "0.4.0", path = "edge-ws", default-features = false }
125+
edge-raw = { version = "0.6.0", path = "edge-raw", default-features = false }
126+
edge-ws = { version = "0.5.0", path = "edge-ws", default-features = false }
127127
edge-nal-std = { version = "0.5.0", path = "edge-nal-std", default-features = false }
128-
edge-nal-embassy = { version = "0.5.0", path = "edge-nal-embassy", default-features = false }
128+
edge-nal-embassy = { version = "0.6.0", path = "edge-nal-embassy", default-features = false }

edge-captive/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## [0.6.0] - 2025-05-29
99
* Optional `defmt` support via two new features (one has to specify one, or the other, or neither, but not both):
1010
* `log` - uses the `log` crate for all logging
1111
* `defmt` - uses the `defmt` crate for all logging, and implements `defmt::Format` for all library types that otherwise implement `Debug` and/or `Display`

edge-captive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "edge-captive"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
edition = "2021"
55
rust-version = "1.83"
66
description = "Async + `no_std` + no-alloc implementation of a Captive Portal DNS"

edge-captive/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![cfg_attr(not(feature = "std"), no_std)]
22
#![warn(clippy::large_futures)]
3+
#![allow(clippy::uninlined_format_args)]
4+
#![allow(unknown_lints)]
35

46
use core::fmt::Display;
57
use core::time::Duration;

edge-dhcp/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## [0.6.0] - 2025-05-29
99
* Optional `defmt` support via two new features (one has to specify one, or the other, or neither, but not both):
1010
* `log` - uses the `log` crate for all logging
1111
* `defmt` - uses the `defmt` crate for all logging, and implements `defmt::Format` for all library types that otherwise implement `Debug` and/or `Display`

edge-dhcp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "edge-dhcp"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
edition = "2021"
55
rust-version = "1.83"
66
description = "Async + `no_std` + no-alloc implementation of the DHCP protocol"

edge-dhcp/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![cfg_attr(not(feature = "std"), no_std)]
22
#![warn(clippy::large_futures)]
3+
#![allow(clippy::uninlined_format_args)]
4+
#![allow(unknown_lints)]
35

46
/// This code is a `no_std` and no-alloc modification of https://github.com/krolaw/dhcp4r
57
use core::str::Utf8Error;

edge-http/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## [0.6.0] - 2025-05-29
99
* Optional `defmt` support via two new features (one has to specify one, or the other, or neither, but not both):
1010
* `log` - uses the `log` crate for all logging
1111
* `defmt` - uses the `defmt` crate for all logging, and implements `defmt::Format` for all library types that otherwise implement `Debug` and/or `Display`

edge-http/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "edge-http"
3-
version = "0.5.1"
3+
version = "0.6.0"
44
edition = "2021"
55
rust-version = "1.83"
66
description = "Async + `no_std` + no-alloc implementation of the HTTP protocol"

0 commit comments

Comments
 (0)