Skip to content

Commit 0f899d9

Browse files
committed
Make "atomic-polyfill" an optional dep for thumbv6m-none-eabi only
... otherwise any crate using heapless will automatically add all the funny ARMv6-M only dependencies regardless. Signed-off-by: Daniel Egger <[email protected]>
1 parent 2390ab7 commit 0f899d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ version = "0.7.3"
1616

1717
[features]
1818
default = ["cas"]
19-
cas = []
19+
cas = ["atomic-polyfill"]
2020
ufmt-impl = ["ufmt-write"]
2121
# read the docs before enabling: makes `Pool` Sync on x86_64
2222
x86-sync-pool = []
@@ -30,7 +30,7 @@ defmt-impl = ["defmt"]
3030
scoped_threadpool = "0.1.8"
3131

3232
[target.thumbv6m-none-eabi.dependencies]
33-
atomic-polyfill = "0.1.2"
33+
atomic-polyfill = { version = "0.1.2", optional = true }
3434

3535
[dependencies]
3636
hash32 = "0.2.1"

0 commit comments

Comments
 (0)