Skip to content

Commit

Permalink
ci: solve ecc feature combination with std
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Oct 31, 2024
1 parent bedd86c commit 0fcc266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,6 @@ jobs:
run: cargo check --workspace --no-default-features --features=std,${{matrix.feature}}
- name: Feature ${{matrix.feature}}
run: cargo check --workspace --features=${{matrix.feature}}
features-nostd:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
feature:
- secp256k1
- curve25519
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Feature ${{matrix.feature}}
run: cargo check --workspace --no-default-features --features=alloc,${{matrix.feature}}
platforms:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ strict_types = { version = "2.7.0", optional = true }
sha2 = "0.10.8"
blake3 = "1.5.4"
ripemd = "0.1.3"
secp256k1 = { version = "0.30.0", optional = true, features = ["global-context"] }
curve25519-dalek = { version = "3.2.1", optional = true }
secp256k1 = { version = "0.30.0", optional = true, features = ["global-context", "std"] }
curve25519-dalek = { version = "3.2.1", optional = true, features = ["std"] }
half = "2.4.1" # Required to maintain MSRV
serde_crate = { package = "serde", version = "1", optional = true }

Expand All @@ -42,7 +42,8 @@ stl = ["strict_types/armor", "std"]
std = ["amplify/std"]
log = ["std"]
alloc = ["amplify/alloc"]
curve25519 = ["curve25519-dalek"]
secp256k1 = ["dep:secp256k1", "std"]
curve25519 = ["curve25519-dalek", "std"]
serde = ["serde_crate", "amplify/serde", "std", "strict_encoding/serde"]

[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand Down

0 comments on commit 0fcc266

Please sign in to comment.