Skip to content

Commit

Permalink
feat(bellman): Remove allocator feature from default features
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Nov 12, 2024
1 parent 28e2224 commit cf48db5
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build_stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Build stable"
on:
pull_request:
paths:
- "crates/**"
- "Cargo.toml"
- ".github/workflows/ci.yaml"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: "always"
CARGO_INCREMENTAL: "0"
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"

jobs:
build_stable:
name: Build (stable)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
# Remove default `-D warnings`. This is a temporary measure.
rustflags: ""

- name: Install sccache
uses: mozilla-actions/[email protected]

# Bellman crate *must* build on stable, because parts of the core
# codebase are only used in the context of stable compiler.
- name: Build
run: |
cargo build -p zksync_bellman
2 changes: 1 addition & 1 deletion crates/bellman/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ lazy_static = { version = "1", optional = true }
hex = "0.4"

[features]
default = ["multicore", "plonk", "allocator"]
default = ["multicore", "plonk"]
multicore = ["crossbeam", "futures/thread-pool"]
sonic = ["tiny-keccak", "blake2-rfc"]
gm17 = []
Expand Down
2 changes: 1 addition & 1 deletion crates/fflonk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ categories.workspace = true
description = "Reference implementation of fflonk prover and verifier"

[dependencies]
franklin-crypto.workspace = true
franklin-crypto = { workspace = true, features = ["allocator"] }
num-bigint = { version = "0.4", features = ["serde"] }
num-traits = "0.2"
rand = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion crates/franklin-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description = "Cryptographic library for SNARK gadgets, based on sapling-crypto"
crate-type = ["lib", "staticlib"]

[features]
default = ["multicore", "plonk", "allocator"]
default = ["multicore", "plonk"]
multicore = ["bellman/multicore"]
plonk = ["bellman/plonk"]
allocator = ["bellman/allocator"]
Expand Down

0 comments on commit cf48db5

Please sign in to comment.