Skip to content

Commit 309f150

Browse files
committed
v0.6.14
1 parent 84cedfd commit 309f150

File tree

3 files changed

+24
-17
lines changed

3 files changed

+24
-17
lines changed

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
## [Unreleased]
99

1010
### Added
11-
- Added support for AVR architecture.
1211

1312
### Changed
1413

1514
### Fixed
1615

16+
## [v0.7.14] - 2022-06-15
17+
18+
### Added
19+
20+
- Added support for AVR architecture.
21+
22+
### Fixed
23+
1724
- `IndexSet` and `IndexMap`'s `default` method now compile time checks that their capacity is a power of two.
1825

1926
## [v0.7.13] - 2022-05-16
@@ -489,7 +496,8 @@ architecture.
489496

490497
- Initial release
491498

492-
[Unreleased]: https://github.com/japaric/heapless/compare/v0.7.13...HEAD
499+
[Unreleased]: https://github.com/japaric/heapless/compare/v0.7.14...HEAD
500+
[v0.7.14]: https://github.com/japaric/heapless/compare/v0.7.13...v0.7.14
493501
[v0.7.13]: https://github.com/japaric/heapless/compare/v0.7.12...v0.7.13
494502
[v0.7.12]: https://github.com/japaric/heapless/compare/v0.7.11...v0.7.12
495503
[v0.7.11]: https://github.com/japaric/heapless/compare/v0.7.10...v0.7.11

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ keywords = ["static", "no-heap"]
1212
license = "MIT OR Apache-2.0"
1313
name = "heapless"
1414
repository = "https://github.com/japaric/heapless"
15-
version = "0.7.13"
15+
version = "0.7.14"
1616

1717
[features]
1818
default = ["cas"]
@@ -39,7 +39,6 @@ atomic-polyfill = { version = "0.1.4" }
3939
[target.'cfg(target_arch = "avr")'.dependencies]
4040
atomic-polyfill = { version = "0.1.8", optional = true }
4141

42-
4342
[dependencies]
4443
hash32 = "0.2.1"
4544

build.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn main() -> Result<(), Box<dyn Error>> {
2323
println!("cargo:rustc-cfg=armv7a");
2424
}
2525

26-
let is_avr = env::var("CARGO_CFG_TARGET_ARCH") == Ok("avr".to_string());
26+
let is_avr = env::var("CARGO_CFG_TARGET_ARCH").as_deref() == Ok("avr");
2727

2828
// built-in targets with no atomic / CAS support as of nightly-2022-01-13
2929
// AND not supported by the atomic-polyfill crate
@@ -32,20 +32,20 @@ fn main() -> Result<(), Box<dyn Error>> {
3232
// lacks cas
3333
} else {
3434
match &target[..] {
35-
"avr-unknown-gnu-atmega328"
36-
| "bpfeb-unknown-none"
37-
| "bpfel-unknown-none"
38-
| "msp430-none-elf"
39-
// | "riscv32i-unknown-none-elf" // supported by atomic-polyfill
40-
// | "riscv32imc-unknown-none-elf" // supported by atomic-polyfill
41-
| "thumbv4t-none-eabi"
42-
// | "thumbv6m-none-eabi" // supported by atomic-polyfill
43-
=> {}
35+
"avr-unknown-gnu-atmega328"
36+
| "bpfeb-unknown-none"
37+
| "bpfel-unknown-none"
38+
| "msp430-none-elf"
39+
// | "riscv32i-unknown-none-elf" // supported by atomic-polyfill
40+
// | "riscv32imc-unknown-none-elf" // supported by atomic-polyfill
41+
| "thumbv4t-none-eabi"
42+
// | "thumbv6m-none-eabi" // supported by atomic-polyfill
43+
=> {}
4444

45-
_ => {
46-
println!("cargo:rustc-cfg=has_cas");
45+
_ => {
46+
println!("cargo:rustc-cfg=has_cas");
47+
}
4748
}
48-
}
4949
};
5050

5151
if is_avr {

0 commit comments

Comments
 (0)