[INFO] cloning repository https://github.com/steel-bucket/sqlscan [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/steel-bucket/sqlscan" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsteel-bucket%2Fsqlscan", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsteel-bucket%2Fsqlscan'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 737e8a055d40a213bcd21f1d274edc95500fe602 [INFO] building steel-bucket/sqlscan against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsteel-bucket%2Fsqlscan" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/steel-bucket/sqlscan [INFO] finished tweaking git repo https://github.com/steel-bucket/sqlscan [INFO] tweaked toml for git repo https://github.com/steel-bucket/sqlscan written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/steel-bucket/sqlscan on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/steel-bucket/sqlscan already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded deadpool v0.10.0 [INFO] [stderr] Downloaded testing_table v0.3.0 [INFO] [stderr] Downloaded assert-json-diff v2.0.2 [INFO] [stderr] Downloaded tabled_derive v0.11.0 [INFO] [stderr] Downloaded bytecount v0.6.9 [INFO] [stderr] Downloaded getopts v0.2.23 [INFO] [stderr] Downloaded match_token v0.1.0 [INFO] [stderr] Downloaded wiremock v0.6.4 [INFO] [stderr] Downloaded papergrid v0.17.0 [INFO] [stderr] Downloaded ego-tree v0.10.0 [INFO] [stderr] Downloaded markup5ever v0.14.1 [INFO] [stderr] Downloaded servo_arc v0.4.1 [INFO] [stderr] Downloaded scraper v0.23.1 [INFO] [stderr] Downloaded cssparser v0.34.0 [INFO] [stderr] Downloaded cookie_store v0.21.1 [INFO] [stderr] Downloaded html5ever v0.29.1 [INFO] [stderr] Downloaded clap v4.5.43 [INFO] [stderr] Downloaded publicsuffix v2.3.0 [INFO] [stderr] Downloaded selectors v0.26.0 [INFO] [stderr] Downloaded cc v1.2.31 [INFO] [stderr] Downloaded h2 v0.4.11 [INFO] [stderr] Downloaded clap_builder v4.5.43 [INFO] [stderr] Downloaded tabled v0.20.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e43672f3a989e82c20ad22256f72c8c4ff900c128a1c2ed66c24bf397aae122a [INFO] running `Command { std: "docker" "start" "-a" "e43672f3a989e82c20ad22256f72c8c4ff900c128a1c2ed66c24bf397aae122a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e43672f3a989e82c20ad22256f72c8c4ff900c128a1c2ed66c24bf397aae122a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e43672f3a989e82c20ad22256f72c8c4ff900c128a1c2ed66c24bf397aae122a", kill_on_drop: false }` [INFO] [stdout] e43672f3a989e82c20ad22256f72c8c4ff900c128a1c2ed66c24bf397aae122a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 832588a17baeb4a9a12dab285354bb2287ee51c1f99e147a4be975c8666a0e1a [INFO] running `Command { std: "docker" "start" "-a" "832588a17baeb4a9a12dab285354bb2287ee51c1f99e147a4be975c8666a0e1a", kill_on_drop: false }` [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cc v1.2.31 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling unicode-width v0.2.1 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling mac v0.1.1 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling futf v0.1.5 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling dtoa v1.0.10 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling dtoa-short v0.3.5 [INFO] [stderr] Compiling tendril v0.4.3 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling litrs v0.4.2 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling psl-types v2.0.11 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling servo_arc v0.4.1 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Compiling clap_builder v4.5.43 [INFO] [stderr] Compiling deadpool-runtime v0.1.4 [INFO] [stderr] Compiling selectors v0.26.0 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling document-features v0.2.11 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling bytecount v0.6.9 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling markup5ever v0.14.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling papergrid v0.17.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling getopts v0.2.23 [INFO] [stderr] Compiling testing_table v0.3.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling ego-tree v0.10.0 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling colored v3.0.0 [INFO] [stderr] Compiling criterion-plot v0.6.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling clap v4.5.43 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling match_token v0.1.0 [INFO] [stderr] Compiling tabled_derive v0.11.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling cssparser v0.34.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tabled v0.20.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling publicsuffix v2.3.0 [INFO] [stderr] Compiling html5ever v0.29.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling deadpool v0.10.0 [INFO] [stderr] Compiling assert-json-diff v2.0.2 [INFO] [stderr] Compiling cookie_store v0.21.1 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling scraper v0.23.1 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling h2 v0.4.11 [INFO] [stderr] Compiling criterion v0.7.0 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling wiremock v0.6.4 [INFO] [stderr] Compiling reqwest v0.12.22 [INFO] [stderr] Compiling untitled v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::sql_vuln::crawler::WebCrawler` [INFO] [stdout] --> src/crawler_bench.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::sql_vuln::crawler::WebCrawler; [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::collections::HashMap` [INFO] [stdout] --> src/searchlibs/google.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> src/searchlibs/google.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/sql_vuln/server_info.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/sql_vuln/std_utils.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{self, BufRead, BufReader, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ServerData`, `TableData`, and `VulnData` [INFO] [stdout] --> src/sql_vuln/mod.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | pub use std_utils::{ServerData, StdUtils, TableData, VulnData}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | mod tests; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> src/tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | mod tests; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::TempDir` [INFO] [stdout] --> src/tests.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tempfile::TempDir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | mod tests; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SqlErrorChecker` [INFO] [stdout] --> src/main.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | use sql_vuln::{SqlErrorChecker, StdUtils}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/crawler_bench.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | use criterion::{BenchmarkId, Criterion, black_box, criterion_group, criterion_main}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/crawler_bench.rs:31:48 [INFO] [stdout] | [INFO] [stdout] 31 | b.iter(|| parameter_regex.is_match(black_box(url))) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/crawler_bench.rs:59:47 [INFO] [stdout] | [INFO] [stdout] 59 | let _resolved = base.join(black_box(link)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/scanner_bench.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | use criterion::{BenchmarkId, Criterion, black_box, criterion_group, criterion_main}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/scanner_bench.rs:59:37 [INFO] [stdout] | [INFO] [stdout] 59 | b.iter(|| checker.check(black_box(html))) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/scanner_bench.rs:95:53 [INFO] [stdout] | [INFO] [stdout] 95 | if let Ok(parsed) = url::Url::parse(black_box(url)) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parsed_url` [INFO] [stdout] --> src/web/web.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let parsed_url = Url::parse(&full_url)?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parsed_url` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/sql_vuln/std_utils.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{self, BufRead, BufReader, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scanner` [INFO] [stdout] --> src/scanner_bench.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let scanner = SqlInjectionScanner::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scanner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_user_agent_selection` is never used [INFO] [stdout] --> src/crawler_bench.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn bench_user_agent_selection(c: &mut Criterion) { [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 `bench_regex_matching` is never used [INFO] [stdout] --> src/crawler_bench.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn bench_regex_matching(c: &mut Criterion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_url_resolution` is never used [INFO] [stdout] --> src/crawler_bench.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn bench_url_resolution(c: &mut Criterion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_sql_error_detection` is never used [INFO] [stdout] --> src/scanner_bench.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn bench_sql_error_detection(c: &mut Criterion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_payload_generation` is never used [INFO] [stdout] --> src/scanner_bench.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn bench_payload_generation(c: &mut Criterion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_url_parsing` is never used [INFO] [stdout] --> src/scanner_bench.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn bench_url_parsing(c: &mut Criterion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResult` is never constructed [INFO] [stdout] --> src/searchlibs/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct SearchResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ParseError` and `InvalidParameter` are never constructed [INFO] [stdout] --> src/searchlibs/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum SearchError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 26 | ParseError(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | InvalidParameter(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deduplicate_urls` is never used [INFO] [stdout] --> src/searchlibs/mod.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn deduplicate_urls(urls: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `filter_google_urls` is never used [INFO] [stdout] --> src/searchlibs/mod.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn filter_google_urls(url: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_user_agent` is never used [INFO] [stdout] --> src/searchlibs/bing.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl BingSearch { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn with_user_agent(mut self, name: &str, version: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResult` is never constructed [INFO] [stdout] --> src/searchlibs/common.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SearchResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ParseError` and `InvalidParameter` are never constructed [INFO] [stdout] --> src/searchlibs/common.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum SearchError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | ParseError(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | InvalidParameter(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/searchlibs/google.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl GoogleSearch { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn with_safe_search(mut self, safe: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub async fn search_images( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | pub async fn search_news( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub async fn search_videos( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub async fn search_shop( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 317 | pub async fn search_books( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 329 | pub async fn search_apps( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 341 | async fn search_with_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 385 | pub async fn lucky(&self, query: &str) -> Result, SearchError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_user_agent` and `with_content_type` are never used [INFO] [stdout] --> src/searchlibs/yahoo.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl YahooSearch { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn with_user_agent(mut self, user_agent: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn with_content_type(mut self, content_type: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERSION` is never used [INFO] [stdout] --> src/setup.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const VERSION: &str = "2.0"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AUTHOR` is never used [INFO] [stdout] --> src/setup.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const AUTHOR: &str = "Ghost (Rust Port)"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LINUX_INSTALL_PATH` is never used [INFO] [stdout] --> src/setup.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const LINUX_INSTALL_PATH: &str = "/usr/share/sqlscan"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LINUX_EXEC_PATH` is never used [INFO] [stdout] --> src/setup.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const LINUX_EXEC_PATH: &str = "/usr/bin/sqlscan"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MACOS_INSTALL_PATH` is never used [INFO] [stdout] --> src/setup.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const MACOS_INSTALL_PATH: &str = "/usr/local/share/sqlscan"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MACOS_EXEC_PATH` is never used [INFO] [stdout] --> src/setup.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const MACOS_EXEC_PATH: &str = "/usr/local/bin/sqlscan"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/setup.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_cli` is never used [INFO] [stdout] --> src/setup.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn build_cli() -> Command { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_metadata` is never used [INFO] [stdout] --> src/setup.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn show_metadata() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_platform_paths` is never used [INFO] [stdout] --> src/setup.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn get_platform_paths() -> (PathBuf, PathBuf) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_root_access` is never used [INFO] [stdout] --> src/setup.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn check_root_access() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_install` is never used [INFO] [stdout] --> src/setup.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn handle_install(install_path: &Path, exec_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_uninstall` is never used [INFO] [stdout] --> src/setup.rs:138:4 [INFO] [stdout] | [INFO] [stdout] 138 | fn handle_uninstall(install_path: &Path, exec_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_reinstall` is never used [INFO] [stdout] --> src/setup.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn handle_reinstall(install_path: &Path, exec_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `install` is never used [INFO] [stdout] --> src/setup.rs:158:4 [INFO] [stdout] | [INFO] [stdout] 158 | fn install(install_path: &Path, exec_path: &Path) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_dir_recursive` is never used [INFO] [stdout] --> src/setup.rs:239:4 [INFO] [stdout] | [INFO] [stdout] 239 | fn copy_dir_recursive(src: &Path, dest: &Path) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_executable_wrapper` is never used [INFO] [stdout] --> src/setup.rs:259:4 [INFO] [stdout] | [INFO] [stdout] 259 | fn create_executable_wrapper( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `uninstall` is never used [INFO] [stdout] --> src/setup.rs:282:4 [INFO] [stdout] | [INFO] [stdout] 282 | fn uninstall(install_path: &Path, exec_path: &Path) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_max_depth` is never used [INFO] [stdout] --> src/sql_vuln/crawler.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl WebCrawler { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn set_max_depth(&mut self, depth: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `error_checker` is never read [INFO] [stdout] --> src/sql_vuln/scanner.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct SqlInjectionScanner { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 9 | error_checker: SqlErrorChecker, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TableData` is never used [INFO] [stdout] --> src/sql_vuln/std_utils.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | pub type TableData = Vec>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/web/search.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum SearchError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Search` is never constructed [INFO] [stdout] --> src/web/search.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Search; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/web/search.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Search { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 30 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_all` is never used [INFO] [stdout] --> src/web/useragents.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl UserAgents { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get_all(&self) -> &Vec<&'static str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gethtml` is never used [INFO] [stdout] --> src/web/web.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | pub async fn gethtml(url: &str, last_url: bool) -> Option<(String, Option)> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 18s [INFO] running `Command { std: "docker" "inspect" "832588a17baeb4a9a12dab285354bb2287ee51c1f99e147a4be975c8666a0e1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "832588a17baeb4a9a12dab285354bb2287ee51c1f99e147a4be975c8666a0e1a", kill_on_drop: false }` [INFO] [stdout] 832588a17baeb4a9a12dab285354bb2287ee51c1f99e147a4be975c8666a0e1a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e4e40ddc7d8944b33c10de0e1d5de0499eeaea8abc3789d502704135ba43975 [INFO] running `Command { std: "docker" "start" "-a" "1e4e40ddc7d8944b33c10de0e1d5de0499eeaea8abc3789d502704135ba43975", kill_on_drop: false }` [INFO] [stderr] Compiling untitled v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::sql_vuln::crawler::WebCrawler` [INFO] [stdout] --> src/crawler_bench.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::sql_vuln::crawler::WebCrawler; [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::collections::HashMap` [INFO] [stdout] --> src/searchlibs/google.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> src/searchlibs/google.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/sql_vuln/server_info.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/sql_vuln/std_utils.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{self, BufRead, BufReader, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ServerData`, `TableData`, and `VulnData` [INFO] [stdout] --> src/sql_vuln/mod.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | pub use std_utils::{ServerData, StdUtils, TableData, VulnData}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::TempDir` [INFO] [stdout] --> src/tests.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tempfile::TempDir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::web::useragents::UserAgents` [INFO] [stdout] --> src/tests.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | use crate::web::useragents::UserAgents; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tests.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 257 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SqlErrorChecker` [INFO] [stdout] --> src/main.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | use sql_vuln::{SqlErrorChecker, StdUtils}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/crawler_bench.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | use criterion::{BenchmarkId, Criterion, black_box, criterion_group, criterion_main}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/crawler_bench.rs:31:48 [INFO] [stdout] | [INFO] [stdout] 31 | b.iter(|| parameter_regex.is_match(black_box(url))) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/crawler_bench.rs:59:47 [INFO] [stdout] | [INFO] [stdout] 59 | let _resolved = base.join(black_box(link)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/scanner_bench.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | use criterion::{BenchmarkId, Criterion, black_box, criterion_group, criterion_main}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/scanner_bench.rs:59:37 [INFO] [stdout] | [INFO] [stdout] 59 | b.iter(|| checker.check(black_box(html))) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/scanner_bench.rs:95:53 [INFO] [stdout] | [INFO] [stdout] 95 | if let Ok(parsed) = url::Url::parse(black_box(url)) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/tests.rs:230:32 [INFO] [stdout] | [INFO] [stdout] 230 | use criterion::{Criterion, black_box}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `criterion::black_box`: use `std::hint::black_box()` instead [INFO] [stdout] --> src/tests.rs:243:37 [INFO] [stdout] | [INFO] [stdout] 243 | b.iter(|| checker.check(black_box(test_html))) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parsed_url` [INFO] [stdout] --> src/web/web.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let parsed_url = Url::parse(&full_url)?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parsed_url` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/sql_vuln/std_utils.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{self, BufRead, BufReader, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scanner` [INFO] [stdout] --> src/scanner_bench.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let scanner = SqlInjectionScanner::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scanner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_user_agent_selection` is never used [INFO] [stdout] --> src/crawler_bench.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn bench_user_agent_selection(c: &mut Criterion) { [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 `bench_regex_matching` is never used [INFO] [stdout] --> src/crawler_bench.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn bench_regex_matching(c: &mut Criterion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_url_resolution` is never used [INFO] [stdout] --> src/crawler_bench.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn bench_url_resolution(c: &mut Criterion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_sql_error_detection` is never used [INFO] [stdout] --> src/scanner_bench.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn bench_sql_error_detection(c: &mut Criterion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_payload_generation` is never used [INFO] [stdout] --> src/scanner_bench.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn bench_payload_generation(c: &mut Criterion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_url_parsing` is never used [INFO] [stdout] --> src/scanner_bench.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn bench_url_parsing(c: &mut Criterion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResult` is never constructed [INFO] [stdout] --> src/searchlibs/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct SearchResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ParseError` and `InvalidParameter` are never constructed [INFO] [stdout] --> src/searchlibs/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum SearchError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 26 | ParseError(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | InvalidParameter(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deduplicate_urls` is never used [INFO] [stdout] --> src/searchlibs/mod.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn deduplicate_urls(urls: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `filter_google_urls` is never used [INFO] [stdout] --> src/searchlibs/mod.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn filter_google_urls(url: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_user_agent` is never used [INFO] [stdout] --> src/searchlibs/bing.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl BingSearch { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn with_user_agent(mut self, name: &str, version: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResult` is never constructed [INFO] [stdout] --> src/searchlibs/common.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SearchResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ParseError` and `InvalidParameter` are never constructed [INFO] [stdout] --> src/searchlibs/common.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum SearchError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | ParseError(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | InvalidParameter(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/searchlibs/google.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl GoogleSearch { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn with_safe_search(mut self, safe: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub async fn search_images( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | pub async fn search_news( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub async fn search_videos( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub async fn search_shop( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 317 | pub async fn search_books( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 329 | pub async fn search_apps( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 341 | async fn search_with_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 385 | pub async fn lucky(&self, query: &str) -> Result, SearchError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_user_agent` and `with_content_type` are never used [INFO] [stdout] --> src/searchlibs/yahoo.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl YahooSearch { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn with_user_agent(mut self, user_agent: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn with_content_type(mut self, content_type: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/setup.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_platform_paths` is never used [INFO] [stdout] --> src/setup.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn get_platform_paths() -> (PathBuf, PathBuf) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_root_access` is never used [INFO] [stdout] --> src/setup.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn check_root_access() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_install` is never used [INFO] [stdout] --> src/setup.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn handle_install(install_path: &Path, exec_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_uninstall` is never used [INFO] [stdout] --> src/setup.rs:138:4 [INFO] [stdout] | [INFO] [stdout] 138 | fn handle_uninstall(install_path: &Path, exec_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_reinstall` is never used [INFO] [stdout] --> src/setup.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn handle_reinstall(install_path: &Path, exec_path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `install` is never used [INFO] [stdout] --> src/setup.rs:158:4 [INFO] [stdout] | [INFO] [stdout] 158 | fn install(install_path: &Path, exec_path: &Path) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_max_depth` is never used [INFO] [stdout] --> src/sql_vuln/crawler.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl WebCrawler { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn set_max_depth(&mut self, depth: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `error_checker` is never read [INFO] [stdout] --> src/sql_vuln/scanner.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct SqlInjectionScanner { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 9 | error_checker: SqlErrorChecker, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TableData` is never used [INFO] [stdout] --> src/sql_vuln/std_utils.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | pub type TableData = Vec>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_sql_error_detection` is never used [INFO] [stdout] --> src/tests.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn bench_sql_error_detection(c: &mut Criterion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_user_agent_selection` is never used [INFO] [stdout] --> src/tests.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 247 | pub fn bench_user_agent_selection(c: &mut Criterion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/web/search.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum SearchError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Search` is never constructed [INFO] [stdout] --> src/web/search.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Search; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/web/search.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Search { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 30 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gethtml` is never used [INFO] [stdout] --> src/web/web.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | pub async fn gethtml(url: &str, last_url: bool) -> Option<(String, Option)> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.66s [INFO] running `Command { std: "docker" "inspect" "1e4e40ddc7d8944b33c10de0e1d5de0499eeaea8abc3789d502704135ba43975", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e4e40ddc7d8944b33c10de0e1d5de0499eeaea8abc3789d502704135ba43975", kill_on_drop: false }` [INFO] [stdout] 1e4e40ddc7d8944b33c10de0e1d5de0499eeaea8abc3789d502704135ba43975