Skip to content

Commit 357f82c

Browse files
authored
Merge pull request #389 from rust-embedded/remove-spin
Minor cleanups
2 parents 4efc8df + b7a65ef commit 357f82c

File tree

3 files changed

+6
-38
lines changed

3 files changed

+6
-38
lines changed

Cargo.toml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -42,32 +42,13 @@ atomic-polyfill = { version = "1.0.1", optional = true }
4242

4343
[dependencies]
4444
hash32 = "0.3.0"
45+
serde = { version = "1", optional = true, default-features = false }
46+
stable_deref_trait = { version = "1", default-features = false }
47+
ufmt-write = { version = "0.1", optional = true }
48+
defmt = { version = ">=0.2.0,<0.4", optional = true }
4549

46-
[target.'cfg(target_arch = "x86_64")'.dependencies]
47-
spin = "0.9.4"
48-
49-
[dependencies.serde]
50-
version = "1"
51-
optional = true
52-
default-features = false
53-
54-
[dependencies.stable_deref_trait]
55-
version = "1"
56-
default-features = false
57-
58-
[dependencies.ufmt-write]
59-
version = "0.1"
60-
optional = true
61-
62-
[dev-dependencies.ufmt]
63-
version = "0.1"
64-
65-
[dependencies.defmt]
66-
version = ">=0.2.0,<0.4"
67-
optional = true
68-
69-
[build-dependencies]
70-
rustc_version = "0.4.0"
50+
[dev-dependencies]
51+
ufmt = { version = "0.1" }
7152

7253
[package.metadata.docs.rs]
7354
all-features = true

build.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ use std::{
88
process::{Command, ExitStatus, Stdio},
99
};
1010

11-
use rustc_version::Channel;
12-
1311
fn main() -> Result<(), Box<dyn Error>> {
1412
let target = env::var("TARGET")?;
1513

@@ -90,13 +88,6 @@ fn main() -> Result<(), Box<dyn Error>> {
9088
}
9189
}
9290

93-
if !matches!(
94-
rustc_version::version_meta().unwrap().channel,
95-
Channel::Stable | Channel::Beta
96-
) {
97-
println!("cargo:rustc-cfg=unstable_channel");
98-
}
99-
10091
match compile_probe(ARM_LLSC_PROBE) {
10192
Some(status) if status.success() => println!("cargo:rustc-cfg=arm_llsc"),
10293
_ => {}

tests/tsan.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ fn twice() {
5050
}
5151

5252
#[test]
53-
#[cfg(unstable_channel)]
5453
fn scoped() {
5554
let mut rb: spsc::Queue<i32, 5> = spsc::Queue::new();
5655

@@ -75,7 +74,6 @@ fn scoped() {
7574

7675
#[test]
7776
#[cfg_attr(miri, ignore)] // too slow
78-
#[cfg(unstable_channel)]
7977
fn contention() {
8078
const N: usize = 1024;
8179

@@ -121,7 +119,6 @@ fn contention() {
121119

122120
#[test]
123121
#[cfg_attr(miri, ignore)] // too slow
124-
#[cfg(unstable_channel)]
125122
fn mpmc_contention() {
126123
use std::sync::mpsc;
127124

@@ -172,7 +169,6 @@ fn mpmc_contention() {
172169

173170
#[test]
174171
#[cfg_attr(miri, ignore)] // too slow
175-
#[cfg(unstable_channel)]
176172
fn unchecked() {
177173
const N: usize = 1024;
178174

0 commit comments

Comments
 (0)