deps: make stable_deref_trait an optional dependency

Configures the `stable_deref_trait` to only be included for `arm_llsc`
and `target_arch = "x86"` platforms. This is because the dependency is
only used for the `pool` module, and the `pool` module is only used on
the above platforms.

Reduces the dependency graph for all other platforms.
This commit is contained in:
rmsyn 2023-11-12 19:41:43 +00:00
parent 9feb664722
commit 22745bef87
No known key found for this signature in database
GPG Key ID: AA4F6A6E264376CB
2 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
- configure `stable_deref_trait` as a platform-dependent dependency
## [v0.8.0] - 2023-11-07
### Added

View File

@ -43,10 +43,13 @@ mpmc_large = []
portable-atomic = { version = "1.0", optional = true }
hash32 = "0.3.0"
serde = { version = "1", optional = true, default-features = false }
stable_deref_trait = { version = "1", default-features = false }
ufmt-write = { version = "0.1", optional = true }
defmt = { version = ">=0.2.0,<0.4", optional = true }
# for the pool module
[target.'cfg(any(target_arch = "arm", target_arch = "x86"))'.dependencies]
stable_deref_trait = { version = "1", default-features = false }
[dev-dependencies]
ufmt = "0.2"