Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/lib/crypto/kimchi_bindings/dune

This file was deleted.

3 changes: 1 addition & 2 deletions src/lib/crypto/kimchi_bindings/js/node_js/dune
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@
flags.sexp)
(deps
build.sh
../../dune-build-root
(source_tree ../../../proof-systems))
(locks /cargo-lock) ; lock for rustup
(action
(progn
(setenv
CARGO_TARGET_DIR
"%{read:../../dune-build-root}/cargo_kimchi_wasm"
"%{workspace_root}/cargo_kimchi_wasm"
(run bash build.sh))
(write-file flags.sexp "()"))))
3 changes: 1 addition & 2 deletions src/lib/crypto/kimchi_bindings/js/web/dune
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@
flags.sexp)
(deps
build.sh
../../dune-build-root
(source_tree ../../../proof-systems))
(locks /cargo-lock) ; lock for rustup
(action
(progn
(setenv
CARGO_TARGET_DIR
"%{read:../../dune-build-root}/cargo_kimchi_wasm"
"%{workspace_root}/cargo_kimchi_wasm"
(run bash build.sh))
(write-file flags.sexp "()"))))
6 changes: 3 additions & 3 deletions src/lib/crypto/kimchi_bindings/stubs/dune
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@
kimchi-stubs
--release
--target-dir
%{read:../dune-build-root}/cargo_kimchi_stubs
%{workspace_root}/cargo_kimchi_stubs
--offline))
(run
cp
%{read:../dune-build-root}/cargo_kimchi_stubs/release/libkimchi_stubs.a
%{workspace_root}/cargo_kimchi_stubs/release/libkimchi_stubs.a
.))))

;; this is used by nix
Expand Down Expand Up @@ -171,7 +171,7 @@
(run rm -f ./Cargo.lock)
(setenv
CARGO_TARGET_DIR
"%{read:../dune-build-root}/cargo_kimchi_bindgen"
"%{workspace_root}/cargo_kimchi_bindgen"
(run cargo run %{targets} --offline))
(run ocamlformat -i %{targets}))))

Expand Down