Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance optimizations #3378

Closed

Update lib.rs

409e3fb
Select commit
Loading
Failed to load commit list.
Closed

Performance optimizations #3378

Update lib.rs
409e3fb
Select commit
Loading
Failed to load commit list.
Garnix CI / package devnet-compose [x86_64-linux] failed Dec 14, 2024 in 2m 51s

Run results

Build failed

Details

Last 100 lines of logs:

https://cache.nixos.org/nar/0zsb8bibzpg9ra3rj76i77f84j1d4fyxfn2qgzg3zvdkszv54wvw.nar.xz
https://cache.nixos.org/nar/1rmx510kdpbn09yv3riq0sqqr0p78f5zynkp5lb1016vikm5ijx9.nar.xz
https://cache.nixos.org/nar/1a238pvz2x3zd9xxmflq5yml913g4b95ibjsrasw1s70fpxfd3z8.nar.xz
https://cache.garnix.io/nar/jnq3f09j5w2im5nl6wkcssmlsw5q6h0j-0gw9rbvhwaisb9gl9i7fdls3h0pxs495r8fq5lygkkfr1z8rdi98.nar
https://cache.nixos.org/nar/1svba2brpj3629vh39zmsmac39rzdvshjqfhibw26wk5mkzibaqd.nar.xz
https://cache.nixos.org/nar/0q2zs80fgd9zs0zfbn0kzcf69gjgyhsrrc9djh53v5wxr5a38m88.nar.xz
https://cache.garnix.io/nar/g1ahydy3sxcw1nni1hlqvvdkvcp1xf18-0i3s943l1jr440pcq2wxglkhzfha50jmqgirbxnpcwg35cagbdff.nar
https://cache.nixos.org/ci4jhazjm4ps7q51cixrk4nibbfdyg2k.narinfo
https://cache.garnix.io/ci4jhazjm4ps7q51cixrk4nibbfdyg2k.narinfo
Running phase: unpackPhase
@nix {"action":"setPhase","phase":"unpackPhase"}
unpacking source archive /nix/store/j46jy6z0ayk6pdsdz6v5wiwsx7qmpidy-devnet-compose-patched-workspace-cargo-toml
source root is devnet-compose-patched-workspace-cargo-toml
Running phase: patchPhase
@nix {"action":"setPhase","phase":"patchPhase"}
Executing configureCargoCommonVars
decompressing cargo artifacts from /nix/store/mmhq43vi6gm263zhfnkzy3kxh0l9baf0-devnet-compose-deps-0.1.0/target.tar.zst to target
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix {"action":"setPhase","phase":"updateAutotoolsGnuConfigScriptsPhase"}
Running phase: configurePhase
@nix {"action":"setPhase","phase":"configurePhase"}
will append /build/devnet-compose-patched-workspace-cargo-toml/.cargo-home/config.toml with contents of /nix/store/g1ahydy3sxcw1nni1hlqvvdkvcp1xf18-vendor-cargo-deps/config.toml
default configurePhase, nothing to do
Running phase: buildPhase
@nix {"action":"setPhase","phase":"buildPhase"}
++ command cargo --version
cargo 1.83.0-nightly (15fbd2f60 2024-10-08)
++ command cargo build --release --message-format json-render-diagnostics -j1 -p devnet-compose
warning: Patch `arbitrary v1.3.2 (https://github.com/unionlabs/arbitrary#b5796f1a)` was not used in the crate graph.
Patch `merlin v3.0.0 (https://github.com/aptos-labs/merlin#3454ccc8)` was not used in the crate graph.
Patch `x25519-dalek v1.2.0 (https://github.com/aptos-labs/x25519-dalek?branch=zeroize_v1#762a9501)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
   Compiling portable-atomic v1.6.0
   Compiling indicatif v0.17.8
   Compiling cliclack v0.2.5
   Compiling devnet-compose v0.1.0 (/build/devnet-compose-patched-workspace-cargo-toml/devnet-compose)
warning: unused imports: `LogConfiguration` and `ShutdownConfig`
 --> devnet-compose/src/main.rs:7:5
  |
7 |     LogConfiguration, Probe, Process, ProcessDependency, Project, ShutdownConfig,
  |     ^^^^^^^^^^^^^^^^                                              ^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error[E0015]: cannot call non-const fn `Style::new` in statics
  --> devnet-compose/src/theme.rs:19:36
   |
19 |         static CYAN_STYLE: Style = Style::new().cyan();
   |                                    ^^^^^^^^^^^^
   |
   = note: calls in statics are limited to constant functions, tuple structs and tuple variants
   = note: consider wrapping this expression in `std::sync::LazyLock::new(|| ...)`

error[E0015]: cannot call non-const fn `Style::cyan` in statics
  --> devnet-compose/src/theme.rs:19:49
   |
19 |         static CYAN_STYLE: Style = Style::new().cyan();
   |                                                 ^^^^^^
   |
   = note: calls in statics are limited to constant functions, tuple structs and tuple variants
   = note: consider wrapping this expression in `std::sync::LazyLock::new(|| ...)`

error[E0308]: mismatched types
  --> devnet-compose/src/galois.rs:42:39
   |
42 |     let readiness_probe = Probe::exec(format!("nix run .#galoisd -- query-stats {GALIOSD_PORT}"));
   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String`
   |
   = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: use of undeclared type `ProcessBuilder`
  --> devnet-compose/src/main.rs:36:9
   |
36 |         ProcessBuilder::new(
   |         ^^^^^^^^^^^^^^ use of undeclared type `ProcessBuilder`

error[E0433]: failed to resolve: use of undeclared type `ProcessBuilder`
  --> devnet-compose/src/main.rs:97:5
   |
97 |     ProcessBuilder::new(
   |     ^^^^^^^^^^^^^^ use of undeclared type `ProcessBuilder`

error[E0507]: cannot move out of static item `CYAN_STYLE`
  --> devnet-compose/src/theme.rs:20:9
   |
20 |         CYAN_STYLE
   |         ^^^^^^^^^^ move occurs because `CYAN_STYLE` has type `Style`, which does not implement the `Copy` trait
   |
help: consider cloning the value if the performance cost is acceptable
   |
20 |         CYAN_STYLE.clone()
   |                   ++++++++

Some errors have detailed explanations: E0015, E0308, E0433, E0507.
For more information about an error, try `rustc --explain E0015`.
warning: `devnet-compose` (bin "devnet-compose") generated 1 warning
error: could not compile `devnet-compose` (bin "devnet-compose") due to 6 previous errors; 1 warning emitted