Skip to content

Commit 7010e29

Browse files
committed
Build: removing Rust build info on stdout
This drastically reduces the logging information we get when building Mina. The user can always use `dune build --verbose` for a verbose build.
1 parent bb93319 commit 7010e29

File tree

1 file changed

+27
-25
lines changed
  • src/lib/crypto/kimchi_bindings/stubs

1 file changed

+27
-25
lines changed

src/lib/crypto/kimchi_bindings/stubs/dune

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,24 @@
5454
(env_var KIMCHI_STUBS))
5555
(locks /cargo-lock) ;; lock for rustup
5656
(action
57-
(progn
58-
(setenv
59-
RUSTFLAGS
60-
%{read:rustflags.sexp}
61-
(run
62-
cargo
63-
build
64-
-p
65-
kimchi-stubs
66-
--release
67-
--target-dir
68-
%{read:../dune-build-root}/cargo_kimchi_stubs
69-
--offline))
70-
(run
71-
cp
72-
%{read:../dune-build-root}/cargo_kimchi_stubs/release/libkimchi_stubs.a
73-
.))))
57+
(ignore-stdout
58+
(progn
59+
(setenv
60+
RUSTFLAGS
61+
%{read:rustflags.sexp}
62+
(run
63+
cargo
64+
build
65+
-p
66+
kimchi-stubs
67+
--release
68+
--target-dir
69+
%{read:../dune-build-root}/cargo_kimchi_stubs
70+
--offline))
71+
(run
72+
cp
73+
%{read:../dune-build-root}/cargo_kimchi_stubs/release/libkimchi_stubs.a
74+
.)))))
7475

7576
;; this is used by nix
7677

@@ -166,14 +167,15 @@
166167
(env_var KIMCHI_STUBS))
167168
(locks /cargo-lock) ;; lock for rustup
168169
(action
169-
(progn
170-
(run rm -rf ./target)
171-
(run rm -f ./Cargo.lock)
172-
(setenv
173-
CARGO_TARGET_DIR
174-
"%{read:../dune-build-root}/cargo_kimchi_bindgen"
175-
(run cargo run %{targets} --offline))
176-
(run ocamlformat -i %{targets}))))
170+
(ignore-stdout
171+
(progn
172+
(run rm -rf ./target)
173+
(run rm -f ./Cargo.lock)
174+
(setenv
175+
CARGO_TARGET_DIR
176+
"%{read:../dune-build-root}/cargo_kimchi_bindgen"
177+
(run cargo run %{targets} --offline))
178+
(run ocamlformat -i %{targets})))))
177179

178180
;; this is used by nix
179181

0 commit comments

Comments
 (0)