This commit is contained in:
Jorge Aparicio 2022-06-15 15:11:11 +02:00
parent 84cedfd3d2
commit 309f150ca0
3 changed files with 24 additions and 17 deletions

View File

@ -8,12 +8,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased] ## [Unreleased]
### Added ### Added
- Added support for AVR architecture.
### Changed ### Changed
### Fixed ### Fixed
## [v0.7.14] - 2022-06-15
### Added
- Added support for AVR architecture.
### Fixed
- `IndexSet` and `IndexMap`'s `default` method now compile time checks that their capacity is a power of two. - `IndexSet` and `IndexMap`'s `default` method now compile time checks that their capacity is a power of two.
## [v0.7.13] - 2022-05-16 ## [v0.7.13] - 2022-05-16
@ -489,7 +496,8 @@ architecture.
- Initial release - Initial release
[Unreleased]: https://github.com/japaric/heapless/compare/v0.7.13...HEAD [Unreleased]: https://github.com/japaric/heapless/compare/v0.7.14...HEAD
[v0.7.14]: https://github.com/japaric/heapless/compare/v0.7.13...v0.7.14
[v0.7.13]: https://github.com/japaric/heapless/compare/v0.7.12...v0.7.13 [v0.7.13]: https://github.com/japaric/heapless/compare/v0.7.12...v0.7.13
[v0.7.12]: https://github.com/japaric/heapless/compare/v0.7.11...v0.7.12 [v0.7.12]: https://github.com/japaric/heapless/compare/v0.7.11...v0.7.12
[v0.7.11]: https://github.com/japaric/heapless/compare/v0.7.10...v0.7.11 [v0.7.11]: https://github.com/japaric/heapless/compare/v0.7.10...v0.7.11

View File

@ -12,7 +12,7 @@ keywords = ["static", "no-heap"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
name = "heapless" name = "heapless"
repository = "https://github.com/japaric/heapless" repository = "https://github.com/japaric/heapless"
version = "0.7.13" version = "0.7.14"
[features] [features]
default = ["cas"] default = ["cas"]
@ -39,7 +39,6 @@ atomic-polyfill = { version = "0.1.4" }
[target.'cfg(target_arch = "avr")'.dependencies] [target.'cfg(target_arch = "avr")'.dependencies]
atomic-polyfill = { version = "0.1.8", optional = true } atomic-polyfill = { version = "0.1.8", optional = true }
[dependencies] [dependencies]
hash32 = "0.2.1" hash32 = "0.2.1"

View File

@ -23,7 +23,7 @@ fn main() -> Result<(), Box<dyn Error>> {
println!("cargo:rustc-cfg=armv7a"); println!("cargo:rustc-cfg=armv7a");
} }
let is_avr = env::var("CARGO_CFG_TARGET_ARCH") == Ok("avr".to_string()); let is_avr = env::var("CARGO_CFG_TARGET_ARCH").as_deref() == Ok("avr");
// built-in targets with no atomic / CAS support as of nightly-2022-01-13 // built-in targets with no atomic / CAS support as of nightly-2022-01-13
// AND not supported by the atomic-polyfill crate // AND not supported by the atomic-polyfill crate