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

feat(rust): add support for wasm32-unknown-unknown #138

Merged
merged 2 commits into from
Jul 19, 2023

refactor(rust-complex): do not use nightly

1308568
Select commit
Loading
Failed to load commit list.
Merged

feat(rust): add support for wasm32-unknown-unknown #138

refactor(rust-complex): do not use nightly
1308568
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
Garnix CI / check rust-complex-package-rust-complex-armv7-unknown-linux-musleabihf [x86_64-linux] succeeded Jul 19, 2023 in 2m 32s

Run results

Build succeeded

Details

Last 100 lines of logs:

unpacking sources
unpacking source archive /nix/store/vc5z1v873q4vyl2hlzbnr5l13iddz4c1-source
source root is source
patching sources
Executing configureCargoCommonVars
decompressing cargo artifacts from /nix/store/imqwdwl7hqfbcrgdarnf7sqqk7knpsdj-rust-complex-deps-0.0.0-unspecified/target.tar.zst to target
configuring
will append /build/source/.cargo-home/config.toml with contents of /nix/store/r0j51mnxyizp98k47bin2frnz8waqqjx-vendor-cargo-deps/config.toml
default configurePhase, nothing to do
building
++ command cargo --version
cargo 1.72.0-beta.1 (45782b6b8 2023-07-05)
++ command cargo build --release -j 16 --workspace --message-format json-render-diagnostics
   Compiling foo v0.1.0 (/build/source/foo)
warning: dropping unsupported crate type `cdylib` for target `armv7-unknown-linux-musleabihf`

warning: `foo` (lib) generated 1 warning
   Compiling rust-complex v0.1.0 (/build/source)
warning: function `main` is never used
 --> src/lib.rs:4:4
  |
4 | fn main() {
  |    ^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: `rust-complex` (lib) generated 1 warning
    Finished release [optimized] target(s) in 18.80s
running tests
++ command cargo test --release -j 16 --workspace
warning: dropping unsupported crate type `cdylib` for target `armv7-unknown-linux-musleabihf`

   Compiling foo v0.1.0 (/build/source/foo)
warning: `foo` (lib) generated 1 warning
warning: function `main` is never used
 --> src/lib.rs:4:4
  |
4 | fn main() {
  |    ^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: `rust-complex` (lib) generated 1 warning
   Compiling rust-complex v0.1.0 (/build/source)
    Finished release [optimized] target(s) in 1.90s
     Running unittests src/lib.rs (target/armv7-unknown-linux-musleabihf/release/deps/foo-210ad87617eaa42e)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/main.rs (target/armv7-unknown-linux-musleabihf/release/deps/foo-3db7d62348257495)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (target/armv7-unknown-linux-musleabihf/release/deps/rust_complex-437b8c0de194fe0e)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

installing
searching for bins/libs to install from cargo build log at cargoBuildLogUhBd.json
installing /build/source/target/armv7-unknown-linux-musleabihf/release/libfoo.a
installing /build/source/target/armv7-unknown-linux-musleabihf/release/foo
searching for bins/libs complete
stripping references to cargoVendorDir from /nix/store/n0167p1i2lk6xamkwgydy6031rh1i0sm-rust-complex-0.0.0-unspecified/lib/libfoo.a

real    0m2.879s
user    0m0.031s
sys     0m0.038s
stripping references to cargoVendorDir from /nix/store/n0167p1i2lk6xamkwgydy6031rh1i0sm-rust-complex-0.0.0-unspecified/bin/foo

real    0m2.556s
user    0m0.011s
sys     0m0.020s
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/n0167p1i2lk6xamkwgydy6031rh1i0sm-rust-complex-0.0.0-unspecified
shrinking /nix/store/n0167p1i2lk6xamkwgydy6031rh1i0sm-rust-complex-0.0.0-unspecified/bin/foo
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
checking for references to /build/ in /nix/store/n0167p1i2lk6xamkwgydy6031rh1i0sm-rust-complex-0.0.0-unspecified...
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
patching script interpreter paths in /nix/store/n0167p1i2lk6xamkwgydy6031rh1i0sm-rust-complex-0.0.0-unspecified
stripping (with command strip and flags -S -p) in  /nix/store/n0167p1i2lk6xamkwgydy6031rh1i0sm-rust-complex-0.0.0-unspecified/lib /nix/store/n0167p1i2lk6xamkwgydy6031rh1i0sm-rust-complex-0.0.0-unspecified/bin