[INFO] fetching crate tcp-stream-capture 0.2.0... [INFO] checking tcp-stream-capture-0.2.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate tcp-stream-capture 0.2.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate tcp-stream-capture 0.2.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate tcp-stream-capture 0.2.0 [INFO] finished tweaking crates.io crate tcp-stream-capture 0.2.0 [INFO] tweaked toml for crates.io crate tcp-stream-capture 0.2.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate tcp-stream-capture 0.2.0 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa30f4e8dcac9c07184de0443fe3e85bc2a38c5fbf6b7015f2223b9411bbd56c [INFO] running `Command { std: "docker" "start" "-a" "fa30f4e8dcac9c07184de0443fe3e85bc2a38c5fbf6b7015f2223b9411bbd56c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa30f4e8dcac9c07184de0443fe3e85bc2a38c5fbf6b7015f2223b9411bbd56c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa30f4e8dcac9c07184de0443fe3e85bc2a38c5fbf6b7015f2223b9411bbd56c", kill_on_drop: false }` [INFO] [stdout] fa30f4e8dcac9c07184de0443fe3e85bc2a38c5fbf6b7015f2223b9411bbd56c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2e82b271c7310cf95a4226534498b07f5d3924f78cd3d025717801d0d00d9ae0 [INFO] running `Command { std: "docker" "start" "-a" "2e82b271c7310cf95a4226534498b07f5d3924f78cd3d025717801d0d00d9ae0", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Compiling cc v1.0.98 [INFO] [stderr] Compiling scratch v1.0.7 [INFO] [stderr] Compiling cxxbridge-flags v1.0.122 [INFO] [stderr] Compiling unicode-width v0.1.12 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling link-cplusplus v1.0.9 [INFO] [stderr] Compiling cxx v1.0.122 [INFO] [stderr] Compiling pcapplusplus-sys v0.1.0 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Compiling cxx-build v1.0.122 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling cxxbridge-macro v1.0.122 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Compiling tcp-stream-capture v0.2.0 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:25:34 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `tcp_stream_capture` [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:25:49 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:30:34 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:30:49 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:41:34 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/capture.rs [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:41:49 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/lib.rs [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:47:34 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:47:49 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | type Context; [INFO] [stdout] | ^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 63 | type Counsafe(ntex)t; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:65:132 [INFO] [stdout] | [INFO] [stdout] 65 | fn on_tcp_message(ctx: &Context, conn: &ConnectionData, side: i8, payload: &[u8], missing_bytes: usize, timestamp: Timeval); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 65 | fn on_tcp_message(ctx: &Context, conn: &ConnectionData, side: i8, payload: &[u8], missing_bytes: usize, timestamp: Timeval)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:66:73 [INFO] [stdout] | [INFO] [stdout] 66 | fn on_tcp_connection_start(ctx: &Context, conn: &ConnectionData); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 66 | fn on_tcp_connection_start(ctx: &Context, conn: &ConnectionData)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:67:71 [INFO] [stdout] | [INFO] [stdout] 67 | fn on_tcp_connection_end(ctx: &Context, conn: &ConnectionData); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 67 | fn on_tcp_connection_end(ctx: &Context, conn: &ConnectionData)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:69:39 [INFO] [stdout] | [INFO] [stdout] 69 | fn log_error_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 69 | fn log_error_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:70:42 [INFO] [stdout] | [INFO] [stdout] 70 | fn log_error(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 70 | fn log_error(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:71:38 [INFO] [stdout] | [INFO] [stdout] 71 | fn log_warn_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 71 | fn log_warn_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:72:41 [INFO] [stdout] | [INFO] [stdout] 72 | fn log_warn(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 72 | fn log_warn(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:73:38 [INFO] [stdout] | [INFO] [stdout] 73 | fn log_info_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 73 | fn log_info_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] The following errors were reported: [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | fn log_info(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 74 | fn log_info(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: expected one of `:`, `;`, `<`, `=`, or `where`, found `(` [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:75:39 [INFO] [stdout] | [INFO] [stdout] 75 | fn log_debug_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 75 | fn log_debug_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/capture.rs:63:22 [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:76:42 [INFO] [stdout] | [INFO] [stdout] 76 | fn log_debug(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 76 | fn log_debug(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:77:39 [INFO] [stdout] | [INFO] [stdout] 77 | fn log_trace_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 77 | fn log_trace_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 62 | extern "Rust" { [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:78:42 [INFO] [stdout] | [INFO] [stdout] 78 | fn log_trace(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 78 | fn log_trace(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | - while parsing this item list starting here [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | fn get_live_devices() -> Vec; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 87 | fn get_live_devices() -> Vec); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 63 | type Counsafe(ntex)t; [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:98:60 [INFO] [stdout] | [INFO] [stdout] 98 | fn ip_addresses(self: &LiveDevice) -> Vec; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 98 | fn ip_addresses(self: &LiveDevice) -> Vec); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^ expected one of `:`, `;`, `<`, `=`, or `where` [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:113:67 [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box)) -> UniquePtr; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] ... [INFO] [stderr] 79 | } [INFO] [stderr] | - the item list ends here [INFO] [stderr] [INFO] [stderr] error: expected expression, found `>` [INFO] [stderr] --> src/capture.rs:87:55 [INFO] [stderr] | [INFO] [stderr] 87 | fn get_live_devices() -> Vec)unsafe ; [INFO] [stderr] | ^ expected expression [INFO] [stderr] [INFO] [stderr] error: expected type, found `>` [INFO] [stderr] --> src/capture.rs:87:55 [INFO] [stderr] | [INFO] [stderr] 81 | unsafe extern "C++" { [INFO] [stderr] | - while parsing this item list starting here [INFO] [stderr] ... [INFO] [stderr] 87 | fn get_live_devices() -> Vec)unsafe ; [INFO] [stderr] | ^ expected type [INFO] [stderr] ... [INFO] [stderr] 121 | } [INFO] [stderr] | - the item list ends here [INFO] [stderr] [INFO] [stderr] error: expected `;` [INFO] [stderr] --> src/capture.rs:63:22 [INFO] [stderr] | [INFO] [stderr] 63 | type Counsafe(ntex)t; [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `crate::capture::ffi` [INFO] [stderr] --> src/lib.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::capture::ffi; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `ffi` in `capture` [INFO] [stderr] | [INFO] [stderr] help: consider importing one of these modules instead [INFO] [stderr] | [INFO] [stderr] 7 | use std::ffi; [INFO] [stderr] | ~~~~~~~~ [INFO] [stderr] 7 | use std::os::unix::ffi; [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~ [INFO] [stderr] 7 | use core::ffi; [INFO] [stderr] | ~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `ffi` [INFO] [stderr] --> src/capture.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 6 | pub use ffi::MacAddress; [INFO] [stderr] | ^^^ help: a similar path exists: `std::ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:314:13 [INFO] [stderr] | [INFO] [stderr] 314 | ffi::IpAddressVersion::V4 => { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:318:13 [INFO] [stderr] | [INFO] [stderr] 318 | ffi::IpAddressVersion::V6 => Ipv6Addr::from(value.bytes).into(), [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:157:9 [INFO] [stderr] | [INFO] [stderr] 157 | ffi::get_conn_src_addr(&self.0).into() [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:162:9 [INFO] [stderr] | [INFO] [stderr] 162 | ffi::get_conn_dst_addr(&self.0).into() [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:167:9 [INFO] [stderr] | [INFO] [stderr] 167 | ffi::get_conn_src_port(&self.0) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:172:9 [INFO] [stderr] | [INFO] [stderr] 172 | ffi::get_conn_dst_port(&self.0) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:177:9 [INFO] [stderr] | [INFO] [stderr] 177 | ffi::get_conn_flow_key(&self.0) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:182:27 [INFO] [stderr] | [INFO] [stderr] 182 | time_from_timeval(ffi::get_conn_start_time(&self.0)) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:187:27 [INFO] [stderr] | [INFO] [stderr] 187 | time_from_timeval(ffi::get_conn_end_time(&self.0)) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:136:26 [INFO] [stderr] | [INFO] [stderr] 136 | fn time_from_timeval(tv: ffi::Timeval) -> Option [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:152:34 [INFO] [stderr] | [INFO] [stderr] 152 | pub struct TcpConnection<'a>(&'a ffi::ConnectionData); [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:312:20 [INFO] [stderr] | [INFO] [stderr] 312 | fn from(value: ffi::IpAddress) -> Self { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:311:11 [INFO] [stderr] | [INFO] [stderr] 311 | impl From for IpAddr { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:306:20 [INFO] [stderr] | [INFO] [stderr] 306 | fn from(value: ffi::Ipv6Address) -> Self { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:305:11 [INFO] [stderr] | [INFO] [stderr] 305 | impl From for Ipv6Addr { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:300:20 [INFO] [stderr] | [INFO] [stderr] 300 | fn from(value: ffi::Ipv4Address) -> Self { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:299:11 [INFO] [stderr] | [INFO] [stderr] 299 | impl From for Ipv4Addr { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:289:45 [INFO] [stderr] | [INFO] [stderr] 289 | pub(crate) fn as_option(self) -> Option [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:243:41 [INFO] [stderr] | [INFO] [stderr] 243 | fn on_tcp_message(ctx: &Context, conn: &ffi::ConnectionData, side: i8, payload: &[u8], missing_bytes: usize, timestamp: ffi::Timeval) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:243:121 [INFO] [stderr] | [INFO] [stderr] 243 | fn on_tcp_message(ctx: &Context, conn: &ffi::ConnectionData, side: i8, payload: &[u8], missing_bytes: usize, timestamp: ffi::Timeval) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:255:50 [INFO] [stderr] | [INFO] [stderr] 255 | fn on_tcp_connection_start(ctx: &Context, conn: &ffi::ConnectionData) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:261:48 [INFO] [stderr] | [INFO] [stderr] 261 | fn on_tcp_connection_end(ctx: &Context, conn: &ffi::ConnectionData) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:267:6 [INFO] [stderr] | [INFO] [stderr] 267 | impl ffi::LiveDevice { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:274:18 [INFO] [stderr] | [INFO] [stderr] 274 | impl Display for ffi::MacAddress { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:288:6 [INFO] [stderr] | [INFO] [stderr] 288 | impl ffi::OptionMacAddress { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error: aborting due to 31 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:87:49 [INFO] [stdout] | [INFO] [stdout] 87 | fn get_live_devices() -> Vec; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:90:50 [INFO] [stdout] | [INFO] [stdout] 90 | fn find_by_name(name: &str) -> LiveDevice; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 91 | fn find_by_ip(ip: &str) -> LiveDevice; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:92:62 [INFO] [stdout] | [INFO] [stdout] 92 | fn find_by_ip_or_name(ip_or_name: &str) -> LiveDevice; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:94:53 [INFO] [stdout] | [INFO] [stdout] 94 | fn name(self: &LiveDevice) -> Result; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:95:62 [INFO] [stdout] | [INFO] [stdout] 95 | fn mac_address(self: &LiveDevice) -> OptionMacAddress; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:96:58 [INFO] [stdout] | [INFO] [stdout] 96 | fn ipv4_address(self: &LiveDevice) -> Ipv4Address; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:97:58 [INFO] [stdout] | [INFO] [stdout] 97 | fn ipv6_address(self: &LiveDevice) -> Ipv6Address; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:98:61 [INFO] [stdout] | [INFO] [stdout] 98 | fn ip_addresses(self: &LiveDevice) -> Vec; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:103:65 [INFO] [stdout] | [INFO] [stdout] 103 | fn get_conn_src_addr(conn: &ConnectionData) -> IpAddress; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:104:65 [INFO] [stdout] | [INFO] [stdout] 104 | fn get_conn_dst_addr(conn: &ConnectionData) -> IpAddress; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:105:59 [INFO] [stdout] | [INFO] [stdout] 105 | fn get_conn_src_port(conn: &ConnectionData) -> u16; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:106:59 [INFO] [stdout] | [INFO] [stdout] 106 | fn get_conn_dst_port(conn: &ConnectionData) -> u16; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:107:59 [INFO] [stdout] | [INFO] [stdout] 107 | fn get_conn_flow_key(conn: &ConnectionData) -> u32; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:108:65 [INFO] [stdout] | [INFO] [stdout] 108 | fn get_conn_start_time(conn: &ConnectionData) -> Timeval; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:109:63 [INFO] [stdout] | [INFO] [stdout] 109 | fn get_conn_end_time(conn: &ConnectionData) -> Timeval; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:113:100 [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:114:96 [INFO] [stdout] | [INFO] [stdout] 114 | fn capture_from_file(filename: &[u8], ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:116:87 [INFO] [stdout] | [INFO] [stdout] 116 | fn set_filter(self: Pin<&mut TcpStreamCapture>, filter: &str) -> CaptureResult; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:117:75 [INFO] [stdout] | [INFO] [stdout] 117 | fn clear_filter(self: Pin<&mut TcpStreamCapture>) -> CaptureResult; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:119:78 [INFO] [stdout] | [INFO] [stdout] 119 | fn start_capturing(self: Pin<&mut TcpStreamCapture>) -> CaptureResult; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:120:60 [INFO] [stdout] | [INFO] [stdout] 120 | fn stop_capturing(self: Pin<&mut TcpStreamCapture>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:113:99 [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/list_devices.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `tcp_stream_capture` [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:25:34 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:25:49 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:30:34 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:30:49 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/capture.rs [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:41:34 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/lib.rs [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:41:49 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:47:34 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:47:49 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | type Context; [INFO] [stdout] | ^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 63 | type Counsafe(ntex)t; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:65:132 [INFO] [stdout] | [INFO] [stdout] 65 | fn on_tcp_message(ctx: &Context, conn: &ConnectionData, side: i8, payload: &[u8], missing_bytes: usize, timestamp: Timeval); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 65 | fn on_tcp_message(ctx: &Context, conn: &ConnectionData, side: i8, payload: &[u8], missing_bytes: usize, timestamp: Timeval)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:66:73 [INFO] [stdout] | [INFO] [stdout] 66 | fn on_tcp_connection_start(ctx: &Context, conn: &ConnectionData); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 66 | fn on_tcp_connection_start(ctx: &Context, conn: &ConnectionData)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:67:71 [INFO] [stdout] | [INFO] [stdout] 67 | fn on_tcp_connection_end(ctx: &Context, conn: &ConnectionData); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 67 | fn on_tcp_connection_end(ctx: &Context, conn: &ConnectionData)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:69:39 [INFO] [stdout] | [INFO] [stdout] 69 | fn log_error_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 69 | fn log_error_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:70:42 [INFO] [stdout] | [INFO] [stdout] 70 | fn log_error(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 70 | fn log_error(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:71:38 [INFO] [stdout] | [INFO] [stdout] 71 | fn log_warn_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 71 | fn log_warn_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:72:41 [INFO] [stdout] | [INFO] [stdout] 72 | fn log_warn(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 72 | fn log_warn(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] The following errors were reported: [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:73:38 [INFO] [stdout] | [INFO] [stdout] 73 | fn log_info_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 73 | fn log_info_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: expected one of `:`, `;`, `<`, `=`, or `where`, found `(` [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | fn log_info(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 74 | fn log_info(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/capture.rs:63:22 [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:75:39 [INFO] [stdout] | [INFO] [stdout] 75 | fn log_debug_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 75 | fn log_debug_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:76:42 [INFO] [stdout] | [INFO] [stdout] 76 | fn log_debug(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 76 | fn log_debug(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 62 | extern "Rust" { [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:77:39 [INFO] [stdout] | [INFO] [stdout] 77 | fn log_trace_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 77 | fn log_trace_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | - while parsing this item list starting here [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:78:42 [INFO] [stdout] | [INFO] [stdout] 78 | fn log_trace(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 78 | fn log_trace(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 63 | type Counsafe(ntex)t; [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | fn get_live_devices() -> Vec; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 87 | fn get_live_devices() -> Vec); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^ expected one of `:`, `;`, `<`, `=`, or `where` [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:98:60 [INFO] [stdout] | [INFO] [stdout] 98 | fn ip_addresses(self: &LiveDevice) -> Vec; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 98 | fn ip_addresses(self: &LiveDevice) -> Vec); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] ... [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:113:67 [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box)) -> UniquePtr; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 79 | } [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:87:49 [INFO] [stdout] | [INFO] [stdout] 87 | fn get_live_devices() -> Vec; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | - the item list ends here [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:90:50 [INFO] [stdout] | [INFO] [stdout] 90 | fn find_by_name(name: &str) -> LiveDevice; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 91 | fn find_by_ip(ip: &str) -> LiveDevice; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: expected expression, found `>` [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:92:62 [INFO] [stdout] | [INFO] [stdout] 92 | fn find_by_ip_or_name(ip_or_name: &str) -> LiveDevice; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/capture.rs:87:55 [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:94:53 [INFO] [stdout] | [INFO] [stdout] 94 | fn name(self: &LiveDevice) -> Result; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:95:62 [INFO] [stdout] | [INFO] [stdout] 95 | fn mac_address(self: &LiveDevice) -> OptionMacAddress; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 87 | fn get_live_devices() -> Vec)unsafe ; [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:96:58 [INFO] [stdout] | [INFO] [stdout] 96 | fn ipv4_address(self: &LiveDevice) -> Ipv4Address; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^ expected expression [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:97:58 [INFO] [stdout] | [INFO] [stdout] 97 | fn ipv6_address(self: &LiveDevice) -> Ipv6Address; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:98:61 [INFO] [stdout] | [INFO] [stdout] 98 | fn ip_addresses(self: &LiveDevice) -> Vec; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: expected type, found `>` [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:103:65 [INFO] [stdout] | [INFO] [stdout] 103 | fn get_conn_src_addr(conn: &ConnectionData) -> IpAddress; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/capture.rs:87:55 [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:104:65 [INFO] [stdout] | [INFO] [stdout] 104 | fn get_conn_dst_addr(conn: &ConnectionData) -> IpAddress; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:105:59 [INFO] [stdout] | [INFO] [stdout] 105 | fn get_conn_src_port(conn: &ConnectionData) -> u16; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 81 | unsafe extern "C++" { [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:106:59 [INFO] [stdout] | [INFO] [stdout] 106 | fn get_conn_dst_port(conn: &ConnectionData) -> u16; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | - while parsing this item list starting here [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:107:59 [INFO] [stdout] | [INFO] [stdout] 107 | fn get_conn_flow_key(conn: &ConnectionData) -> u32; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] ... [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:108:65 [INFO] [stdout] | [INFO] [stdout] 108 | fn get_conn_start_time(conn: &ConnectionData) -> Timeval; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 87 | fn get_live_devices() -> Vec)unsafe ; [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:109:63 [INFO] [stdout] | [INFO] [stdout] 109 | fn get_conn_end_time(conn: &ConnectionData) -> Timeval; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^ expected type [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:113:100 [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] ... [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:114:96 [INFO] [stdout] | [INFO] [stdout] 114 | fn capture_from_file(filename: &[u8], ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 121 | } [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:116:87 [INFO] [stdout] | [INFO] [stdout] 116 | fn set_filter(self: Pin<&mut TcpStreamCapture>, filter: &str) -> CaptureResult; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | - the item list ends here [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:117:75 [INFO] [stdout] | [INFO] [stdout] 117 | fn clear_filter(self: Pin<&mut TcpStreamCapture>) -> CaptureResult; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:119:78 [INFO] [stdout] | [INFO] [stdout] 119 | fn start_capturing(self: Pin<&mut TcpStreamCapture>) -> CaptureResult; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: expected `;` [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:120:60 [INFO] [stdout] | [INFO] [stdout] 120 | fn stop_capturing(self: Pin<&mut TcpStreamCapture>); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/capture.rs:63:22 [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/capture.rs:113:99 [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 63 | type Counsafe(ntex)t; [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `crate::capture::ffi` [INFO] [stderr] --> src/lib.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::capture::ffi; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `ffi` in `capture` [INFO] [stderr] | [INFO] [stderr] help: consider importing one of these modules instead [INFO] [stderr] | [INFO] [stderr] 7 | use std::ffi; [INFO] [stderr] | ~~~~~~~~ [INFO] [stderr] 7 | use std::os::unix::ffi; [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~ [INFO] [stderr] 7 | use core::ffi; [INFO] [stderr] | ~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `ffi` [INFO] [stderr] --> src/capture.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 6 | pub use ffi::MacAddress; [INFO] [stderr] | ^^^ help: a similar path exists: `std::ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:314:13 [INFO] [stderr] | [INFO] [stderr] 314 | ffi::IpAddressVersion::V4 => { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:318:13 [INFO] [stderr] | [INFO] [stderr] 318 | ffi::IpAddressVersion::V6 => Ipv6Addr::from(value.bytes).into(), [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:157:9 [INFO] [stderr] | [INFO] [stderr] 157 | ffi::get_conn_src_addr(&self.0).into() [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:162:9 [INFO] [stderr] | [INFO] [stderr] 162 | ffi::get_conn_dst_addr(&self.0).into() [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:167:9 [INFO] [stderr] | [INFO] [stderr] 167 | ffi::get_conn_src_port(&self.0) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:172:9 [INFO] [stderr] | [INFO] [stderr] 172 | ffi::get_conn_dst_port(&self.0) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:177:9 [INFO] [stderr] | [INFO] [stderr] 177 | ffi::get_conn_flow_key(&self.0) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:182:27 [INFO] [stderr] | [INFO] [stderr] 182 | time_from_timeval(ffi::get_conn_start_time(&self.0)) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:187:27 [INFO] [stderr] | [INFO] [stderr] 187 | time_from_timeval(ffi::get_conn_end_time(&self.0)) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:136:26 [INFO] [stderr] | [INFO] [stderr] 136 | fn time_from_timeval(tv: ffi::Timeval) -> Option [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:152:34 [INFO] [stderr] | [INFO] [stderr] 152 | pub struct TcpConnection<'a>(&'a ffi::ConnectionData); [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:312:20 [INFO] [stderr] | [INFO] [stderr] 312 | fn from(value: ffi::IpAddress) -> Self { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:311:11 [INFO] [stderr] | [INFO] [stderr] 311 | impl From for IpAddr { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:306:20 [INFO] [stderr] | [INFO] [stderr] 306 | fn from(value: ffi::Ipv6Address) -> Self { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:305:11 [INFO] [stderr] | [INFO] [stderr] 305 | impl From for Ipv6Addr { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:300:20 [INFO] [stderr] | [INFO] [stderr] 300 | fn from(value: ffi::Ipv4Address) -> Self { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:299:11 [INFO] [stderr] | [INFO] [stderr] 299 | impl From for Ipv4Addr { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:289:45 [INFO] [stderr] | [INFO] [stderr] 289 | pub(crate) fn as_option(self) -> Option [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:243:41 [INFO] [stderr] | [INFO] [stderr] 243 | fn on_tcp_message(ctx: &Context, conn: &ffi::ConnectionData, side: i8, payload: &[u8], missing_bytes: usize, timestamp: ffi::Timeval) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:243:121 [INFO] [stderr] | [INFO] [stderr] 243 | fn on_tcp_message(ctx: &Context, conn: &ffi::ConnectionData, side: i8, payload: &[u8], missing_bytes: usize, timestamp: ffi::Timeval) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:255:50 [INFO] [stderr] | [INFO] [stderr] 255 | fn on_tcp_connection_start(ctx: &Context, conn: &ffi::ConnectionData) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:261:48 [INFO] [stderr] | [INFO] [stderr] 261 | fn on_tcp_connection_end(ctx: &Context, conn: &ffi::ConnectionData) [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:267:6 [INFO] [stderr] | [INFO] [stderr] 267 | impl ffi::LiveDevice { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:274:18 [INFO] [stderr] | [INFO] [stderr] 274 | impl Display for ffi::MacAddress { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `ffi` [INFO] [stderr] --> src/capture.rs:288:6 [INFO] [stderr] | [INFO] [stderr] 288 | impl ffi::OptionMacAddress { [INFO] [stderr] | ^^^ use of undeclared crate or module `ffi` [INFO] [stderr] [INFO] [stderr] error: aborting due to 31 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Migrating examples/cap_live.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.38s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling tcp-stream-capture v0.2.0 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:87:49 [INFO] [stdout] | [INFO] [stdout] 87 | fn get_live_devices() -> Vec; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:90:50 [INFO] [stdout] | [INFO] [stdout] 90 | fn find_by_name(name: &str) -> LiveDevice; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 91 | fn find_by_ip(ip: &str) -> LiveDevice; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:92:62 [INFO] [stdout] | [INFO] [stdout] 92 | fn find_by_ip_or_name(ip_or_name: &str) -> LiveDevice; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:94:53 [INFO] [stdout] | [INFO] [stdout] 94 | fn name(self: &LiveDevice) -> Result; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:95:62 [INFO] [stdout] | [INFO] [stdout] 95 | fn mac_address(self: &LiveDevice) -> OptionMacAddress; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:96:58 [INFO] [stdout] | [INFO] [stdout] 96 | fn ipv4_address(self: &LiveDevice) -> Ipv4Address; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:97:58 [INFO] [stdout] | [INFO] [stdout] 97 | fn ipv6_address(self: &LiveDevice) -> Ipv6Address; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:98:61 [INFO] [stdout] | [INFO] [stdout] 98 | fn ip_addresses(self: &LiveDevice) -> Vec; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:103:65 [INFO] [stdout] | [INFO] [stdout] 103 | fn get_conn_src_addr(conn: &ConnectionData) -> IpAddress; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:104:65 [INFO] [stdout] | [INFO] [stdout] 104 | fn get_conn_dst_addr(conn: &ConnectionData) -> IpAddress; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:105:59 [INFO] [stdout] | [INFO] [stdout] 105 | fn get_conn_src_port(conn: &ConnectionData) -> u16; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:106:59 [INFO] [stdout] | [INFO] [stdout] 106 | fn get_conn_dst_port(conn: &ConnectionData) -> u16; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:107:59 [INFO] [stdout] | [INFO] [stdout] 107 | fn get_conn_flow_key(conn: &ConnectionData) -> u32; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:108:65 [INFO] [stdout] | [INFO] [stdout] 108 | fn get_conn_start_time(conn: &ConnectionData) -> Timeval; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:109:63 [INFO] [stdout] | [INFO] [stdout] 109 | fn get_conn_end_time(conn: &ConnectionData) -> Timeval; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:113:100 [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:114:96 [INFO] [stdout] | [INFO] [stdout] 114 | fn capture_from_file(filename: &[u8], ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:116:87 [INFO] [stdout] | [INFO] [stdout] 116 | fn set_filter(self: Pin<&mut TcpStreamCapture>, filter: &str) -> CaptureResult; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:117:75 [INFO] [stdout] | [INFO] [stdout] 117 | fn clear_filter(self: Pin<&mut TcpStreamCapture>) -> CaptureResult; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:119:78 [INFO] [stdout] | [INFO] [stdout] 119 | fn start_capturing(self: Pin<&mut TcpStreamCapture>) -> CaptureResult; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:120:60 [INFO] [stdout] | [INFO] [stdout] 120 | fn stop_capturing(self: Pin<&mut TcpStreamCapture>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:113:99 [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:25:34 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:25:49 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:30:34 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:30:49 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:41:34 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:41:49 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:47:34 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:47:49 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | type Context; [INFO] [stdout] | ^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 63 | type Counsafe(ntex)t; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:65:132 [INFO] [stdout] | [INFO] [stdout] 65 | fn on_tcp_message(ctx: &Context, conn: &ConnectionData, side: i8, payload: &[u8], missing_bytes: usize, timestamp: Timeval); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 65 | fn on_tcp_message(ctx: &Context, conn: &ConnectionData, side: i8, payload: &[u8], missing_bytes: usize, timestamp: Timeval)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:66:73 [INFO] [stdout] | [INFO] [stdout] 66 | fn on_tcp_connection_start(ctx: &Context, conn: &ConnectionData); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 66 | fn on_tcp_connection_start(ctx: &Context, conn: &ConnectionData)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:67:71 [INFO] [stdout] | [INFO] [stdout] 67 | fn on_tcp_connection_end(ctx: &Context, conn: &ConnectionData); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 67 | fn on_tcp_connection_end(ctx: &Context, conn: &ConnectionData)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:69:39 [INFO] [stdout] | [INFO] [stdout] 69 | fn log_error_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 69 | fn log_error_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:70:42 [INFO] [stdout] | [INFO] [stdout] 70 | fn log_error(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 70 | fn log_error(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:71:38 [INFO] [stdout] | [INFO] [stdout] 71 | fn log_warn_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 71 | fn log_warn_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:72:41 [INFO] [stdout] | [INFO] [stdout] 72 | fn log_warn(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 72 | fn log_warn(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:73:38 [INFO] [stdout] | [INFO] [stdout] 73 | fn log_info_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 73 | fn log_info_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | fn log_info(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 74 | fn log_info(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:75:39 [INFO] [stdout] | [INFO] [stdout] 75 | fn log_debug_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 75 | fn log_debug_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:76:42 [INFO] [stdout] | [INFO] [stdout] 76 | fn log_debug(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 76 | fn log_debug(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:77:39 [INFO] [stdout] | [INFO] [stdout] 77 | fn log_trace_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 77 | fn log_trace_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:78:42 [INFO] [stdout] | [INFO] [stdout] 78 | fn log_trace(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 78 | fn log_trace(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | fn get_live_devices() -> Vec; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 87 | fn get_live_devices() -> Vec); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:98:60 [INFO] [stdout] | [INFO] [stdout] 98 | fn ip_addresses(self: &LiveDevice) -> Vec; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 98 | fn ip_addresses(self: &LiveDevice) -> Vec); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:113:67 [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box)) -> UniquePtr; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:87:49 [INFO] [stdout] | [INFO] [stdout] 87 | fn get_live_devices() -> Vec; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:90:50 [INFO] [stdout] | [INFO] [stdout] 90 | fn find_by_name(name: &str) -> LiveDevice; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 91 | fn find_by_ip(ip: &str) -> LiveDevice; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:92:62 [INFO] [stdout] | [INFO] [stdout] 92 | fn find_by_ip_or_name(ip_or_name: &str) -> LiveDevice; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:94:53 [INFO] [stdout] | [INFO] [stdout] 94 | fn name(self: &LiveDevice) -> Result; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:95:62 [INFO] [stdout] | [INFO] [stdout] 95 | fn mac_address(self: &LiveDevice) -> OptionMacAddress; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:96:58 [INFO] [stdout] | [INFO] [stdout] 96 | fn ipv4_address(self: &LiveDevice) -> Ipv4Address; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:97:58 [INFO] [stdout] | [INFO] [stdout] 97 | fn ipv6_address(self: &LiveDevice) -> Ipv6Address; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:98:61 [INFO] [stdout] | [INFO] [stdout] 98 | fn ip_addresses(self: &LiveDevice) -> Vec; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:103:65 [INFO] [stdout] | [INFO] [stdout] 103 | fn get_conn_src_addr(conn: &ConnectionData) -> IpAddress; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:104:65 [INFO] [stdout] | [INFO] [stdout] 104 | fn get_conn_dst_addr(conn: &ConnectionData) -> IpAddress; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:105:59 [INFO] [stdout] | [INFO] [stdout] 105 | fn get_conn_src_port(conn: &ConnectionData) -> u16; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:106:59 [INFO] [stdout] | [INFO] [stdout] 106 | fn get_conn_dst_port(conn: &ConnectionData) -> u16; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:107:59 [INFO] [stdout] | [INFO] [stdout] 107 | fn get_conn_flow_key(conn: &ConnectionData) -> u32; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:108:65 [INFO] [stdout] | [INFO] [stdout] 108 | fn get_conn_start_time(conn: &ConnectionData) -> Timeval; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:109:63 [INFO] [stdout] | [INFO] [stdout] 109 | fn get_conn_end_time(conn: &ConnectionData) -> Timeval; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:113:100 [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:114:96 [INFO] [stdout] | [INFO] [stdout] 114 | fn capture_from_file(filename: &[u8], ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:116:87 [INFO] [stdout] | [INFO] [stdout] 116 | fn set_filter(self: Pin<&mut TcpStreamCapture>, filter: &str) -> CaptureResult; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:117:75 [INFO] [stdout] | [INFO] [stdout] 117 | fn clear_filter(self: Pin<&mut TcpStreamCapture>) -> CaptureResult; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:119:78 [INFO] [stdout] | [INFO] [stdout] 119 | fn start_capturing(self: Pin<&mut TcpStreamCapture>) -> CaptureResult; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:120:60 [INFO] [stdout] | [INFO] [stdout] 120 | fn stop_capturing(self: Pin<&mut TcpStreamCapture>); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/capture.rs:113:99 [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:25:34 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:25:49 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:30:34 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:30:49 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:41:34 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:41:49 [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 41 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:47:34 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, Paunsafe(rtialE)q, Eq, Hash)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:47:49 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Haunsafe(s)h)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | type Context; [INFO] [stdout] | ^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 63 | type Counsafe(ntex)t; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:65:132 [INFO] [stdout] | [INFO] [stdout] 65 | fn on_tcp_message(ctx: &Context, conn: &ConnectionData, side: i8, payload: &[u8], missing_bytes: usize, timestamp: Timeval); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 65 | fn on_tcp_message(ctx: &Context, conn: &ConnectionData, side: i8, payload: &[u8], missing_bytes: usize, timestamp: Timeval)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:66:73 [INFO] [stdout] | [INFO] [stdout] 66 | fn on_tcp_connection_start(ctx: &Context, conn: &ConnectionData); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 66 | fn on_tcp_connection_start(ctx: &Context, conn: &ConnectionData)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:67:71 [INFO] [stdout] | [INFO] [stdout] 67 | fn on_tcp_connection_end(ctx: &Context, conn: &ConnectionData); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 67 | fn on_tcp_connection_end(ctx: &Context, conn: &ConnectionData)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:69:39 [INFO] [stdout] | [INFO] [stdout] 69 | fn log_error_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 69 | fn log_error_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:70:42 [INFO] [stdout] | [INFO] [stdout] 70 | fn log_error(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 70 | fn log_error(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:71:38 [INFO] [stdout] | [INFO] [stdout] 71 | fn log_warn_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 71 | fn log_warn_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:72:41 [INFO] [stdout] | [INFO] [stdout] 72 | fn log_warn(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 72 | fn log_warn(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:73:38 [INFO] [stdout] | [INFO] [stdout] 73 | fn log_info_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 73 | fn log_info_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | fn log_info(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 74 | fn log_info(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:75:39 [INFO] [stdout] | [INFO] [stdout] 75 | fn log_debug_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 75 | fn log_debug_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:76:42 [INFO] [stdout] | [INFO] [stdout] 76 | fn log_debug(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 76 | fn log_debug(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:77:39 [INFO] [stdout] | [INFO] [stdout] 77 | fn log_trace_enabled() -> bool; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 77 | fn log_trace_enabled() -> boolunsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:78:42 [INFO] [stdout] | [INFO] [stdout] 78 | fn log_trace(message: &CxxString); [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 78 | fn log_trace(message: &CxxString)unsafe(;) [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | fn get_live_devices() -> Vec; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 87 | fn get_live_devices() -> Vec); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:98:60 [INFO] [stdout] | [INFO] [stdout] 98 | fn ip_addresses(self: &LiveDevice) -> Vec; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 98 | fn ip_addresses(self: &LiveDevice) -> Vec); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/capture.rs:113:67 [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box) -> UniquePtr; [INFO] [stdout] | ^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 113 | fn capture_from_live(device: &LiveDevice, ctx: Box)) -> UniquePtr; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 48 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 48 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tcp-stream-capture` (lib test) due to 49 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `tcp-stream-capture` (lib) due to 49 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "2e82b271c7310cf95a4226534498b07f5d3924f78cd3d025717801d0d00d9ae0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e82b271c7310cf95a4226534498b07f5d3924f78cd3d025717801d0d00d9ae0", kill_on_drop: false }` [INFO] [stdout] 2e82b271c7310cf95a4226534498b07f5d3924f78cd3d025717801d0d00d9ae0