Skip to content

Commit 186b2b5

Browse files
authored
Merge pull request #220 from therealprof/atomic-polyfill-optional
Make "atomic-polyfill" an optional dep for thumbv6m-none-eabi only
2 parents 7f2a01f + 0f899d9 commit 186b2b5

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)