From 309f150ca0e9d8f41b8b5b225ef3dc77220cbd3e Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Wed, 15 Jun 2022 15:11:11 +0200 Subject: [PATCH] v0.6.14 --- CHANGELOG.md | 12 ++++++++++-- Cargo.toml | 3 +-- build.rs | 26 +++++++++++++------------- 3 files changed, 24 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38f065e0..221022f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,12 +8,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ### Added -- Added support for AVR architecture. ### Changed ### 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. ## [v0.7.13] - 2022-05-16 @@ -489,7 +496,8 @@ architecture. - 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.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 diff --git a/Cargo.toml b/Cargo.toml index d8dda5d8..58da9331 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ keywords = ["static", "no-heap"] license = "MIT OR Apache-2.0" name = "heapless" repository = "https://github.com/japaric/heapless" -version = "0.7.13" +version = "0.7.14" [features] default = ["cas"] @@ -39,7 +39,6 @@ atomic-polyfill = { version = "0.1.4" } [target.'cfg(target_arch = "avr")'.dependencies] atomic-polyfill = { version = "0.1.8", optional = true } - [dependencies] hash32 = "0.2.1" diff --git a/build.rs b/build.rs index 9021e3ce..c2127137 100644 --- a/build.rs +++ b/build.rs @@ -23,7 +23,7 @@ fn main() -> Result<(), Box> { 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 // AND not supported by the atomic-polyfill crate @@ -32,20 +32,20 @@ fn main() -> Result<(), Box> { // lacks cas } else { match &target[..] { - "avr-unknown-gnu-atmega328" - | "bpfeb-unknown-none" - | "bpfel-unknown-none" - | "msp430-none-elf" - // | "riscv32i-unknown-none-elf" // supported by atomic-polyfill - // | "riscv32imc-unknown-none-elf" // supported by atomic-polyfill - | "thumbv4t-none-eabi" - // | "thumbv6m-none-eabi" // supported by atomic-polyfill - => {} + "avr-unknown-gnu-atmega328" + | "bpfeb-unknown-none" + | "bpfel-unknown-none" + | "msp430-none-elf" + // | "riscv32i-unknown-none-elf" // supported by atomic-polyfill + // | "riscv32imc-unknown-none-elf" // supported by atomic-polyfill + | "thumbv4t-none-eabi" + // | "thumbv6m-none-eabi" // supported by atomic-polyfill + => {} - _ => { - println!("cargo:rustc-cfg=has_cas"); + _ => { + println!("cargo:rustc-cfg=has_cas"); + } } - } }; if is_avr {