Skip to content

Commit 77c5488

Browse files
committed
Use cargo-no-std in CI
1 parent 6c5e9b2 commit 77c5488

4 files changed

Lines changed: 6 additions & 62 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,9 @@ jobs:
7272
with:
7373
targets: x86_64-unknown-none
7474
- uses: Swatinem/rust-cache@v2
75-
- name: Build
76-
run: cargo b --package tests --target x86_64-unknown-none
77-
working-directory: tests
78-
79-
alloc:
80-
name: Check alloc
81-
runs-on: ubuntu-latest
82-
steps:
83-
- uses: actions/checkout@v4
84-
- uses: dtolnay/rust-toolchain@stable
85-
with:
86-
targets: x86_64-unknown-none
87-
- uses: Swatinem/rust-cache@v2
88-
- name: Build
89-
run: cargo b --package tests --target x86_64-unknown-none --features alloc
90-
working-directory: tests
75+
- name: Install cargo-no-std
76+
run: cargo install cargo-no-std
77+
- name: Check no_std
78+
run: cargo no-std --package bin-proto --no-default-features --features prepend-tags
79+
- name: Check alloc
80+
run: cargo no-std --package bin-proto --no-default-features --alloc --features "prepend-tags alloc"

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@ members = [
33
"bin-proto",
44
"bin-proto-derive",
55
]
6-
exclude = [
7-
"tests",
8-
]
96
resolver = "2"

tests/Cargo.toml

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/src/main.rs

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)