File tree 3 files changed +30
-17
lines changed
3 files changed +30
-17
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ ## [ v0.14.0] - 2018-12-07
11
+
12
+ ### Added
13
+
14
+ - On Cortex-M targets the generated code includes a re-export of the
15
+ ` cortex_m_rt::interrupt ` attribute, but only when the ` rt ` feature is enabled.
16
+
17
+ ### Changed
18
+
19
+ - [ breaking-change] on non-Cortex targets Interrupt no longer implements the
20
+ ` TryFrom ` trait; it now provides an inherent ` try_from ` method.
21
+
22
+ - [ breaking-change] for non-Cortex targets svd2rust no longer outputs the
23
+ generated code to stdout; instead it writes it to a file named ` lib.rs ` .
24
+
25
+ - Brackets generated in doc comments are now escaped to prevent warnings on
26
+ nightly where the compiler tries to interpret bracketed content as links to
27
+ structs, enums, etc.
28
+
29
+ ### Fixed
30
+
31
+ - Some bugs around the generation of unions (see ` --nightly ` flag).
32
+
10
33
## [ v0.13.1] - 2018-05-16
11
34
12
35
### Fixed
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ keywords = [
19
19
license = " MIT OR Apache-2.0"
20
20
name = " svd2rust"
21
21
repository = " https://github.com/japaric/svd2rust"
22
- version = " 0.13.1 "
22
+ version = " 0.14.0 "
23
23
24
24
[[bin ]]
25
25
doc = false
Original file line number Diff line number Diff line change 60
60
//! ``` toml
61
61
//! [dependencies]
62
62
//! bare-metal = "0.2.0"
63
- //! cortex-m = "0.6.4 "
63
+ //! cortex-m = "0.5.8 "
64
64
//! vcell = "0.1.0"
65
65
//!
66
66
//! [dependencies.cortex-m-rt]
73
73
//!
74
74
//! ## target != cortex-m
75
75
//!
76
- //! When the target is msp430, riscv or none `svd2rust` will emit all the generated code to stdout.
77
- //! Like in the cortex-m case we recommend you use `form` and `rustfmt` on the output:
78
- //!
79
- //! ``` console
80
- //! $ svd2rust -i *.svd --target msp430 > lib.rs
81
- //!
82
- //! $ rm -rf src
83
- //!
84
- //! $ form -i lib.rs -o src/ && rm lib.rs
85
- //!
86
- //! $ cargo fmt
87
- //! ```
76
+ //! When the target is msp430, riscv or none `svd2rust` will emit only the `lib.rs` file. Like in
77
+ //! the cortex-m case we recommend you use `form` and `rustfmt` on the output.
88
78
//!
89
79
//! The resulting crate must provide an opt-in "rt" feature and depend on these crates:
90
80
//!
91
- //! - [`bare-metal`](https://crates.io/crates/bare-metal) v0.1 .x
81
+ //! - [`bare-metal`](https://crates.io/crates/bare-metal) v0.2 .x
92
82
//! - [`vcell`](https://crates.io/crates/vcell) v0.1.x
93
83
//! - [`msp430`](https://crates.io/crates/msp430) v0.1.x if target = msp430.
94
84
//! - [`msp430-rt`](https://crates.io/crates/msp430-rt) v0.1.x if target = msp430.
95
- //! - [`riscv`](https://crates.io/crates/riscv) v0.2 .x if target = riscv.
96
- //! - [`riscv-rt`](https://crates.io/crates/riscv-rt) v0.2 .x if target = riscv.
85
+ //! - [`riscv`](https://crates.io/crates/riscv) v0.3 .x if target = riscv.
86
+ //! - [`riscv-rt`](https://crates.io/crates/riscv-rt) v0.3 .x if target = riscv.
97
87
//!
98
88
//! The `*-rt` dependencies must be optional only enabled when the "rt" feature is enabled. The
99
89
//! `Cargo.toml` of the device crate will look like this for an msp430 target:
You can’t perform that action at this time.
0 commit comments