mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 21:10:28 +00:00
v0.6.14
This commit is contained in:
parent
84cedfd3d2
commit
309f150ca0
12
CHANGELOG.md
12
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
|
||||
|
@ -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"
|
||||
|
||||
|
26
build.rs
26
build.rs
@ -23,7 +23,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
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<dyn Error>> {
|
||||
// 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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user