Skip to content

Commit

Permalink
Back to individual config.toml
Browse files Browse the repository at this point in the history
wasm should not use vendor
  • Loading branch information
dannywillems committed Jan 28, 2025
1 parent c18a4fc commit c0c0f04
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 21 deletions.
17 changes: 0 additions & 17 deletions .cargo/config.toml

This file was deleted.

2 changes: 1 addition & 1 deletion src/lib/crypto/kimchi_bindings/js/web/dune
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
../../../../../../Cargo.lock
(source_tree ../../../mina-rust-dependencies)
(source_tree ../../../proof-systems)
(source_tree ../../../../../.cargo)
;; Required as we use Cargo workspace, and the build requires the Cargo.toml
;; and sources for each members
../../stubs/Cargo.toml
Expand All @@ -33,6 +32,7 @@
../../wasm/Cargo.toml
;; Enforcing the rust version used for the build
../../wasm/rust-toolchain.toml
(source_tree ../../wasm/.cargo)
(source_tree ../../wasm/src))
(locks /cargo-lock) ; lock for rustup
(action
Expand Down
8 changes: 8 additions & 0 deletions src/lib/crypto/kimchi_bindings/stubs/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[target]
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]

[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "../../../mina-rust-dependencies"
5 changes: 2 additions & 3 deletions src/lib/crypto/kimchi_bindings/stubs/dune
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,13 @@
./Cargo.toml
../../../../../rust-toolchain.toml
(source_tree src)
(source_tree ../../../../../.cargo)
(source_tree .cargo)
(source_tree ../../mina-rust-dependencies)
(source_tree ../../proof-systems)
;; Required as Cargo asks for all members of the workspace.
;; This is temporary until we move into proof-systems
../wasm/Cargo.toml
(source_tree ../wasm/src)
(source_tree ../wasm/.cargo)
(env_var MARLIN_PLONK_STUBS))
(locks /cargo-lock) ;; lock for rustup
(action
Expand Down Expand Up @@ -159,7 +158,7 @@
(source_tree ../../mina-rust-dependencies)
(source_tree ../../proof-systems)
(source_tree src)
(source_tree ../../../../../.cargo)
(source_tree .cargo)
;; Required as Cargo asks for all members of the workspace.
;; This is temporary until we move into proof-systems
../wasm/Cargo.toml
Expand Down
7 changes: 7 additions & 0 deletions src/lib/crypto/kimchi_bindings/wasm/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[profile.release.target.wasm32-unknown-unknown]
debug = true

[package.metadata.wasm-pack.profile.release]
wasm-opt = false
#wasm-opt = ["-O4", "--detect-features", "--enable-mutable-globals" ]
#wasm-opt = ["-O4", "--enable-mutable-globals"]

0 comments on commit c0c0f04

Please sign in to comment.