Skip to content

Commit 45aa702

Browse files
authored
Merge pull request #266 from rust-embedded/release
v0.14.0
2 parents 5bdaa8e + 389c4f5 commit 45aa702

File tree

3 files changed

+30
-17
lines changed

3 files changed

+30
-17
lines changed

CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

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+
1033
## [v0.13.1] - 2018-05-16
1134

1235
### Fixed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ keywords = [
1919
license = "MIT OR Apache-2.0"
2020
name = "svd2rust"
2121
repository = "https://github.com/japaric/svd2rust"
22-
version = "0.13.1"
22+
version = "0.14.0"
2323

2424
[[bin]]
2525
doc = false

src/lib.rs

+6-16
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
//! ``` toml
6161
//! [dependencies]
6262
//! bare-metal = "0.2.0"
63-
//! cortex-m = "0.6.4"
63+
//! cortex-m = "0.5.8"
6464
//! vcell = "0.1.0"
6565
//!
6666
//! [dependencies.cortex-m-rt]
@@ -73,27 +73,17 @@
7373
//!
7474
//! ## target != cortex-m
7575
//!
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.
8878
//!
8979
//! The resulting crate must provide an opt-in "rt" feature and depend on these crates:
9080
//!
91-
//! - [`bare-metal`](https://crates.io/crates/bare-metal) v0.1.x
81+
//! - [`bare-metal`](https://crates.io/crates/bare-metal) v0.2.x
9282
//! - [`vcell`](https://crates.io/crates/vcell) v0.1.x
9383
//! - [`msp430`](https://crates.io/crates/msp430) v0.1.x if target = msp430.
9484
//! - [`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.
9787
//!
9888
//! The `*-rt` dependencies must be optional only enabled when the "rt" feature is enabled. The
9989
//! `Cargo.toml` of the device crate will look like this for an msp430 target:

0 commit comments

Comments
 (0)