[INFO] fetching crate culqi_rust 1.0.0... [INFO] testing culqi_rust-1.0.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate culqi_rust 1.0.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate culqi_rust 1.0.0 [INFO] finished tweaking crates.io crate culqi_rust 1.0.0 [INFO] tweaked toml for crates.io crate culqi_rust 1.0.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate culqi_rust 1.0.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 275 packages to latest compatible versions [INFO] [stderr] Adding aes v0.7.5 (available: v0.8.4) [INFO] [stderr] Adding aes-gcm v0.9.4 (available: v0.10.3) [INFO] [stderr] Adding base64 v0.13.1 (available: v0.22.1) [INFO] [stderr] Adding base64ct v1.1.1 (available: v1.8.0) [INFO] [stderr] Adding nom v6.1.2 (available: v6.2.2) [INFO] [stderr] Adding pem v1.1.1 (available: v3.0.5) [INFO] [stderr] Adding pkcs8 v0.7.6 (available: v0.10.2) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] [stderr] Adding reqwest v0.10.10 (available: v0.12.23) [INFO] [stderr] Adding rsa v0.5.0 (available: v0.9.8) [INFO] [stderr] Adding sha2 v0.9.9 (available: v0.10.9) [INFO] [stderr] Adding subtle v2.4.1 (available: v2.6.1) [INFO] [stderr] Adding x509-parser v0.9.2 (available: v0.18.0) [INFO] [stderr] Adding zeroize v1.4.3 (available: v1.8.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ad8d2c78000b167f066b2ae3ceae98a3c0df3f4a7171ebf6b71eef4c912c6e4 [INFO] running `Command { std: "docker" "start" "-a" "2ad8d2c78000b167f066b2ae3ceae98a3c0df3f4a7171ebf6b71eef4c912c6e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ad8d2c78000b167f066b2ae3ceae98a3c0df3f4a7171ebf6b71eef4c912c6e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ad8d2c78000b167f066b2ae3ceae98a3c0df3f4a7171ebf6b71eef4c912c6e4", kill_on_drop: false }` [INFO] [stdout] 2ad8d2c78000b167f066b2ae3ceae98a3c0df3f4a7171ebf6b71eef4c912c6e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 92818577de29189f5410237429c05ed6761487e7cfa99afbeedcb5acb365fe41 [INFO] running `Command { std: "docker" "start" "-a" "92818577de29189f5410237429c05ed6761487e7cfa99afbeedcb5acb365fe41", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling libnghttp2-sys v0.1.11+1.64.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling libz-sys v1.1.22 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling bitvec v0.19.6 [INFO] [stderr] Compiling curl-sys v0.4.83+curl-8.15.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling crypto-bigint v0.2.11 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling const-oid v0.6.2 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling zeroize v1.4.3 [INFO] [stderr] Compiling der v0.4.5 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling base64ct v1.1.1 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling pem-rfc7468 v0.2.4 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rusticata-macros v3.2.0 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling der-oid-macro v0.4.0 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling num-bigint-dig v0.7.1 [INFO] [stderr] Compiling curl v0.4.49 [INFO] [stderr] Compiling oid-registry v0.1.5 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling der-parser v5.1.2 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling polyval v0.5.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling pkcs1 v0.2.4 [INFO] [stderr] Compiling spki v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling isahc v1.7.2 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling pkcs8 v0.7.6 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling ghash v0.4.4 [INFO] [stderr] Compiling sluice v0.5.5 [INFO] [stderr] Compiling ctr v0.8.0 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling hyper v0.13.10 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling aead v0.4.3 [INFO] [stderr] Compiling castaway v0.1.2 [INFO] [stderr] Compiling crypto v0.5.1 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling aes-gcm v0.9.4 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling x509-parser v0.9.2 [INFO] [stderr] Compiling rsa v0.5.0 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.10 [INFO] [stderr] Compiling culqi_rust v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/Encrypt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/Culqi.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Aead` [INFO] [stdout] --> src/Culqi.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use aes_gcm::aead::{Aead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/Culqi.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Culqi::create` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use Culqi::create; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Culqi::add` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use Culqi::add; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Culqi::createEncrypt` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use Culqi::createEncrypt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Culqi::delete` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use Culqi::delete; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Culqi::get` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use Culqi::get; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Encrypt::encrypt` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use Encrypt::encrypt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `isahc::prelude::*` [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use isahc::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsa::pkcs8::der::Decodable` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rsa::pkcs8::der::Decodable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsa::pkcs1::FromRsaPublicKey` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rsa::pkcs1::FromRsaPublicKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Aead` and `NewAead` [INFO] [stdout] --> src/lib.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | use aes_gcm::aead::{Aead, NewAead}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/lib.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/Encrypt.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Encrypt.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut plaintext = serde_json::to_string(&json_data)?.as_bytes().to_vec(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyError` is never used [INFO] [stdout] --> src/Encrypt.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum MyError { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> src/Encrypt.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn encrypt(data: &str, publicKey: &str, is_json: bool) -> Result, MyError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `skey` is never used [INFO] [stdout] --> src/Culqi.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const skey : &'static str = "sk_live_34a07dcb6d4c7e39"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pkey` is never used [INFO] [stdout] --> src/Culqi.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const pkey : &'static str = "pk_live_889113cd74ecfc55"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rsaid` is never used [INFO] [stdout] --> src/Culqi.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const rsaid : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CULQI_RSA_KEY` is never used [INFO] [stdout] --> src/Culqi.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const CULQI_RSA_KEY: &'static str = "-----BEGIN PUBLIC KEY----- [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECUREURL` is never used [INFO] [stdout] --> src/Culqi.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const SECUREURL: &'static str = "https://qa-secure.culqi.xyz/v2/tokens"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASEURL` is never used [INFO] [stdout] --> src/Culqi.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const BASEURL: &'static str = "https://qa-api.culqi.xyz/v2/"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyError` is never used [INFO] [stdout] --> src/Culqi.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | pub enum MyError { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/Culqi.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn add(left: usize, right: usize) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseData` is never constructed [INFO] [stdout] --> src/Culqi.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub struct ResponseData { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createEncrypt` is never used [INFO] [stdout] --> src/Culqi.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn createEncrypt( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create` is never used [INFO] [stdout] --> src/Culqi.rs:185:8 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/Culqi.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn get( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete` is never used [INFO] [stdout] --> src/Culqi.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn delete( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Encrypt` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Encrypt; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `encrypt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Culqi` should have a snake case name [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod Culqi; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `culqi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `publicKey` should have a snake case name [INFO] [stdout] --> src/Encrypt.rs:110:28 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn encrypt(data: &str, publicKey: &str, is_json: bool) -> Result, MyError> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `skey` should have an upper case name [INFO] [stdout] --> src/Culqi.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const skey : &'static str = "sk_live_34a07dcb6d4c7e39"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 14 - const skey : &'static str = "sk_live_34a07dcb6d4c7e39"; [INFO] [stdout] 14 + const SKEY : &'static str = "sk_live_34a07dcb6d4c7e39"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pkey` should have an upper case name [INFO] [stdout] --> src/Culqi.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const pkey : &'static str = "pk_live_889113cd74ecfc55"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 15 - const pkey : &'static str = "pk_live_889113cd74ecfc55"; [INFO] [stdout] 15 + const PKEY : &'static str = "pk_live_889113cd74ecfc55"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rsaid` should have an upper case name [INFO] [stdout] --> src/Culqi.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const rsaid : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 16 - const rsaid : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] 16 + const RSAID : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createEncrypt` should have a snake case name [INFO] [stdout] --> src/Culqi.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn createEncrypt( [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `create_encrypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 53s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v6.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "92818577de29189f5410237429c05ed6761487e7cfa99afbeedcb5acb365fe41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92818577de29189f5410237429c05ed6761487e7cfa99afbeedcb5acb365fe41", kill_on_drop: false }` [INFO] [stdout] 92818577de29189f5410237429c05ed6761487e7cfa99afbeedcb5acb365fe41 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5347a2005e45a996dd51085a65f19635397618d0c7d25b4479e5ef9a28f39552 [INFO] running `Command { std: "docker" "start" "-a" "5347a2005e45a996dd51085a65f19635397618d0c7d25b4479e5ef9a28f39552", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/Encrypt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/Culqi.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Aead` [INFO] [stdout] --> src/Culqi.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use aes_gcm::aead::{Aead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/Culqi.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Culqi::create` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use Culqi::create; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Culqi::add` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use Culqi::add; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Culqi::createEncrypt` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use Culqi::createEncrypt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling culqi_rust v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Culqi::delete` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use Culqi::delete; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Culqi::get` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use Culqi::get; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Encrypt::encrypt` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use Encrypt::encrypt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `isahc::prelude::*` [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use isahc::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsa::pkcs8::der::Decodable` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rsa::pkcs8::der::Decodable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsa::pkcs1::FromRsaPublicKey` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rsa::pkcs1::FromRsaPublicKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Aead` and `NewAead` [INFO] [stdout] --> src/lib.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | use aes_gcm::aead::{Aead, NewAead}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/lib.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/Encrypt.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Encrypt.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut plaintext = serde_json::to_string(&json_data)?.as_bytes().to_vec(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyError` is never used [INFO] [stdout] --> src/Encrypt.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum MyError { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> src/Encrypt.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn encrypt(data: &str, publicKey: &str, is_json: bool) -> Result, MyError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `skey` is never used [INFO] [stdout] --> src/Culqi.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const skey : &'static str = "sk_live_34a07dcb6d4c7e39"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pkey` is never used [INFO] [stdout] --> src/Culqi.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const pkey : &'static str = "pk_live_889113cd74ecfc55"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rsaid` is never used [INFO] [stdout] --> src/Culqi.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const rsaid : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CULQI_RSA_KEY` is never used [INFO] [stdout] --> src/Culqi.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const CULQI_RSA_KEY: &'static str = "-----BEGIN PUBLIC KEY----- [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECUREURL` is never used [INFO] [stdout] --> src/Culqi.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const SECUREURL: &'static str = "https://qa-secure.culqi.xyz/v2/tokens"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASEURL` is never used [INFO] [stdout] --> src/Culqi.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const BASEURL: &'static str = "https://qa-api.culqi.xyz/v2/"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyError` is never used [INFO] [stdout] --> src/Culqi.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | pub enum MyError { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/Culqi.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn add(left: usize, right: usize) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseData` is never constructed [INFO] [stdout] --> src/Culqi.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub struct ResponseData { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createEncrypt` is never used [INFO] [stdout] --> src/Culqi.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn createEncrypt( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create` is never used [INFO] [stdout] --> src/Culqi.rs:185:8 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/Culqi.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn get( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete` is never used [INFO] [stdout] --> src/Culqi.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn delete( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Encrypt` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Encrypt; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `encrypt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Culqi` should have a snake case name [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod Culqi; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `culqi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `publicKey` should have a snake case name [INFO] [stdout] --> src/Encrypt.rs:110:28 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn encrypt(data: &str, publicKey: &str, is_json: bool) -> Result, MyError> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `skey` should have an upper case name [INFO] [stdout] --> src/Culqi.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const skey : &'static str = "sk_live_34a07dcb6d4c7e39"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 14 - const skey : &'static str = "sk_live_34a07dcb6d4c7e39"; [INFO] [stdout] 14 + const SKEY : &'static str = "sk_live_34a07dcb6d4c7e39"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pkey` should have an upper case name [INFO] [stdout] --> src/Culqi.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const pkey : &'static str = "pk_live_889113cd74ecfc55"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 15 - const pkey : &'static str = "pk_live_889113cd74ecfc55"; [INFO] [stdout] 15 + const PKEY : &'static str = "pk_live_889113cd74ecfc55"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rsaid` should have an upper case name [INFO] [stdout] --> src/Culqi.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const rsaid : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 16 - const rsaid : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] 16 + const RSAID : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createEncrypt` should have a snake case name [INFO] [stdout] --> src/Culqi.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn createEncrypt( [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `create_encrypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/Encrypt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/Culqi.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Aead` [INFO] [stdout] --> src/Culqi.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use aes_gcm::aead::{Aead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/Culqi.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Encrypt::encrypt` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use Encrypt::encrypt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `isahc::prelude::*` [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use isahc::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsa::pkcs8::der::Decodable` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rsa::pkcs8::der::Decodable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsa::pkcs1::FromRsaPublicKey` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rsa::pkcs1::FromRsaPublicKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Aead` and `NewAead` [INFO] [stdout] --> src/lib.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | use aes_gcm::aead::{Aead, NewAead}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/lib.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `update` in this scope [INFO] [stdout] --> src/lib.rs:126:19 [INFO] [stdout] | [INFO] [stdout] 126 | match update("tokens", "tkn_test_20HjpSkdDlSdoHEC" ,body) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/Encrypt.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Encrypt.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut plaintext = serde_json::to_string(&json_data)?.as_bytes().to_vec(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `culqi_rust` (lib test) due to 1 previous error; 16 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5347a2005e45a996dd51085a65f19635397618d0c7d25b4479e5ef9a28f39552", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5347a2005e45a996dd51085a65f19635397618d0c7d25b4479e5ef9a28f39552", kill_on_drop: false }` [INFO] [stdout] 5347a2005e45a996dd51085a65f19635397618d0c7d25b4479e5ef9a28f39552