[INFO] fetching crate fuels-rs 0.2.1... [INFO] testing fuels-rs-0.2.1 against 1.101.0-beta.1+cargoflags=--release for beta-release-1.101-2 [INFO] extracting crate fuels-rs 0.2.1 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate fuels-rs 0.2.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate fuels-rs 0.2.1 [INFO] tweaked toml for crates.io crate fuels-rs 0.2.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate fuels-rs 0.2.1 on toolchain 1.101.0-beta.1 [INFO] running `"cargo" "+1.101.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps"` [INFO] running `"cargo" "+1.101.0-beta.1" "generate-lockfile" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 480 packages to highest compatible versions [INFO] [stderr] Adding async-graphql v2.9.15 (available: v2.11.3) [INFO] [stderr] Adding async-graphql-derive v2.9.15 (available: v2.11.3) [INFO] [stderr] Adding async-graphql-parser v2.9.15 (available: v2.11.3) [INFO] [stderr] Adding async-graphql-value v2.9.15 (available: v2.11.3) [INFO] [stderr] Adding forc v0.3.3 (available: v0.72.1) [INFO] [stderr] Adding fuel-asm v0.1.0 (available: v0.66.4) [INFO] [stderr] Adding fuel-core v0.2.1 (available: v0.48.4) [INFO] [stderr] Adding fuel-gql-client v0.2.1 (available: v0.15.3) [INFO] [stderr] Adding fuel-tx v0.2.1 (available: v0.66.4) [INFO] [stderr] Adding fuel-types v0.1.0 (available: v0.66.4) [INFO] [stderr] Adding fuel-vm v0.2.0 (available: v0.66.4) [INFO] [stderr] Adding fuels-core v0.2.1 (available: v0.77.0) [INFO] [stderr] Adding itertools v0.10.5 (available: v0.15.0) [INFO] [stderr] Adding rand v0.8.8 (available: v0.10.4) [INFO] [stderr] Adding sha2 v0.9.9 (available: v0.11.1) [INFO] [stderr] Adding strum v0.21.0 (available: v0.28.0) [INFO] [stderr] Adding strum_macros v0.21.1 (available: v0.28.0) [INFO] [stderr] Adding subtle v2.4.1 (available: v2.6.1) [INFO] [stderr] Adding sway-types v0.1.9 (available: v0.72.1) [INFO] [stderr] Adding sway-utils v0.1.9 (available: v0.72.1) [INFO] [stderr] Adding syn v1.0.109 (available: v3.0.10) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.21) [INFO] [stderr] Adding ureq v2.9.1 (available: v2.12.1) [INFO] running `"cargo" "+1.101.0-beta.1" "fetch" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:13253766d39459fde29cea4e7c35a3fe37c2c19b4a224f71f2c27711c2837d36" "sleep" "infinity"` [INFO] [stdout] 99827b2544a7ce7029db8de0457046af9f008324ee600e8ec0dbb5828ff0dfd1 [INFO] running `"docker" "start" "99827b2544a7ce7029db8de0457046af9f008324ee600e8ec0dbb5828ff0dfd1"` [INFO] running `"docker" "inspect" "99827b2544a7ce7029db8de0457046af9f008324ee600e8ec0dbb5828ff0dfd1"` [INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "99827b2544a7ce7029db8de0457046af9f008324ee600e8ec0dbb5828ff0dfd1" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "metadata" "--no-deps" "--format-version=1"` [INFO] running `"docker" "inspect" "99827b2544a7ce7029db8de0457046af9f008324ee600e8ec0dbb5828ff0dfd1"` [INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "99827b2544a7ce7029db8de0457046af9f008324ee600e8ec0dbb5828ff0dfd1" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "build" "--frozen" "--message-format=json" "--release"` [INFO] [stderr] Compiling libc v0.2.191 [INFO] [stderr] Compiling find-msvc-tools v0.1.15 [INFO] [stderr] Compiling memchr v2.8.3 [INFO] [stderr] Compiling pin-project-lite v0.2.18 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v3.0.10 [INFO] [stderr] Compiling syn v2.0.119 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling cc v1.11.3 [INFO] [stderr] Compiling value-bag v1.14.1 [INFO] [stderr] Compiling itoa v1.0.19 [INFO] [stderr] Compiling log v0.4.35 [INFO] [stderr] Compiling futures-io v0.3.34 [INFO] [stderr] Compiling serde_json v1.0.154 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling smallvec v1.16.6 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling object v0.39.1 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling socket2 v0.6.5 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling utf_types v1.0.0 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling ucd-trie v0.1.8 [INFO] [stderr] Compiling utf8_iter v1.1.0 [INFO] [stderr] Compiling aho-corasick v1.1.5 [INFO] [stderr] Compiling icu_properties_data v2.4.0 [INFO] [stderr] Compiling lazy_static v1.5.1 [INFO] [stderr] Compiling regex-syntax v0.8.12 [INFO] [stderr] Compiling zerocopy v0.8.64 [INFO] [stderr] Compiling icu_normalizer_data v2.4.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling rustix v1.1.6 [INFO] [stderr] Compiling stacker v0.1.25 [INFO] [stderr] Compiling regex-automata v0.4.19 [INFO] [stderr] Compiling synstructure v0.14.0 [INFO] [stderr] Compiling ar_archive_writer v0.5.5 [INFO] [stderr] Compiling form_urlencoded v1.2.3 [INFO] [stderr] Compiling errno v0.3.15 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling linux-raw-sys v0.12.1 [INFO] [stderr] Compiling serde_derive v1.0.229 [INFO] [stderr] Compiling zerofrom-derive v0.1.8 [INFO] [stderr] Compiling yoke-derive v0.8.4 [INFO] [stderr] Compiling zerovec-derive v0.11.7 [INFO] [stderr] Compiling displaydoc v0.2.7 [INFO] [stderr] Compiling zerofrom v0.1.8 [INFO] [stderr] Compiling futures-macro v0.3.34 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling yoke v0.8.4 [INFO] [stderr] Compiling psm v0.1.32 [INFO] [stderr] Compiling regex v1.13.2 [INFO] [stderr] Compiling either v1.19.0 [INFO] [stderr] Compiling zerovec v0.11.9 [INFO] [stderr] Compiling zerotrie v0.2.5 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling futures-util v0.3.34 [INFO] [stderr] Compiling serde_core v1.0.229 [INFO] [stderr] Compiling tokio-macros v2.7.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling mio v1.2.5 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling tinystr v0.8.5 [INFO] [stderr] Compiling potential_utf v0.1.6 [INFO] [stderr] Compiling icu_locale_core v2.4.0 [INFO] [stderr] Compiling icu_collections v2.4.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling pest_stack_guard v1.0.1 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.130 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling openssl-sys v0.9.118 [INFO] [stderr] Compiling libz-sys v1.1.33 [INFO] [stderr] Compiling serde v1.0.229 [INFO] [stderr] Compiling icu_provider v2.4.0 [INFO] [stderr] Compiling libnghttp2-sys v0.1.13+1.68.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling icu_normalizer v2.4.0 [INFO] [stderr] Compiling bytes v1.12.2 [INFO] [stderr] Compiling icu_properties v2.4.0 [INFO] [stderr] Compiling fuel-types v0.1.0 [INFO] [stderr] Compiling zmij v1.0.23 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tokio v1.54.1 [INFO] [stderr] Compiling fuel-asm v0.1.0 [INFO] [stderr] Compiling idna_adapter v1.2.2 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling url v2.5.9 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling pin-project-internal v1.2.0 [INFO] [stderr] Compiling event-listener v5.4.2 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling pin-project v1.2.0 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling rand v0.8.8 [INFO] [stderr] Compiling async-trait v0.1.92 [INFO] [stderr] Compiling futures-lite v2.6.1 [INFO] [stderr] Compiling curl-sys v0.4.91+curl-8.22.0 [INFO] [stderr] Compiling secp256k1-sys v0.4.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling unicode-ident v1.0.27 [INFO] [stderr] Compiling cfg-if v1.0.5 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling mime v0.3.18 [INFO] [stderr] Compiling fuel-tx v0.2.1 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling darling_core v0.12.4 [INFO] [stderr] Compiling encoding_rs v0.8.44 [INFO] [stderr] Compiling async-io v2.6.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling anyhow v1.0.105 [INFO] [stderr] Compiling const_fn v0.4.12 [INFO] [stderr] Compiling cpuid-bool v0.2.0 [INFO] [stderr] Compiling polyval v0.4.5 [INFO] [stderr] Compiling piper v0.2.5 [INFO] [stderr] Compiling darling_macro v0.12.4 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling tokio-util v0.7.20 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling async-channel v2.5.0 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling polling v3.11.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling crypto-mac v0.10.1 [INFO] [stderr] Compiling fuel-pest v3.0.4 [INFO] [stderr] Compiling dirs v1.0.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling csv-core v0.1.13 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling fuel-storage v0.1.0 [INFO] [stderr] Compiling bumpalo v3.20.4 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling keccak v0.1.6 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.130 [INFO] [stderr] Compiling fuel-pest_meta v3.0.4 [INFO] [stderr] Compiling fuel-merkle v0.1.1 [INFO] [stderr] Compiling csv v1.4.0 [INFO] [stderr] Compiling term v0.5.2 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling blocking v1.7.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling secp256k1 v0.20.3 [INFO] [stderr] Compiling pest v2.9.6 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling darling v0.12.4 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling async-executor v1.14.1 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling async-lock v3.5.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling wasm-bindgen v0.2.130 [INFO] [stderr] Compiling aead v0.3.2 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling curl v0.4.51 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling equivalent v1.0.3 [INFO] [stderr] Compiling hashbrown v0.17.2 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling encode_unicode v0.3.6 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling prettytable-rs v0.8.0 [INFO] [stderr] Compiling indexmap v2.14.2 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling spinning_top v0.2.5 [INFO] [stderr] Compiling pest_meta v2.9.6 [INFO] [stderr] Compiling fuel-vm v0.2.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.130 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling fuel-pest_generator v3.0.4 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling http-types v2.12.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling isahc v0.9.14 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling peg-runtime v0.7.0 [INFO] [stderr] Compiling unicase v2.10.0 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling ascii v0.9.3 [INFO] [stderr] Compiling pin-utils v0.1.1 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling peg-macros v0.7.0 [INFO] [stderr] Compiling async-std v1.13.2 [INFO] [stderr] Compiling combine v3.8.1 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling chrono v0.4.45 [INFO] [stderr] Compiling fuel-pest_derive v3.0.4 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling pest_generator v2.9.6 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling flume v0.9.2 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling sluice v0.5.5 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling futures-executor v0.3.34 [INFO] [stderr] Compiling serde_qs v0.8.5 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling infer v0.2.3 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling graphql-parser v0.3.0 [INFO] [stderr] Compiling peg v0.7.0 [INFO] [stderr] Compiling sway-types v0.3.3 [INFO] [stderr] Compiling futures v0.3.34 [INFO] [stderr] Compiling js-sys v0.3.107 [INFO] [stderr] Compiling pest_derive v2.9.6 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling prettydiff v0.5.1 [INFO] [stderr] Compiling schemafy_core v0.5.2 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling generational-arena v0.2.9 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling crc32fast v1.5.5 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling getrandom v0.4.3 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling sway-ir v0.3.3 [INFO] [stderr] Compiling chrono-tz v0.5.3 [INFO] [stderr] Compiling async-graphql-value v2.9.15 [INFO] [stderr] Compiling cynic-codegen v0.14.1 [INFO] [stderr] Compiling schemafy_lib v0.5.2 [INFO] [stderr] Compiling http-client v6.5.3 [INFO] [stderr] Compiling serde_repr v0.1.21 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling unchecked-index v0.2.2 [INFO] [stderr] Compiling filetime v0.2.30 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling once_cell v1.21.4 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling str_indices v0.4.4 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling web-sys v0.3.107 [INFO] [stderr] Compiling cynic-proc-macros v0.14.1 [INFO] [stderr] Compiling surf v2.3.2 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling ropey v1.6.1 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling structopt-derive v0.2.18 [INFO] [stderr] Compiling twoway v0.2.2 [INFO] [stderr] Compiling sway-core v0.3.3 [INFO] [stderr] Compiling dashmap v4.0.2 [INFO] [stderr] Compiling lsp-types v0.91.1 [INFO] [stderr] Compiling fuel-gql-client v0.2.1 [INFO] [stderr] Compiling async-graphql-parser v2.9.15 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling tokio-util v0.6.10 [INFO] [stderr] Compiling auto_impl v0.5.0 [INFO] [stderr] Compiling json-decode v0.6.0 [INFO] [stderr] Compiling lspower-macros v0.2.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling proc-macro2 v1.0.107 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling countme v2.0.4 [INFO] [stderr] Compiling text-size v1.1.1 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling spin v0.9.9 [INFO] [stderr] Compiling http-range-header v0.3.1 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling tower-http v0.2.5 [INFO] [stderr] Compiling rowan v0.14.1 [INFO] [stderr] Compiling cynic v0.14.1 [INFO] [stderr] Compiling dirs v3.0.2 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling async-graphql-derive v2.9.15 [INFO] [stderr] Compiling sway-fmt v0.3.3 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling tempfile v3.27.0 [INFO] [stderr] Compiling flate2 v1.1.11 [INFO] [stderr] Compiling structopt v0.2.18 [INFO] [stderr] Compiling matchers v0.0.1 [INFO] [stderr] Compiling logos v0.12.1 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling axum-core v0.1.2 [INFO] [stderr] Compiling xattr v1.7.0 [INFO] [stderr] Compiling tracing-serde v0.1.3 [INFO] [stderr] Compiling strum_macros v0.21.1 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling tracing-log v0.1.4 [INFO] [stderr] Compiling lspower v1.5.0 [INFO] [stderr] Compiling semver v1.0.28 [INFO] [stderr] Compiling thread_local v1.1.10 [INFO] [stderr] Compiling quote v1.0.47 [INFO] [stderr] Compiling yansi-term v0.1.2 [INFO] [stderr] Compiling strum v0.21.0 [INFO] [stderr] Compiling ansi_term v0.9.0 [INFO] [stderr] Compiling glob v0.3.4 [INFO] [stderr] Compiling matchit v0.4.6 [INFO] [stderr] Compiling sway-utils v0.3.3 [INFO] [stderr] Compiling axum v0.4.8 [INFO] [stderr] Compiling prettydiff v0.4.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling taplo v0.7.0 [INFO] [stderr] Compiling async-graphql v2.9.15 [INFO] [stderr] Compiling sway-server v0.3.3 [INFO] [stderr] Compiling tracing-subscriber v0.2.25 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling annotate-snippets v0.9.2 [INFO] [stderr] Compiling tar v0.4.46 [INFO] [stderr] Compiling ureq v2.9.1 [INFO] [stderr] Compiling serde_with v1.14.0 [INFO] [stderr] Compiling term-table v1.4.0 [INFO] [stderr] Compiling fuel-tx v0.1.0 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling fuel-core v0.2.1 [INFO] [stderr] Compiling sway-types v0.1.9 [INFO] [stderr] Compiling fuels-core v0.2.1 [INFO] [stderr] Compiling forc v0.3.3 [INFO] [stderr] Compiling sway-utils v0.1.9 [INFO] [stderr] Compiling fuels-rs v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 12m 55s [INFO] running `"docker" "inspect" "99827b2544a7ce7029db8de0457046af9f008324ee600e8ec0dbb5828ff0dfd1"` [INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "99827b2544a7ce7029db8de0457046af9f008324ee600e8ec0dbb5828ff0dfd1" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json" "--release"` [INFO] [stderr] Compiling fuels-rs v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 49.19s [INFO] running `"docker" "inspect" "99827b2544a7ce7029db8de0457046af9f008324ee600e8ec0dbb5828ff0dfd1"` [INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "99827b2544a7ce7029db8de0457046af9f008324ee600e8ec0dbb5828ff0dfd1" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "test" "--frozen" "--release"` [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.57s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/release/build/fuels-rs/4c16c8e19363e6dc/out/fuels_rs-4c16c8e19363e6dc) [INFO] [stdout] [INFO] [stdout] running 23 tests [INFO] [stdout] test json_abi::tests::array_encode_and_decode ... ok [INFO] [stdout] test json_abi::tests::b256_and_single_byte_encode_and_decode ... ok [INFO] [stdout] test json_abi::tests::compiler_generated_abi_test ... ok [INFO] [stdout] test json_abi::tests::enum_encode_and_decode ... ok [INFO] [stdout] test json_abi::tests::fn_selector_custom_type ... ok [INFO] [stdout] test json_abi::tests::fn_selector_multiple_primitives ... ok [INFO] [stdout] test json_abi::tests::fn_selector_nested_custom_type ... ok [INFO] [stdout] test json_abi::tests::fn_selector_single_primitive ... ok [INFO] [stdout] test json_abi::tests::nested_array_encode_and_decode ... ok [INFO] [stdout] test json_abi::tests::nested_struct_encode_and_decode ... ok [INFO] [stdout] test json_abi::tests::simple_encode_and_decode ... ok [INFO] [stdout] test json_abi::tests::simple_encode_and_decode_no_selector ... ok [INFO] [stdout] test json_abi::tests::string_encode_and_decode ... ok [INFO] [stdout] test json_abi::tests::struct_and_primitive_encode_and_decode ... ok [INFO] [stdout] test json_abi::tests::struct_encode_and_decode ... ok [INFO] [stdout] test json_abi::tests::tokenize_array ... ok [INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.101.0-beta.1-x86_64-unknown-linux-gnu'. [INFO] [stderr] help: run `rustup component add --toolchain 1.101.0-beta.1-x86_64-unknown-linux-gnu rustfmt` to install it [INFO] [stdout] pub use test_mod :: * ; # [allow (clippy :: too_many_arguments)] mod test_mod { # ! [allow (clippy :: enum_variant_names)] # ! [allow (dead_code)] # ! [allow (unused_imports)] use fuels_rs :: contract :: { Contract , ContractCall , CompiledContract } ; use fuel_gql_client :: client :: FuelClient ; use fuels_core :: { EnumSelector , ParamType , Tokenizable , Token } ; pub struct test { compiled : CompiledContract , fuel_client : FuelClient } impl test { pub fn new (compiled : CompiledContract , fuel_client : FuelClient) -> Self { Self { compiled , fuel_client } } # [doc = "Calls the contract's `takes_u32_returns_bool` (0x000000006355e6ee) function"] pub fn takes_u32_returns_bool (& self , arg : u32) -> ContractCall < bool > { Contract :: method_hash (& self . fuel_client , & self . compiled , [0 , 0 , 0 , 0 , 99 , 85 , 230 , 238] , & [ParamType :: Bool] , & [arg . into_token () ,]) . expect ("method not found (this should never happen)") } } }test code_gen::abigen::tests::generates_bindings ... ok [INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.101.0-beta.1-x86_64-unknown-linux-gnu'. [INFO] [stderr] help: run `rustup component add --toolchain 1.101.0-beta.1-x86_64-unknown-linux-gnu rustfmt` to install it [INFO] [stdout] pub use custom_mod :: * ; # [allow (clippy :: too_many_arguments)] mod custom_mod { # ! [allow (clippy :: enum_variant_names)] # ! [allow (dead_code)] # ! [allow (unused_imports)] use fuels_rs :: contract :: { Contract , ContractCall , CompiledContract } ; use fuel_gql_client :: client :: FuelClient ; use fuels_core :: { EnumSelector , ParamType , Tokenizable , Token } ; pub struct custom { compiled : CompiledContract , fuel_client : FuelClient } impl custom { pub fn new (compiled : CompiledContract , fuel_client : FuelClient) -> Self { Self { compiled , fuel_client } } # [doc = "Calls the contract's `takes_nested_struct` (0x0000000004c171ac) function"] pub fn takes_nested_struct (& self , input : MyNestedStruct , y : MySecondNestedStruct) -> ContractCall < () > { Contract :: method_hash (& self . fuel_client , & self . compiled , [0 , 0 , 0 , 0 , 4 , 193 , 113 , 172] , & [] , & [input . into_token () , y . into_token () ,]) . expect ("method not found (this should never happen)") } } # [derive (Clone , Debug , Default , Eq , PartialEq)] pub struct InnerStruct { pub a : bool , pub b : :: std :: vec :: Vec < u8 > } impl InnerStruct { pub fn param_types () -> Vec < ParamType > { let mut types = Vec :: new () ; types . push (ParamType :: Bool) ; types . push (ParamType :: Array (Box :: new (ParamType :: U8) , 2)) ; types } pub fn into_token (self) -> Token { let mut tokens = Vec :: new () ; tokens . push (Token :: Bool (self . a)) ; tokens . push (Token :: Array (vec ! [self . b . into_token ()])) ; Token :: Struct (tokens) } pub fn new_from_tokens (tokens : & [Token]) -> Self { Self { a : < bool > :: from_token (tokens [0usize] . clone ()) . expect ("Failed to run `new_from_tokens()` for custom struct, make sure to pass tokens in the right order and right types") , b : < :: std :: vec :: Vec < u8 > > :: from_token (tokens [1usize] . clone ()) . expect ("Failed to run `new_from_tokens()` for custom struct, make sure to pass tokens in the right order and right types") } } } impl fuels_core :: Detokenize for InnerStruct { fn from_tokens (mut tokens : Vec < Token >) -> Result < Self , fuels_core :: InvalidOutputType > { let token = match tokens . len () { 0 => Token :: Struct (vec ! []) , 1 => tokens . remove (0) , _ => Token :: Struct (tokens) , } ; Ok (InnerStruct :: new_from_tokens (& [token])) } } # [derive (Clone , Debug , Default , Eq , PartialEq)] pub struct MySecondNestedStruct { pub x : u16 , pub bar : SecondInnerStruct } impl MySecondNestedStruct { pub fn param_types () -> Vec < ParamType > { let mut types = Vec :: new () ; types . push (ParamType :: U16) ; types . push (ParamType :: Struct (SecondInnerStruct :: param_types ())) ; types } pub fn into_token (self) -> Token { let mut tokens = Vec :: new () ; tokens . push (Token :: U16 (self . x)) ; tokens . push (self . bar . into_token ()) ; Token :: Struct (tokens) } pub fn new_from_tokens (tokens : & [Token]) -> Self { Self { x : < u16 > :: from_token (tokens [0usize] . clone ()) . expect ("Failed to run `new_from_tokens()` for custom struct, make sure to pass tokens in the right order and right types") , bar : SecondInnerStruct :: new_from_tokens (& tokens [1usize ..]) } } } impl fuels_core :: Detokenize for MySecondNestedStruct { fn from_tokens (mut tokens : Vec < Token >) -> Result < Self , fuels_core :: InvalidOutputType > { let token = match tokens . len () { 0 => Token :: Struct (vec ! []) , 1 => tokens . remove (0) , _ => Token :: Struct (tokens) , } ; Ok (MySecondNestedStruct :: new_from_tokens (& [token])) } } # [derive (Clone , Debug , Default , Eq , PartialEq)] pub struct MyNestedStruct { pub x : u16 , pub foo : InnerStruct } impl MyNestedStruct { pub fn param_types () -> Vec < ParamType > { let mut types = Vec :: new () ; types . push (ParamType :: U16) ; types . push (ParamType :: Struct (InnerStruct :: param_types ())) ; types } pub fn into_token (self) -> Token { let mut tokens = Vec :: new () ; tokens . push (Token :: U16 (self . x)) ; tokens . push (self . foo . into_token ()) ; Token :: Struct (tokens) } pub fn new_from_tokens (tokens : & [Token]) -> Self { Self { x : < u16 > :: from_token (tokens [0usize] . clone ()) . expect ("Failed to run `new_from_tokens()` for custom struct, make sure to pass tokens in the right order and right types") , foo : InnerStruct :: new_from_tokens (& tokens [1usize ..]) } } } impl fuels_core :: Detokenize for MyNestedStruct { fn from_tokens (mut tokens : Vec < Token >) -> Result < Self , fuels_core :: InvalidOutputType > { let token = match tokens . len () { 0 => Token :: Struct (vec ! []) , 1 => tokens . remove (0) , _ => Token :: Struct (tokens) , } ; Ok (MyNestedStruct :: new_from_tokens (& [token])) } } # [derive (Clone , Debug , Default , Eq , PartialEq)] pub struct ThirdInnerStruct { pub foo : u8 } impl ThirdInnerStruct { pub fn param_types () -> Vec < ParamType > { let mut types = Vec :: new () ; types . push (ParamType :: U8) ; types } pub fn into_token (self) -> Token { let mut tokens = Vec :: new () ; tokens . push (Token :: U8 (self . foo)) ; Token :: Struct (tokens) } pub fn new_from_tokens (tokens : & [Token]) -> Self { Self { foo : < u8 > :: from_token (tokens [0usize] . clone ()) . expect ("Failed to run `new_from_tokens()` for custom struct, make sure to pass tokens in the right order and right types") } } } impl fuels_core :: Detokenize for ThirdInnerStruct { fn from_tokens (mut tokens : Vec < Token >) -> Result < Self , fuels_core :: InvalidOutputType > { let token = match tokens . len () { 0 => Token :: Struct (vec ! []) , 1 => tokens . remove (0) , _ => Token :: Struct (tokens) , } ; Ok (ThirdInnerStruct :: new_from_tokens (& [token])) } } # [derive (Clone , Debug , Default , Eq , PartialEq)] pub struct SecondInnerStruct { pub inner_bar : ThirdInnerStruct } impl SecondInnerStruct { pub fn param_types () -> Vec < ParamType > { let mut types = Vec :: new () ; types . push (ParamType :: Struct (ThirdInnerStruct :: param_types ())) ; types } pub fn into_token (self) -> Token { let mut tokens = Vec :: new () ; tokens . push (self . inner_bar . into_token ()) ; Token :: Struct (tokens) } pub fn new_from_tokens (tokens : & [Token]) -> Self { Self { inner_bar : ThirdInnerStruct :: new_from_tokens (& tokens [0usize ..]) } } } impl fuels_core :: Detokenize for SecondInnerStruct { fn from_tokens (mut tokens : Vec < Token >) -> Result < Self , fuels_core :: InvalidOutputType > { let token = match tokens . len () { 0 => Token :: Struct (vec ! []) , 1 => tokens . remove (0) , _ => Token :: Struct (tokens) , } ; Ok (SecondInnerStruct :: new_from_tokens (& [token])) } } }test code_gen::abigen::tests::multiple_custom_types ... ok [INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.101.0-beta.1-x86_64-unknown-linux-gnu'. [INFO] [stderr] help: run `rustup component add --toolchain 1.101.0-beta.1-x86_64-unknown-linux-gnu rustfmt` to install it [INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.101.0-beta.1-x86_64-unknown-linux-gnu'. [INFO] [stderr] help: run `rustup component add --toolchain 1.101.0-beta.1-x86_64-unknown-linux-gnu rustfmt` to install it [INFO] [stdout] pub use custom_mod :: * ; # [allow (clippy :: too_many_arguments)] mod custom_mod { # ! [allow (clippy :: enum_variant_names)] # ! [allow (dead_code)] # ! [allow (unused_imports)] use fuels_rs :: contract :: { Contract , ContractCall , CompiledContract } ; use fuel_gql_client :: client :: FuelClient ; use fuels_core :: { EnumSelector , ParamType , Tokenizable , Token } ; pub struct custom { compiled : CompiledContract , fuel_client : FuelClient } impl custom { pub fn new (compiled : CompiledContract , fuel_client : FuelClient) -> Self { Self { compiled , fuel_client } } # [doc = "Calls the contract's `takes_nested_struct` (0x0000000088bf8a1b) function"] pub fn takes_nested_struct (& self , top_value : MyNestedStruct) -> ContractCall < () > { Contract :: method_hash (& self . fuel_client , & self . compiled , [0 , 0 , 0 , 0 , 136 , 191 , 138 , 27] , & [] , & [top_value . into_token () ,]) . expect ("method not found (this should never happen)") } } # [derive (Clone , Debug , Default , Eq , PartialEq)] pub struct MyNestedStruct { pub x : u16 , pub foo : InnerStruct } impl MyNestedStruct { pub fn param_types () -> Vec < ParamType > { let mut types = Vec :: new () ; types . push (ParamType :: U16) ; types . push (ParamType :: Struct (InnerStruct :: param_types ())) ; types } pub fn into_token (self) -> Token { let mut tokens = Vec :: new () ; tokens . push (Token :: U16 (self . x)) ; tokens . push (self . foo . into_token ()) ; Token :: Struct (tokens) } pub fn new_from_tokens (tokens : & [Token]) -> Self { Self { x : < u16 > :: from_token (tokens [0usize] . clone ()) . expect ("Failed to run `new_from_tokens()` for custom struct, make sure to pass tokens in the right order and right types") , foo : InnerStruct :: new_from_tokens (& tokens [1usize ..]) } } } impl fuels_core :: Detokenize for MyNestedStruct { fn from_tokens (mut tokens : Vec < Token >) -> Result < Self , fuels_core :: InvalidOutputType > { let token = match tokens . len () { 0 => Token :: Struct (vec ! []) , 1 => tokens . remove (0) , _ => Token :: Struct (tokens) , } ; Ok (MyNestedStruct :: new_from_tokens (& [token])) } } # [derive (Clone , Debug , Default , Eq , PartialEq)] pub struct InnerStruct { pub a : bool } impl InnerStruct { pub fn param_types () -> Vec < ParamType > { let mut types = Vec :: new () ; types . push (ParamType :: Bool) ; types } pub fn into_token (self) -> Token { let mut tokens = Vec :: new () ; tokens . push (Token :: Bool (self . a)) ; Token :: Struct (tokens) } pub fn new_from_tokens (tokens : & [Token]) -> Self { Self { a : < bool > :: from_token (tokens [0usize] . clone ()) . expect ("Failed to run `new_from_tokens()` for custom struct, make sure to pass tokens in the right order and right types") } } } impl fuels_core :: Detokenize for InnerStruct { fn from_tokens (mut tokens : Vec < Token >) -> Result < Self , fuels_core :: InvalidOutputType > { let token = match tokens . len () { 0 => Token :: Struct (vec ! []) , 1 => tokens . remove (0) , _ => Token :: Struct (tokens) , } ; Ok (InnerStruct :: new_from_tokens (& [token])) } } }test code_gen::abigen::tests::single_nested_struct ... ok [INFO] [stdout] pub use custom_mod :: * ; # [allow (clippy :: too_many_arguments)] mod custom_mod { # ! [allow (clippy :: enum_variant_names)] # ! [allow (dead_code)] # ! [allow (unused_imports)] use fuels_rs :: contract :: { Contract , ContractCall , CompiledContract } ; use fuel_gql_client :: client :: FuelClient ; use fuels_core :: { EnumSelector , ParamType , Tokenizable , Token } ; pub struct custom { compiled : CompiledContract , fuel_client : FuelClient } impl custom { pub fn new (compiled : CompiledContract , fuel_client : FuelClient) -> Self { Self { compiled , fuel_client } } # [doc = "Calls the contract's `takes_enum` (0x00000000815b6d5a) function"] pub fn takes_enum (& self , value : MyStruct) -> ContractCall < MyStruct > { Contract :: method_hash (& self . fuel_client , & self . compiled , [0 , 0 , 0 , 0 , 129 , 91 , 109 , 90] , & [ParamType :: Struct (vec ! [ParamType :: String (4) , ParamType :: Array (Box :: new (ParamType :: U8) , 2) , ParamType :: Bool])] , & [value . into_token () ,]) . expect ("method not found (this should never happen)") } } # [derive (Clone , Debug , Default , Eq , PartialEq)] pub struct MyStruct { pub a : String , pub foo : :: std :: vec :: Vec < u8 > , pub bar : bool } impl MyStruct { pub fn param_types () -> Vec < ParamType > { let mut types = Vec :: new () ; types . push (ParamType :: String (4)) ; types . push (ParamType :: Array (Box :: new (ParamType :: U8) , 2)) ; types . push (ParamType :: Bool) ; types } pub fn into_token (self) -> Token { let mut tokens = Vec :: new () ; tokens . push (Token :: String (self . a)) ; tokens . push (Token :: Array (vec ! [self . foo . into_token ()])) ; tokens . push (Token :: Bool (self . bar)) ; Token :: Struct (tokens) } pub fn new_from_tokens (tokens : & [Token]) -> Self { Self { a : < String > :: from_token (tokens [0usize] . clone ()) . expect ("Failed to run `new_from_tokens()` for custom struct, make sure to pass tokens in the right order and right types") , foo : < :: std :: vec :: Vec < u8 > > :: from_token (tokens [1usize] . clone ()) . expect ("Failed to run `new_from_tokens()` for custom struct, make sure to pass tokens in the right order and right types") , bar : < bool > :: from_token (tokens [2usize] . clone ()) . expect ("Failed to run `new_from_tokens()` for custom struct, make sure to pass tokens in the right order and right types") } } } impl fuels_core :: Detokenize for MyStruct { fn from_tokens (mut tokens : Vec < Token >) -> Result < Self , fuels_core :: InvalidOutputType > { let token = match tokens . len () { 0 => Token :: Struct (vec ! []) , 1 => tokens . remove (0) , _ => Token :: Struct (tokens) , } ; Ok (MyStruct :: new_from_tokens (& [token])) } } }test code_gen::abigen::tests::output_types ... ok [INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.101.0-beta.1-x86_64-unknown-linux-gnu'. [INFO] [stderr] help: run `rustup component add --toolchain 1.101.0-beta.1-x86_64-unknown-linux-gnu rustfmt` to install it [INFO] [stdout] pub use custom_mod :: * ; # [allow (clippy :: too_many_arguments)] mod custom_mod { # ! [allow (clippy :: enum_variant_names)] # ! [allow (dead_code)] # ! [allow (unused_imports)] use fuels_rs :: contract :: { Contract , ContractCall , CompiledContract } ; use fuel_gql_client :: client :: FuelClient ; use fuels_core :: { EnumSelector , ParamType , Tokenizable , Token } ; pub struct custom { compiled : CompiledContract , fuel_client : FuelClient } impl custom { pub fn new (compiled : CompiledContract , fuel_client : FuelClient) -> Self { Self { compiled , fuel_client } } # [doc = "Calls the contract's `takes_enum` (0x00000000082e0dfa) function"] pub fn takes_enum (& self , my_enum : MyEnum) -> ContractCall < () > { Contract :: method_hash (& self . fuel_client , & self . compiled , [0 , 0 , 0 , 0 , 8 , 46 , 13 , 250] , & [] , & [my_enum . into_token () ,]) . expect ("method not found (this should never happen)") } } # [derive (Clone , Debug , Eq , PartialEq)] pub enum MyEnum { X (u32) , Y (bool) } impl MyEnum { pub fn into_token (self) -> Token { let (dis , tok) = match self { MyEnum :: X (value) => (0usize as u8 , Token :: U32 (value)) , MyEnum :: Y (value) => (1usize as u8 , Token :: Bool (value)) , } ; let selector = (dis , tok) ; Token :: Enum (Box :: new (selector)) } } }test code_gen::abigen::tests::custom_enum ... ok [INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.101.0-beta.1-x86_64-unknown-linux-gnu'. [INFO] [stderr] help: run `rustup component add --toolchain 1.101.0-beta.1-x86_64-unknown-linux-gnu rustfmt` to install it [INFO] [stdout] pub use test_mod :: * ; # [allow (clippy :: too_many_arguments)] mod test_mod { # ! [allow (clippy :: enum_variant_names)] # ! [allow (dead_code)] # ! [allow (unused_imports)] use fuels_rs :: contract :: { Contract , ContractCall , CompiledContract } ; use fuel_gql_client :: client :: FuelClient ; use fuels_core :: { EnumSelector , ParamType , Tokenizable , Token } ; pub struct test { compiled : CompiledContract , fuel_client : FuelClient } impl test { pub fn new (compiled : CompiledContract , fuel_client : FuelClient) -> Self { Self { compiled , fuel_client } } # [doc = "Calls the contract's `takes_ints_returns_bool` (0x0000000003b568d4) function"] pub fn takes_ints_returns_bool (& self , arg : u32 , second_arg : u16) -> ContractCall < bool > { Contract :: method_hash (& self . fuel_client , & self . compiled , [0 , 0 , 0 , 0 , 3 , 181 , 104 , 212] , & [ParamType :: Bool] , & [arg . into_token () , second_arg . into_token () ,]) . expect ("method not found (this should never happen)") } } }test code_gen::abigen::tests::generates_bindings_two_args ... ok [INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.101.0-beta.1-x86_64-unknown-linux-gnu'. [INFO] [stderr] help: run `rustup component add --toolchain 1.101.0-beta.1-x86_64-unknown-linux-gnu rustfmt` to install it [INFO] [stdout] pub use custom_mod :: * ; # [allow (clippy :: too_many_arguments)] mod custom_mod { # ! [allow (clippy :: enum_variant_names)] # ! [allow (dead_code)] # ! [allow (unused_imports)] use fuels_rs :: contract :: { Contract , ContractCall , CompiledContract } ; use fuel_gql_client :: client :: FuelClient ; use fuels_core :: { EnumSelector , ParamType , Tokenizable , Token } ; pub struct custom { compiled : CompiledContract , fuel_client : FuelClient } impl custom { pub fn new (compiled : CompiledContract , fuel_client : FuelClient) -> Self { Self { compiled , fuel_client } } # [doc = "Calls the contract's `takes_struct` (0x00000000cb0b2f05) function"] pub fn takes_struct (& self , value : MyStruct) -> ContractCall < () > { Contract :: method_hash (& self . fuel_client , & self . compiled , [0 , 0 , 0 , 0 , 203 , 11 , 47 , 5] , & [] , & [value . into_token () ,]) . expect ("method not found (this should never happen)") } } # [derive (Clone , Debug , Default , Eq , PartialEq)] pub struct MyStruct { pub foo : u8 , pub bar : bool } impl MyStruct { pub fn param_types () -> Vec < ParamType > { let mut types = Vec :: new () ; types . push (ParamType :: U8) ; types . push (ParamType :: Bool) ; types } pub fn into_token (self) -> Token { let mut tokens = Vec :: new () ; tokens . push (Token :: U8 (self . foo)) ; tokens . push (Token :: Bool (self . bar)) ; Token :: Struct (tokens) } pub fn new_from_tokens (tokens : & [Token]) -> Self { Self { foo : < u8 > :: from_token (tokens [0usize] . clone ()) . expect ("Failed to run `new_from_tokens()` for custom struct, make sure to pass tokens in the right order and right types") , bar : < bool > :: from_token (tokens [1usize] . clone ()) . expect ("Failed to run `new_from_tokens()` for custom struct, make sure to pass tokens in the right order and right types") } } } impl fuels_core :: Detokenize for MyStruct { fn from_tokens (mut tokens : Vec < Token >) -> Result < Self , fuels_core :: InvalidOutputType > { let token = match tokens . len () { 0 => Token :: Struct (vec ! []) , 1 => tokens . remove (0) , _ => Token :: Struct (tokens) , } ; Ok (MyStruct :: new_from_tokens (& [token])) } } }test code_gen::abigen::tests::custom_struct ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.97s [INFO] [stdout] [INFO] [stderr] Running tests/calls.rs (/opt/rustwide/target/release/build/fuels-rs/d5b7154c6edc7e32/out/calls-d5b7154c6edc7e32) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test contract_call ... ok [INFO] [stdout] test script_call ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- script_call stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'script_call' (8276) panicked at tests/calls.rs:19:14: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: CompilationError("No manifest file found in this directory or any parent directories of it: \"../fuels-abigen-macro/tests/test_projects/simple_script\"") [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5aa9ef4914f1 - <::print::DisplayBacktrace as core[5c14b8d5a259cc4e]::fmt::Display>::fmt [INFO] [stdout] 1: 0x5aa9ef4aa72a - core[5c14b8d5a259cc4e]::fmt::write [INFO] [stdout] 2: 0x5aa9ef496f2c - as core[5c14b8d5a259cc4e]::io::write::Write>::write_fmt [INFO] [stdout] 3: 0x5aa9ef469816 - std[218a0f7bb9a8af32]::panicking::default_hook::{closure#0} [INFO] [stdout] 4: 0x5aa9ef487e19 - std[218a0f7bb9a8af32]::panicking::default_hook [INFO] [stdout] 5: 0x5aa9eed088b0 - test[2df5162924bba3e2]::test_main_inner::{closure#0} [INFO] [stdout] 6: 0x5aa9ef488142 - std[218a0f7bb9a8af32]::panicking::panic_with_hook [INFO] [stdout] 7: 0x5aa9ef4698c2 - std[218a0f7bb9a8af32]::panicking::panic_handler::{closure#0} [INFO] [stdout] 8: 0x5aa9ef4613d9 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] 9: 0x5aa9ef46ab0d - __rustc[abc93889656912e2]::rust_begin_unwind [INFO] [stdout] 10: 0x5aa9ef4ab54c - core[5c14b8d5a259cc4e]::panicking::panic_fmt [INFO] [stdout] 11: 0x5aa9ef4b0d02 - core[5c14b8d5a259cc4e]::result::unwrap_failed::unwrap_failed_inner [INFO] [stdout] 12: 0x5aa9eec53907 - core[5c14b8d5a259cc4e]::result::unwrap_failed:: [INFO] [stdout] 13: 0x5aa9eec7565f - calls[116634f5e8b4033c]::script_call::{closure#0} [INFO] [stdout] 14: 0x5aa9eec88ba0 - ::block_on::>> [INFO] [stdout] 15: 0x5aa9eecaf2b2 - ::block_on::>> [INFO] [stdout] 16: 0x5aa9eec7bfbe - >::call_once [INFO] [stdout] 17: 0x5aa9eecfb71b - test[2df5162924bba3e2]::__rust_begin_short_backtrace::, fn() -> core[5c14b8d5a259cc4e]::result::Result<(), alloc[f65cf102c2e86268]::string::String>> [INFO] [stdout] 18: 0x5aa9eed08ed5 - test[2df5162924bba3e2]::run_test::{closure#0} [INFO] [stdout] 19: 0x5aa9eed02324 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 20: 0x5aa9eed0be62 - ::{closure#1} as core[5c14b8d5a259cc4e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 21: 0x5aa9ef48ffff - ::new::thread_start [INFO] [stdout] 22: 0x7c7896e6bdfa - [INFO] [stdout] 23: 0x7c7896eff3d4 - clone [INFO] [stdout] 24: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] script_call [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test calls` [INFO] running `"docker" "inspect" "99827b2544a7ce7029db8de0457046af9f008324ee600e8ec0dbb5828ff0dfd1"` [INFO] running `"docker" "rm" "-f" "99827b2544a7ce7029db8de0457046af9f008324ee600e8ec0dbb5828ff0dfd1"` [INFO] [stdout] 99827b2544a7ce7029db8de0457046af9f008324ee600e8ec0dbb5828ff0dfd1