Skip to content

Commit f8da18d

Browse files
Merge #484
484: Update the min `vcell` version to v0.1.2 r=therealprof a=david-sawatzke `src/generate/generic.rs:53` contains an `as_ptr()` call on a vcell. This was only added in `vcell` v0.1.1 (since yanked). Thus, the generated crates only build with vcell v0.1.2 Co-authored-by: David Sawatzke <d-git@sawatzke.dev>
2 parents c68b71c + 3f31a31 commit f8da18d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ci/script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ main() {
7070
cargo init --name foo $td
7171
echo 'cortex-m = "0.7.0"' >> $td/Cargo.toml
7272
echo 'cortex-m-rt = "0.6.13"' >> $td/Cargo.toml
73-
echo 'vcell = "0.1.0"' >> $td/Cargo.toml
73+
echo 'vcell = "0.1.2"' >> $td/Cargo.toml
7474
echo '[profile.dev]' >> $td/Cargo.toml
7575
echo 'incremental = false' >> $td/Cargo.toml
7676

ci/svd2rust-regress/src/svd_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::io::prelude::*;
55
use std::path::PathBuf;
66
use std::process::{Command, Output};
77

8-
const CRATES_ALL: &[&str] = &["bare-metal = \"0.2.0\"", "vcell = \"0.1.0\""];
8+
const CRATES_ALL: &[&str] = &["bare-metal = \"0.2.0\"", "vcell = \"0.1.2\""];
99
const CRATES_MSP430: &[&str] = &["msp430 = \"0.2.2\""];
1010
const CRATES_CORTEX_M: &[&str] = &["cortex-m = \"0.7.0\"", "cortex-m-rt = \"0.6.13\""];
1111
const CRATES_RISCV: &[&str] = &["riscv = \"0.5.0\"", "riscv-rt = \"0.6.0\""];

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@
5353
//! ```
5454
//!
5555
//! The resulting crate must provide an opt-in "rt" feature and depend on these crates:
56-
//! `cortex-m` v0.7, `cortex-m-rt` >=v0.6.13 and `vcell` v0.1.x. Furthermore
56+
//! `cortex-m` v0.7, `cortex-m-rt` >=v0.6.13 and `vcell` >=v0.1.2. Furthermore
5757
//! the "device" feature of `cortex-m-rt` must be enabled when the "rt" feature is enabled. The
5858
//! `Cargo.toml` of the device crate will look like this:
5959
//!
6060
//! ``` toml
6161
//! [dependencies]
6262
//! cortex-m = "0.7"
63-
//! vcell = "0.1.0"
63+
//! vcell = "0.1.2"
6464
//!
6565
//! [dependencies.cortex-m-rt]
6666
//! optional = true

0 commit comments

Comments
 (0)