Skip to content

Commit

Permalink
deps: make stable_deref_trait an optional dependency
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rmsyn committed Nov 13, 2023
1 parent 9feb664 commit 22745be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 22745be

Please sign in to comment.