From bcd79f0f20c4007a2caee0266cd514a57ca29d34 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 12 Feb 2025 13:54:56 +0100 Subject: [PATCH] docs fix --- .github/workflows/ci.yml | 4 +--- va108xx-hal/Cargo.toml | 8 ++++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96e4d22..a3d02ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,9 +21,7 @@ jobs: - uses: dtolnay/rust-toolchain@stable - name: Install nextest uses: taiki-e/install-action@nextest - # There is not a single test, and the tests are brittle because some dependencies do not - # like being run on general purpose machines.. - # - run: cargo nextest run --all-features -p va108xx-hal --no-tests=pass + - run: cargo nextest run --all-features -p va108xx-hal --no-tests=pass # I think we can skip those on an embedded crate.. # - run: cargo test --doc -p va108xx-hal diff --git a/va108xx-hal/Cargo.toml b/va108xx-hal/Cargo.toml index c6c2172..bba5650 100644 --- a/va108xx-hal/Cargo.toml +++ b/va108xx-hal/Cargo.toml @@ -26,12 +26,16 @@ delegate = ">=0.12, <=0.13" thiserror = { version = "2", default-features = false } void = { version = "1", default-features = false } once_cell = {version = "1", default-features = false } -va108xx = { version = "0.3", default-features = false, features = ["critical-section"]} -portable-atomic = { version = "1", features = ["unsafe-assume-single-core"]} +va108xx = { version = "0.3", default-features = false, features = ["critical-section"] } embassy-sync = "0.6" defmt = { version = "0.3", optional = true } +[target.'cfg(all(target_arch = "arm", target_os = "none"))'.dependencies] +portable-atomic = { version = "1", features = ["unsafe-assume-single-core"] } +[target.'cfg(not(all(target_arch = "arm", target_os = "none")))'.dependencies] +portable-atomic = "1" + [features] default = ["rt"] rt = ["va108xx/rt"]