File tree Expand file tree Collapse file tree 3 files changed +24
-17
lines changed Expand file tree Collapse file tree 3 files changed +24
-17
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
8
8
## [ Unreleased]
9
9
10
10
### Added
11
- - Added support for AVR architecture.
12
11
13
12
### Changed
14
13
15
14
### Fixed
16
15
16
+ ## [ v0.7.14] - 2022-06-15
17
+
18
+ ### Added
19
+
20
+ - Added support for AVR architecture.
21
+
22
+ ### Fixed
23
+
17
24
- ` IndexSet ` and ` IndexMap ` 's ` default ` method now compile time checks that their capacity is a power of two.
18
25
19
26
## [ v0.7.13] - 2022-05-16
@@ -489,7 +496,8 @@ architecture.
489
496
490
497
- Initial release
491
498
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
493
501
[ v0.7.13 ] : https://github.com/japaric/heapless/compare/v0.7.12...v0.7.13
494
502
[ v0.7.12 ] : https://github.com/japaric/heapless/compare/v0.7.11...v0.7.12
495
503
[ v0.7.11 ] : https://github.com/japaric/heapless/compare/v0.7.10...v0.7.11
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ keywords = ["static", "no-heap"]
12
12
license = " MIT OR Apache-2.0"
13
13
name = " heapless"
14
14
repository = " https://github.com/japaric/heapless"
15
- version = " 0.7.13 "
15
+ version = " 0.7.14 "
16
16
17
17
[features ]
18
18
default = [" cas" ]
@@ -39,7 +39,6 @@ atomic-polyfill = { version = "0.1.4" }
39
39
[target .'cfg(target_arch = "avr")' .dependencies ]
40
40
atomic-polyfill = { version = " 0.1.8" , optional = true }
41
41
42
-
43
42
[dependencies ]
44
43
hash32 = " 0.2.1"
45
44
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ fn main() -> Result<(), Box<dyn Error>> {
23
23
println ! ( "cargo:rustc-cfg=armv7a" ) ;
24
24
}
25
25
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" ) ;
27
27
28
28
// built-in targets with no atomic / CAS support as of nightly-2022-01-13
29
29
// AND not supported by the atomic-polyfill crate
@@ -32,20 +32,20 @@ fn main() -> Result<(), Box<dyn Error>> {
32
32
// lacks cas
33
33
} else {
34
34
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
+ => { }
44
44
45
- _ => {
46
- println ! ( "cargo:rustc-cfg=has_cas" ) ;
45
+ _ => {
46
+ println ! ( "cargo:rustc-cfg=has_cas" ) ;
47
+ }
47
48
}
48
- }
49
49
} ;
50
50
51
51
if is_avr {
You can’t perform that action at this time.
0 commit comments