Skip to content

Commit e873193

Browse files
committed
For now, only pull in atomic-polyfill for cortex-m feature
It turns out the `AtomicCheckMutex` which was the reason for adding `atomic-polyfill` is currently gated behing the `cortex-m` feature. Thus we can gate the dependency behind this feature-flag to resolve issues on other platforms in the meantime. In the long run, `AtomicCheckMutex` should get its own feature-flag but for now this is the easiest solution and a non-breaking change. Ref: #31, #33
1 parent ef0e8a3 commit e873193

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ once_cell = { version = "1.4.0", optional = true }
2222
cortex-m = { version = "0.6.3", optional = true }
2323
xtensa-lx = { version = "0.6.0", optional = true }
2424
spin = { version = "0.9.2", optional = true }
25-
atomic-polyfill = "0.1.6"
25+
atomic-polyfill = { version = "0.1.6", optional = true }
2626

2727
[dev-dependencies]
2828
embedded-hal-mock = "0.8"
2929

3030
[features]
3131
std = ["once_cell"]
3232
xtensa = ["xtensa-lx", "spin"]
33+
cortex-m = ["dep:cortex-m", "atomic-polyfill"]

0 commit comments

Comments
 (0)