Skip to content

Commit 89dfd1d

Browse files
committed
Remove async feature
1 parent 25e398a commit 89dfd1d

File tree

4 files changed

+14
-22
lines changed

4 files changed

+14
-22
lines changed

Cargo.toml

+11-15
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ defmt = { version = "^0.3", optional = true }
3131

3232
futures-util = { version = "0.3.29", default-features = false }
3333

34-
embassy-futures = { version = "0.1", optional = true }
34+
embassy-futures = { version = "0.1" }
3535

3636
embedded-hal = "1.0.0"
3737
embedded-nal = "0.8"
38-
embedded-nal-async = { version = "0.7", optional = true }
38+
embedded-nal-async = { version = "0.7" }
3939

4040
embassy-at-cmux = { path = "../embassy/embassy-at-cmux", optional = true }
4141
embassy-net-ppp = { version = "0.1", optional = true }
@@ -52,30 +52,31 @@ atat = { version = "*", features = ["heapless"] }
5252

5353

5454
[features]
55-
default = ["socket-udp", "socket-tcp", "async", "ppp"]
55+
default = ["socket-udp", "socket-tcp", "ppp"]
5656

57-
ppp = ["dep:embassy-at-cmux", "dep:embassy-net-ppp", "dep:embassy-net"]
5857
internal-network-stack = ["dep:ublox-sockets"]
58+
ppp = ["dep:embassy-at-cmux", "dep:embassy-net-ppp", "dep:embassy-net"]
5959

60-
async = ["dep:embedded-nal-async", "dep:embassy-futures"]
60+
automatic-apn = []
61+
upsd-context-activation = []
62+
63+
socket-tcp = ["ublox-sockets?/socket-tcp", "embassy-net?/tcp"]
64+
socket-udp = ["ublox-sockets?/socket-udp", "embassy-net?/udp"]
6165

6266
defmt = [
6367
"dep:defmt",
64-
"ublox-sockets?/defmt",
6568
"atat/defmt",
6669
"heapless/defmt-03",
6770
"embassy-time/defmt",
6871
"embassy-sync/defmt",
69-
"embassy-futures?/defmt",
72+
"embassy-futures/defmt",
73+
"ublox-sockets?/defmt",
7074
"embassy-net-ppp?/defmt",
7175
"embassy-net?/defmt",
7276
"embassy-at-cmux?/defmt",
7377
]
74-
7578
log = ["dep:log", "ublox-sockets?/log", "atat/log"]
7679

77-
automatic-apn = []
78-
7980
lara-r2 = []
8081
lara-r6 = []
8182
leon-g1 = []
@@ -90,11 +91,6 @@ toby-l2 = []
9091
toby-r2 = []
9192
toby-l4 = []
9293

93-
upsd-context-activation = []
94-
95-
socket-tcp = ["ublox-sockets?/socket-tcp", "embassy-net?/tcp"]
96-
socket-udp = ["ublox-sockets?/socket-udp", "embassy-net?/udp"]
97-
9894
[workspace]
9995
members = []
10096
default-members = ["."]

examples/embassy-rp2040-example/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ panic-probe = { version = "0.3.1", features = ["print-defmt"] }
2929
static_cell = { version = "2.0", features = []}
3030

3131
atat = { version = "0.21.0", features = ["derive", "bytes", "defmt"] }
32-
ublox-cellular-rs = {version = "0.4.0", path = "../..", features = ["lara-r6", "defmt", "async"]}
32+
ublox-cellular-rs = {version = "0.4.0", path = "../..", features = ["lara-r6", "defmt"]}
3333

3434
[features]
3535
ppp = ["ublox-cellular-rs/ppp"]

examples/embassy-stm32-example/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ panic-probe = { version = "0.3.1", features = ["print-defmt"] }
2121
static_cell = { version = "2.0", features = []}
2222

2323
atat = { version = "0.21.0", features = ["derive", "bytes", "defmt"] }
24-
ublox-cellular-rs = {version = "0.4.0", path = "../..", features = ["sara-r5", "defmt", "async"]}
24+
ublox-cellular-rs = {version = "0.4.0", path = "../..", features = ["sara-r5", "defmt"]}
2525

2626
[patch.crates-io]
2727
ublox-sockets = { git = "https://github.com/BlackbirdHQ/ublox-sockets", branch = "feature/async-borrowed-sockets" }

src/lib.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#![cfg_attr(not(test), no_std)]
2-
#![cfg_attr(feature = "async", allow(incomplete_features))]
3-
// #![cfg_attr(feature = "async", feature(generic_const_exprs))]
4-
// #![cfg_attr(feature = "async", feature(async_fn_in_trait))]
5-
// #![cfg_attr(feature = "async", feature(type_alias_impl_trait))]
2+
#![allow(async_fn_in_trait)]
63

74
#[cfg(all(feature = "ppp", feature = "internal-network-stack"))]
85
compile_error!("You may not enable both `ppp` and `internal-network-stack` features.");
@@ -15,5 +12,4 @@ pub mod config;
1512
pub mod error;
1613
mod module_timing;
1714

18-
#[cfg(feature = "async")]
1915
pub mod asynch;

0 commit comments

Comments
 (0)