Skip to content

Commit

Permalink
fix: move glob to dev deps (#10)
Browse files Browse the repository at this point in the history
* fix: move glob to dev deps

* fix: flag build binaries for std only

* fix: yml
  • Loading branch information
0xWOLAND authored Aug 23, 2024
1 parent 643b58b commit 1848e86
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@ env:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose --no-default-features --features=cache
- name: Run tests
run: cargo test --verbose --features=kzg-test
test-no-std:
name: test no_std
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
targets: riscv32imac-unknown-none-elf
- run: cargo check --target riscv32imac-unknown-none-elf --no-default-features --features=cache
9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@ serde = { version = "1.0", optional = true, default-features = false, features =
"alloc",
"derive",
] }
glob = "0.3.1"
hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
serde_yaml = { version = "0.9", optional = true }
once_cell = { version = "1.19.0", default-features = false, features = [
"race",
"alloc",
] }
bls12_381 = "0.8.0"
bls12_381 = { version = "0.8.0", no-default-features = true }

[dev-dependencies]
glob = "0.3.1"

[features]
default = ["std", "serde"]
default = ["serde"]
serde = ["dep:serde", "dep:serde_yaml", "dep:serde_derive"]
kzg-test = ['std', 'cache']
std = ["serde/std"]
Expand All @@ -32,3 +34,4 @@ cache = []
[[bin]]
name = "build_binaries"
path = "scripts/build_binaries.rs"
required-features = ["std"]

0 comments on commit 1848e86

Please sign in to comment.