Skip to content

Commit

Permalink
Try cross
Browse files Browse the repository at this point in the history
  • Loading branch information
nyonson committed Mar 19, 2024
1 parent 51cc868 commit 958490c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
rustup default ${{ matrix.toolchain }}
rustup component add --toolchain ${{ matrix.toolchain }} rustfmt
rustup component add --toolchain ${{ matrix.toolchain }} clippy
rustup target add --toolchain ${{ matrix.toolchain }} thumbv7m-none-eabi
rustup update ${{ matrix.toolchain }}
- name: Build
run: cargo build --verbose
Expand All @@ -33,6 +33,8 @@ jobs:
- name: Test
run: cargo test --verbose
- name: Check No Standard Library Support
run: cargo build --target thumbv7m-none-eabi --no-default-features

run: |
rustup target add --toolchain ${{ matrix.toolchain }} thumbv7m-none-eabi
cargo install cross
cross build --target thumbv7m-none-eabi --no-default-features
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ rust-version = "1.56.1"

[features]
default = ["std"]
std = ["rand/std", "rand/std_rng"]
std = ["secp256k1/std", "rand/std", "rand/std_rng"]

[dependencies]
secp256k1 = { version="0.28.2" }
secp256k1 = { version="0.28.2", default-features = false}
rand = { version = "0.8.4", default-features = false }
bitcoin_hashes = { version = "0.13.0", default-features = false }

Expand Down

0 comments on commit 958490c

Please sign in to comment.