[INFO] fetching crate wasmedge_tensorflow_interface 0.3.0... [INFO] checking wasmedge_tensorflow_interface-0.3.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate wasmedge_tensorflow_interface 0.3.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate wasmedge_tensorflow_interface 0.3.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 wasmedge_tensorflow_interface 0.3.0 [INFO] finished tweaking crates.io crate wasmedge_tensorflow_interface 0.3.0 [INFO] tweaked toml for crates.io crate wasmedge_tensorflow_interface 0.3.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 1dcb71cc96ad414794ccd772e98a0260740f07393dcb335b1708bddb8a3e2021 [INFO] running `Command { std: "docker" "start" "-a" "1dcb71cc96ad414794ccd772e98a0260740f07393dcb335b1708bddb8a3e2021", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1dcb71cc96ad414794ccd772e98a0260740f07393dcb335b1708bddb8a3e2021", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1dcb71cc96ad414794ccd772e98a0260740f07393dcb335b1708bddb8a3e2021", kill_on_drop: false }` [INFO] [stdout] 1dcb71cc96ad414794ccd772e98a0260740f07393dcb335b1708bddb8a3e2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] acdf652df6f4aff5a97d3f0bb7de95aa85db28247c6b6a7b09e4dca7f07e91fd [INFO] running `Command { std: "docker" "start" "-a" "acdf652df6f4aff5a97d3f0bb7de95aa85db28247c6b6a7b09e4dca7f07e91fd", 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] Checking wasmedge_tensorflow_interface v0.3.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `wasmedge_tensorflow_interface` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/generated_img.rs [INFO] [stderr] * src/generated_tf.rs [INFO] [stderr] * src/generated_tflite.rs [INFO] [stderr] * src/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:30:21 [INFO] [stderr] | [INFO] [stderr] 30 | ($rust_type:ty, $type_val:expr_2021, $zero:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:30:42 [INFO] [stderr] | [INFO] [stderr] 30 | ($rust_type:ty, $type_val:expr_2021, $zero:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `std` [INFO] [stderr] --> src/generated_tf.rs:59:7 [INFO] [stderr] | [INFO] [stderr] 59 | #[cfg(feature = "std")] [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `std` [INFO] [stderr] --> src/generated_tf.rs:61:7 [INFO] [stderr] | [INFO] [stderr] 61 | #[cfg(feature = "std")] [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `std` [INFO] [stderr] --> src/generated_tflite.rs:59:7 [INFO] [stderr] | [INFO] [stderr] 59 | #[cfg(feature = "std")] [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `std` [INFO] [stderr] --> src/generated_tflite.rs:61:7 [INFO] [stderr] | [INFO] [stderr] 61 | #[cfg(feature = "std")] [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `std` [INFO] [stderr] --> src/generated_img.rs:46:7 [INFO] [stderr] | [INFO] [stderr] 46 | #[cfg(feature = "std")] [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `std` [INFO] [stderr] --> src/generated_img.rs:48:7 [INFO] [stderr] | [INFO] [stderr] 48 | #[cfg(feature = "std")] [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `ModelBuffer` in the type namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `ModelBuffer` in the type namespace is also re-exported here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `Session` in the type namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `Session` in the type namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `Tensor` in the type namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `Tensor` in the type namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `TensorSize` in the type namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `TensorSize` in the type namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `TensorData` in the type namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `TensorData` in the type namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `create_session` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `create_session` in the value namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `delete_session` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `delete_session` in the value namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `run_session` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `run_session` in the value namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tf.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tf.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `get_output_tensor` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `get_output_tensor` in the value namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `get_tensor_len` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `get_tensor_len` in the value namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `get_tensor_data` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `get_tensor_data` in the value namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/generated_tf.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 218 | | pub fn create_session(arg0: i32, arg1: i32, arg2: i32) -> i32; [INFO] [stdout] 219 | | pub fn create_session_saved_model( [INFO] [stdout] 220 | | arg0: i32, [INFO] [stdout] ... | [INFO] [stdout] 243 | | pub fn clear_output(arg0: i32) -> i32; [INFO] [stdout] 244 | | } [INFO] [stdout] | |_____^ [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] --> src/lib.rs:16:9 [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tflite.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tflite.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `append_input` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `append_input` in the value namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 18 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/generated_tflite.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 174 | | pub fn create_session(arg0: i32, arg1: i32, arg2: i32) -> i32; [INFO] [stdout] 175 | | pub fn delete_session(arg0: i32) -> i32; [INFO] [stdout] 176 | | pub fn run_session(arg0: i32) -> i32; [INFO] [stdout] ... | [INFO] [stdout] 180 | | pub fn append_input(arg0: i32, arg1: i32, arg2: i32, arg3: i32, arg4: i32) -> i32; [INFO] [stdout] 181 | | } [INFO] [stdout] | |_____^ [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: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_img.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_img.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/generated_img.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 143 | | pub fn load_jpg( [INFO] [stdout] 144 | | arg0: i32, [INFO] [stdout] 145 | | arg1: i32, [INFO] [stdout] ... | [INFO] [stdout] 160 | | ) -> i32; [INFO] [stdout] 161 | | } [INFO] [stdout] | |_____^ [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: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `ModelBuffer` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `ModelBuffer` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `Session` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `Session` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `Tensor` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `Tensor` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `TensorSize` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `TensorSize` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `TensorData` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `TensorData` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `create_session` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `create_session` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `delete_session` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `delete_session` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `run_session` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `run_session` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `get_output_tensor` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `get_output_tensor` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `get_tensor_len` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `get_tensor_len` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `get_tensor_data` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `get_tensor_data` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `append_input` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `append_input` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | ($rust_type:ty, $type_val:expr, $zero:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 30 | ($rust_type:ty, $type_val:expr_2021, $zero:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | ($rust_type:ty, $type_val:expr, $zero:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 30 | ($rust_type:ty, $type_val:expr, $zero:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::create_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | let ret = wasmedge_tensorflow::create_session( [INFO] [stdout] | _______________^ [INFO] [stdout] 76 | | model_buffer.as_ptr() as i32, [INFO] [stdout] 77 | | model_buffer.len() as i32, [INFO] [stdout] 78 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 79 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | pub unsafe fn create_session(model_buffer: ModelBuffer<'_>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Session)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::create_session_saved_model` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | let ret = wasmedge_tensorflow::create_session_saved_model( [INFO] [stdout] | _______________^ [INFO] [stdout] 92 | | folder_path.as_ptr() as i32, [INFO] [stdout] 93 | | folder_path.len() as i32, [INFO] [stdout] 94 | | metagraph_tags.as_ptr() as i32, [INFO] [stdout] 95 | | metagraph_tags.len() as i32, [INFO] [stdout] 96 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 97 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | / pub unsafe fn create_session_saved_model( [INFO] [stdout] 87 | | folder_path: &str, [INFO] [stdout] 88 | | metagraph_tags: MetagraphTagList<'_>, [INFO] [stdout] 89 | | ) -> Result { [INFO] [stdout] | |_____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Session)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::delete_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:105:15 [INFO] [stdout] | [INFO] [stdout] 105 | let ret = wasmedge_tensorflow::delete_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | pub unsafe fn delete_session(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::run_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | let ret = wasmedge_tensorflow::run_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe fn run_session(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::get_output_tensor` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | let ret = wasmedge_tensorflow::get_output_tensor( [INFO] [stdout] | _______________^ [INFO] [stdout] 123 | | session as i32, [INFO] [stdout] 124 | | name.as_ptr() as i32, [INFO] [stdout] 125 | | name.len() as i32, [INFO] [stdout] 126 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 127 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | pub unsafe fn get_output_tensor(session: Session, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Tensor)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::get_tensor_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | wasmedge_tensorflow::get_tensor_len(session as i32, tensor as i32, rp0.as_mut_ptr() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / pub unsafe fn get_tensor_len( [INFO] [stdout] 135 | | session: Session, [INFO] [stdout] 136 | | tensor: Tensor, [INFO] [stdout] 137 | | ) -> Result { [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::get_tensor_data` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:154:15 [INFO] [stdout] | [INFO] [stdout] 154 | let ret = wasmedge_tensorflow::get_tensor_data( [INFO] [stdout] | _______________^ [INFO] [stdout] 155 | | session as i32, [INFO] [stdout] 156 | | tensor as i32, [INFO] [stdout] 157 | | tensor_buf as i32, [INFO] [stdout] 158 | | tensor_buf_max_size as i32, [INFO] [stdout] 159 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 160 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 147 | / pub unsafe fn get_tensor_data( [INFO] [stdout] 148 | | session: Session, [INFO] [stdout] 149 | | tensor: Tensor, [INFO] [stdout] 150 | | tensor_buf: *mut u8, [INFO] [stdout] 151 | | tensor_buf_max_size: TensorSize, [INFO] [stdout] 152 | | ) -> Result { [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::append_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:174:15 [INFO] [stdout] | [INFO] [stdout] 174 | let ret = wasmedge_tensorflow::append_input( [INFO] [stdout] | _______________^ [INFO] [stdout] 175 | | session as i32, [INFO] [stdout] 176 | | name.as_ptr() as i32, [INFO] [stdout] 177 | | name.len() as i32, [INFO] [stdout] ... | [INFO] [stdout] 182 | | tensor_buf.len() as i32, [INFO] [stdout] 183 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / pub unsafe fn append_input( [INFO] [stdout] 168 | | session: Session, [INFO] [stdout] 169 | | name: &str, [INFO] [stdout] 170 | | dimension: TensorDimensions<'_>, [INFO] [stdout] 171 | | data_type: TensorType, [INFO] [stdout] 172 | | tensor_buf: TensorData<'_>, [INFO] [stdout] 173 | | ) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::append_output` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | wasmedge_tensorflow::append_output(session as i32, name.as_ptr() as i32, name.len() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | pub unsafe fn append_output(session: Session, name: &str) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::clear_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:200:15 [INFO] [stdout] | [INFO] [stdout] 200 | let ret = wasmedge_tensorflow::clear_input(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:199:1 [INFO] [stdout] | [INFO] [stdout] 199 | pub unsafe fn clear_input(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::clear_output` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:208:15 [INFO] [stdout] | [INFO] [stdout] 208 | let ret = wasmedge_tensorflow::clear_output(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:207:1 [INFO] [stdout] | [INFO] [stdout] 207 | pub unsafe fn clear_output(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::create_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:73:15 [INFO] [stdout] | [INFO] [stdout] 73 | let ret = wasmedge_tensorflowlite::create_session( [INFO] [stdout] | _______________^ [INFO] [stdout] 74 | | model_buffer.as_ptr() as i32, [INFO] [stdout] 75 | | model_buffer.len() as i32, [INFO] [stdout] 76 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 77 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | / pub unsafe fn create_session( [INFO] [stdout] 70 | | model_buffer: ModelBuffer<'_>, [INFO] [stdout] 71 | | ) -> Result { [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Session)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::delete_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:85:15 [INFO] [stdout] | [INFO] [stdout] 85 | let ret = wasmedge_tensorflowlite::delete_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub unsafe fn delete_session(session: Session) -> Result<(), WasmedgeTfliteErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::run_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | let ret = wasmedge_tensorflowlite::run_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub unsafe fn run_session(session: Session) -> Result<(), WasmedgeTfliteErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::get_output_tensor` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:105:15 [INFO] [stdout] | [INFO] [stdout] 105 | let ret = wasmedge_tensorflowlite::get_output_tensor( [INFO] [stdout] | _______________^ [INFO] [stdout] 106 | | session as i32, [INFO] [stdout] 107 | | name.as_ptr() as i32, [INFO] [stdout] 108 | | name.len() as i32, [INFO] [stdout] 109 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 110 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 100 | / pub unsafe fn get_output_tensor( [INFO] [stdout] 101 | | session: Session, [INFO] [stdout] 102 | | name: &str, [INFO] [stdout] 103 | | ) -> Result { [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Tensor)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::get_tensor_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | let ret = wasmedge_tensorflowlite::get_tensor_len( [INFO] [stdout] | _______________^ [INFO] [stdout] 123 | | session as i32, [INFO] [stdout] 124 | | tensor as i32, [INFO] [stdout] 125 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 126 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | / pub unsafe fn get_tensor_len( [INFO] [stdout] 118 | | session: Session, [INFO] [stdout] 119 | | tensor: Tensor, [INFO] [stdout] 120 | | ) -> Result { [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::get_tensor_data` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:140:15 [INFO] [stdout] | [INFO] [stdout] 140 | let ret = wasmedge_tensorflowlite::get_tensor_data( [INFO] [stdout] | _______________^ [INFO] [stdout] 141 | | session as i32, [INFO] [stdout] 142 | | tensor as i32, [INFO] [stdout] 143 | | tensor_buf as i32, [INFO] [stdout] 144 | | tensor_buf_max_size as i32, [INFO] [stdout] 145 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 146 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | / pub unsafe fn get_tensor_data( [INFO] [stdout] 134 | | session: Session, [INFO] [stdout] 135 | | tensor: Tensor, [INFO] [stdout] 136 | | tensor_buf: *mut u8, [INFO] [stdout] 137 | | tensor_buf_max_size: TensorSize, [INFO] [stdout] 138 | | ) -> Result { [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::append_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:158:15 [INFO] [stdout] | [INFO] [stdout] 158 | let ret = wasmedge_tensorflowlite::append_input( [INFO] [stdout] | _______________^ [INFO] [stdout] 159 | | session as i32, [INFO] [stdout] 160 | | name.as_ptr() as i32, [INFO] [stdout] 161 | | name.len() as i32, [INFO] [stdout] 162 | | tensor_buf.as_ptr() as i32, [INFO] [stdout] 163 | | tensor_buf.len() as i32, [INFO] [stdout] 164 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:153:1 [INFO] [stdout] | [INFO] [stdout] 153 | / pub unsafe fn append_input( [INFO] [stdout] 154 | | session: Session, [INFO] [stdout] 155 | | name: &str, [INFO] [stdout] 156 | | tensor_buf: TensorData<'_>, [INFO] [stdout] 157 | | ) -> Result<(), WasmedgeTfliteErrno> { [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_img::wasmedge_image::load_jpg` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_img.rs:102:15 [INFO] [stdout] | [INFO] [stdout] 102 | let ret = wasmedge_image::load_jpg( [INFO] [stdout] | _______________^ [INFO] [stdout] 103 | | input_img_buffer.as_ptr() as i32, [INFO] [stdout] 104 | | input_img_buffer.len() as i32, [INFO] [stdout] 105 | | out_width as i32, [INFO] [stdout] ... | [INFO] [stdout] 109 | | output_buf_max_size as i32, [INFO] [stdout] 110 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_img.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | / pub unsafe fn load_jpg( [INFO] [stdout] 95 | | input_img_buffer: ImgBuffer<'_>, [INFO] [stdout] 96 | | out_width: u32, [INFO] [stdout] 97 | | out_height: u32, [INFO] [stdout] ... | [INFO] [stdout] 100 | | output_buf_max_size: BufMaxSize, [INFO] [stdout] 101 | | ) -> Result<(), WasmedgeImageErrno> { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_img::wasmedge_image::load_png` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_img.rs:125:15 [INFO] [stdout] | [INFO] [stdout] 125 | let ret = wasmedge_image::load_png( [INFO] [stdout] | _______________^ [INFO] [stdout] 126 | | input_img_buffer.as_ptr() as i32, [INFO] [stdout] 127 | | input_img_buffer.len() as i32, [INFO] [stdout] 128 | | out_width as i32, [INFO] [stdout] ... | [INFO] [stdout] 132 | | output_buf_max_size as i32, [INFO] [stdout] 133 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_img.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | / pub unsafe fn load_png( [INFO] [stdout] 118 | | input_img_buffer: ImgBuffer<'_>, [INFO] [stdout] 119 | | out_width: u32, [INFO] [stdout] 120 | | out_height: u32, [INFO] [stdout] ... | [INFO] [stdout] 123 | | output_buf_max_size: BufMaxSize, [INFO] [stdout] 124 | | ) -> Result<(), WasmedgeImageErrno> { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `append_input` redeclared with a different signature [INFO] [stdout] --> src/generated_tflite.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn append_input(arg0: i32, arg1: i32, arg2: i32, arg3: i32, arg4: i32) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/generated_tf.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | / pub fn append_input( [INFO] [stdout] 232 | | arg0: i32, [INFO] [stdout] 233 | | arg1: i32, [INFO] [stdout] 234 | | arg2: i32, [INFO] [stdout] ... | [INFO] [stdout] 239 | | arg7: i32, [INFO] [stdout] 240 | | ) -> i32; [INFO] [stdout] | |_________________- `append_input` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32, i32, i32, i32, i32, i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(i32, i32, i32, i32, i32) -> i32` [INFO] [stdout] = note: `#[warn(clashing_extern_declarations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 53 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `wasmedge_tensorflow_interface` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/generated_img.rs [INFO] [stderr] * src/generated_tf.rs [INFO] [stderr] * src/generated_tflite.rs [INFO] [stderr] * src/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:30:21 [INFO] [stderr] | [INFO] [stderr] 30 | ($rust_type:ty, $type_val:expr_2021, $zero:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:30:42 [INFO] [stderr] | [INFO] [stderr] 30 | ($rust_type:ty, $type_val:expr_2021, $zero:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `std` [INFO] [stderr] --> src/generated_tf.rs:59:7 [INFO] [stderr] | [INFO] [stderr] 59 | #[cfg(feature = "std")] [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `std` [INFO] [stderr] --> src/generated_tf.rs:61:7 [INFO] [stderr] | [INFO] [stderr] 61 | #[cfg(feature = "std")] [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `std` [INFO] [stderr] --> src/generated_tflite.rs:59:7 [INFO] [stderr] | [INFO] [stderr] 59 | #[cfg(feature = "std")] [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `std` [INFO] [stderr] --> src/generated_tflite.rs:61:7 [INFO] [stderr] | [INFO] [stderr] 61 | #[cfg(feature = "std")] [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `std` [INFO] [stderr] --> src/generated_img.rs:46:7 [INFO] [stderr] | [INFO] [stderr] 46 | #[cfg(feature = "std")] [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `std` [INFO] [stderr] --> src/generated_img.rs:48:7 [INFO] [stderr] | [INFO] [stderr] 48 | #[cfg(feature = "std")] [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `ModelBuffer` in the type namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `ModelBuffer` in the type namespace is also re-exported here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `Session` in the type namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `Session` in the type namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `Tensor` in the type namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `Tensor` in the type namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `TensorSize` in the type namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `TensorSize` in the type namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `TensorData` in the type namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `TensorData` in the type namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `create_session` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `create_session` in the value namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `delete_session` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `delete_session` in the value namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `run_session` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `run_session` in the value namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `get_output_tensor` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `get_output_tensor` in the value namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `get_tensor_len` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `get_tensor_len` in the value namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `get_tensor_data` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tf.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ------------------- but the name `get_tensor_data` in the value namespace is also re-exported here [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tf.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/generated_tf.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 218 | | pub fn create_session(arg0: i32, arg1: i32, arg2: i32) -> i32; [INFO] [stdout] 219 | | pub fn create_session_saved_model( [INFO] [stdout] 220 | | arg0: i32, [INFO] [stdout] ... | [INFO] [stdout] 243 | | pub fn clear_output(arg0: i32) -> i32; [INFO] [stdout] 244 | | } [INFO] [stdout] | |_____^ [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] warning: ambiguous glob re-exports [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tflite.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/lib.rs:16:9 [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tflite.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 16 | pub use generated_tf::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ the name `append_input` in the value namespace is first re-exported here [INFO] [stderr] 17 | pub use generated_tflite::*; [INFO] [stderr] | ------------------- but the name `append_input` in the value namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 18 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/generated_tflite.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 174 | | pub fn create_session(arg0: i32, arg1: i32, arg2: i32) -> i32; [INFO] [stdout] 175 | | pub fn delete_session(arg0: i32) -> i32; [INFO] [stdout] 176 | | pub fn run_session(arg0: i32) -> i32; [INFO] [stdout] ... | [INFO] [stdout] 180 | | pub fn append_input(arg0: i32, arg1: i32, arg2: i32, arg3: i32, arg4: i32) -> i32; [INFO] [stdout] 181 | | } [INFO] [stdout] | |_____^ [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: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_img.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_img.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/generated_img.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 143 | | pub fn load_jpg( [INFO] [stdout] 144 | | arg0: i32, [INFO] [stdout] 145 | | arg1: i32, [INFO] [stdout] ... | [INFO] [stdout] 160 | | ) -> i32; [INFO] [stdout] 161 | | } [INFO] [stdout] | |_____^ [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: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `ModelBuffer` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `ModelBuffer` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `Session` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `Session` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `Tensor` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `Tensor` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `TensorSize` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `TensorSize` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `TensorData` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `TensorData` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `create_session` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `create_session` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `delete_session` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `delete_session` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `run_session` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `run_session` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `get_output_tensor` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `get_output_tensor` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `get_tensor_len` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `get_tensor_len` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `get_tensor_data` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `get_tensor_data` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `append_input` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `append_input` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | ($rust_type:ty, $type_val:expr, $zero:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 30 | ($rust_type:ty, $type_val:expr_2021, $zero:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | ($rust_type:ty, $type_val:expr, $zero:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 30 | ($rust_type:ty, $type_val:expr, $zero:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::create_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | let ret = wasmedge_tensorflow::create_session( [INFO] [stdout] | _______________^ [INFO] [stdout] 76 | | model_buffer.as_ptr() as i32, [INFO] [stdout] 77 | | model_buffer.len() as i32, [INFO] [stdout] 78 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 79 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | pub unsafe fn create_session(model_buffer: ModelBuffer<'_>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Session)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::create_session_saved_model` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | let ret = wasmedge_tensorflow::create_session_saved_model( [INFO] [stdout] | _______________^ [INFO] [stdout] 92 | | folder_path.as_ptr() as i32, [INFO] [stdout] 93 | | folder_path.len() as i32, [INFO] [stdout] 94 | | metagraph_tags.as_ptr() as i32, [INFO] [stdout] 95 | | metagraph_tags.len() as i32, [INFO] [stdout] 96 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 97 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | / pub unsafe fn create_session_saved_model( [INFO] [stdout] 87 | | folder_path: &str, [INFO] [stdout] 88 | | metagraph_tags: MetagraphTagList<'_>, [INFO] [stdout] 89 | | ) -> Result { [INFO] [stdout] | |_____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Session)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::delete_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:105:15 [INFO] [stdout] | [INFO] [stdout] 105 | let ret = wasmedge_tensorflow::delete_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | pub unsafe fn delete_session(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::run_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | let ret = wasmedge_tensorflow::run_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe fn run_session(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::get_output_tensor` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | let ret = wasmedge_tensorflow::get_output_tensor( [INFO] [stdout] | _______________^ [INFO] [stdout] 123 | | session as i32, [INFO] [stdout] 124 | | name.as_ptr() as i32, [INFO] [stdout] 125 | | name.len() as i32, [INFO] [stdout] 126 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 127 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | pub unsafe fn get_output_tensor(session: Session, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Tensor)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::get_tensor_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | wasmedge_tensorflow::get_tensor_len(session as i32, tensor as i32, rp0.as_mut_ptr() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / pub unsafe fn get_tensor_len( [INFO] [stdout] 135 | | session: Session, [INFO] [stdout] 136 | | tensor: Tensor, [INFO] [stdout] 137 | | ) -> Result { [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::get_tensor_data` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:154:15 [INFO] [stdout] | [INFO] [stdout] 154 | let ret = wasmedge_tensorflow::get_tensor_data( [INFO] [stdout] | _______________^ [INFO] [stdout] 155 | | session as i32, [INFO] [stdout] 156 | | tensor as i32, [INFO] [stdout] 157 | | tensor_buf as i32, [INFO] [stdout] 158 | | tensor_buf_max_size as i32, [INFO] [stdout] 159 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 160 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 147 | / pub unsafe fn get_tensor_data( [INFO] [stdout] 148 | | session: Session, [INFO] [stdout] 149 | | tensor: Tensor, [INFO] [stdout] 150 | | tensor_buf: *mut u8, [INFO] [stdout] 151 | | tensor_buf_max_size: TensorSize, [INFO] [stdout] 152 | | ) -> Result { [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::append_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:174:15 [INFO] [stdout] | [INFO] [stdout] 174 | let ret = wasmedge_tensorflow::append_input( [INFO] [stdout] | _______________^ [INFO] [stdout] 175 | | session as i32, [INFO] [stdout] 176 | | name.as_ptr() as i32, [INFO] [stdout] 177 | | name.len() as i32, [INFO] [stdout] ... | [INFO] [stdout] 182 | | tensor_buf.len() as i32, [INFO] [stdout] 183 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / pub unsafe fn append_input( [INFO] [stdout] 168 | | session: Session, [INFO] [stdout] 169 | | name: &str, [INFO] [stdout] 170 | | dimension: TensorDimensions<'_>, [INFO] [stdout] 171 | | data_type: TensorType, [INFO] [stdout] 172 | | tensor_buf: TensorData<'_>, [INFO] [stdout] 173 | | ) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::append_output` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | wasmedge_tensorflow::append_output(session as i32, name.as_ptr() as i32, name.len() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | pub unsafe fn append_output(session: Session, name: &str) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::clear_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:200:15 [INFO] [stdout] | [INFO] [stdout] 200 | let ret = wasmedge_tensorflow::clear_input(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:199:1 [INFO] [stdout] | [INFO] [stdout] 199 | pub unsafe fn clear_input(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::clear_output` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:208:15 [INFO] [stdout] | [INFO] [stdout] 208 | let ret = wasmedge_tensorflow::clear_output(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:207:1 [INFO] [stdout] | [INFO] [stdout] 207 | pub unsafe fn clear_output(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::create_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:73:15 [INFO] [stdout] | [INFO] [stdout] 73 | let ret = wasmedge_tensorflowlite::create_session( [INFO] [stdout] | _______________^ [INFO] [stdout] 74 | | model_buffer.as_ptr() as i32, [INFO] [stdout] 75 | | model_buffer.len() as i32, [INFO] [stdout] 76 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 77 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | / pub unsafe fn create_session( [INFO] [stdout] 70 | | model_buffer: ModelBuffer<'_>, [INFO] [stdout] 71 | | ) -> Result { [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Session)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::delete_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:85:15 [INFO] [stdout] | [INFO] [stdout] 85 | let ret = wasmedge_tensorflowlite::delete_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub unsafe fn delete_session(session: Session) -> Result<(), WasmedgeTfliteErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::run_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | let ret = wasmedge_tensorflowlite::run_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub unsafe fn run_session(session: Session) -> Result<(), WasmedgeTfliteErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::get_output_tensor` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:105:15 [INFO] [stdout] | [INFO] [stdout] 105 | let ret = wasmedge_tensorflowlite::get_output_tensor( [INFO] [stdout] | _______________^ [INFO] [stdout] 106 | | session as i32, [INFO] [stdout] 107 | | name.as_ptr() as i32, [INFO] [stdout] 108 | | name.len() as i32, [INFO] [stdout] 109 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 110 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 100 | / pub unsafe fn get_output_tensor( [INFO] [stdout] 101 | | session: Session, [INFO] [stdout] 102 | | name: &str, [INFO] [stdout] 103 | | ) -> Result { [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Tensor)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::get_tensor_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | let ret = wasmedge_tensorflowlite::get_tensor_len( [INFO] [stdout] | _______________^ [INFO] [stdout] 123 | | session as i32, [INFO] [stdout] 124 | | tensor as i32, [INFO] [stdout] 125 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 126 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | / pub unsafe fn get_tensor_len( [INFO] [stdout] 118 | | session: Session, [INFO] [stdout] 119 | | tensor: Tensor, [INFO] [stdout] 120 | | ) -> Result { [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::get_tensor_data` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:140:15 [INFO] [stdout] | [INFO] [stdout] 140 | let ret = wasmedge_tensorflowlite::get_tensor_data( [INFO] [stdout] | _______________^ [INFO] [stdout] 141 | | session as i32, [INFO] [stdout] 142 | | tensor as i32, [INFO] [stdout] 143 | | tensor_buf as i32, [INFO] [stdout] 144 | | tensor_buf_max_size as i32, [INFO] [stdout] 145 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 146 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | / pub unsafe fn get_tensor_data( [INFO] [stdout] 134 | | session: Session, [INFO] [stdout] 135 | | tensor: Tensor, [INFO] [stdout] 136 | | tensor_buf: *mut u8, [INFO] [stdout] 137 | | tensor_buf_max_size: TensorSize, [INFO] [stdout] 138 | | ) -> Result { [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::append_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:158:15 [INFO] [stdout] | [INFO] [stdout] 158 | let ret = wasmedge_tensorflowlite::append_input( [INFO] [stdout] | _______________^ [INFO] [stdout] 159 | | session as i32, [INFO] [stdout] 160 | | name.as_ptr() as i32, [INFO] [stdout] 161 | | name.len() as i32, [INFO] [stdout] 162 | | tensor_buf.as_ptr() as i32, [INFO] [stdout] 163 | | tensor_buf.len() as i32, [INFO] [stdout] 164 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:153:1 [INFO] [stdout] | [INFO] [stdout] 153 | / pub unsafe fn append_input( [INFO] [stdout] 154 | | session: Session, [INFO] [stdout] 155 | | name: &str, [INFO] [stdout] 156 | | tensor_buf: TensorData<'_>, [INFO] [stdout] 157 | | ) -> Result<(), WasmedgeTfliteErrno> { [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_img::wasmedge_image::load_jpg` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_img.rs:102:15 [INFO] [stdout] | [INFO] [stdout] 102 | let ret = wasmedge_image::load_jpg( [INFO] [stdout] | _______________^ [INFO] [stdout] 103 | | input_img_buffer.as_ptr() as i32, [INFO] [stdout] 104 | | input_img_buffer.len() as i32, [INFO] [stdout] 105 | | out_width as i32, [INFO] [stdout] ... | [INFO] [stdout] 109 | | output_buf_max_size as i32, [INFO] [stdout] 110 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_img.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | / pub unsafe fn load_jpg( [INFO] [stdout] 95 | | input_img_buffer: ImgBuffer<'_>, [INFO] [stdout] 96 | | out_width: u32, [INFO] [stdout] 97 | | out_height: u32, [INFO] [stdout] ... | [INFO] [stdout] 100 | | output_buf_max_size: BufMaxSize, [INFO] [stdout] 101 | | ) -> Result<(), WasmedgeImageErrno> { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_img::wasmedge_image::load_png` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_img.rs:125:15 [INFO] [stdout] | [INFO] [stdout] 125 | let ret = wasmedge_image::load_png( [INFO] [stdout] | _______________^ [INFO] [stdout] 126 | | input_img_buffer.as_ptr() as i32, [INFO] [stdout] 127 | | input_img_buffer.len() as i32, [INFO] [stdout] 128 | | out_width as i32, [INFO] [stdout] ... | [INFO] [stdout] 132 | | output_buf_max_size as i32, [INFO] [stdout] 133 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_img.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | / pub unsafe fn load_png( [INFO] [stdout] 118 | | input_img_buffer: ImgBuffer<'_>, [INFO] [stdout] 119 | | out_width: u32, [INFO] [stdout] 120 | | out_height: u32, [INFO] [stdout] ... | [INFO] [stdout] 123 | | output_buf_max_size: BufMaxSize, [INFO] [stdout] 124 | | ) -> Result<(), WasmedgeImageErrno> { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `append_input` redeclared with a different signature [INFO] [stdout] --> src/generated_tflite.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn append_input(arg0: i32, arg1: i32, arg2: i32, arg3: i32, arg4: i32) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration [INFO] [stdout] | [INFO] [stdout] ::: src/generated_tf.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | / pub fn append_input( [INFO] [stdout] 232 | | arg0: i32, [INFO] [stdout] 233 | | arg1: i32, [INFO] [stdout] 234 | | arg2: i32, [INFO] [stdout] ... | [INFO] [stdout] 239 | | arg7: i32, [INFO] [stdout] 240 | | ) -> i32; [INFO] [stdout] | |_________________- `append_input` previously declared here [INFO] [stdout] | [INFO] [stdout] = note: expected `unsafe extern "C" fn(i32, i32, i32, i32, i32, i32, i32, i32) -> i32` [INFO] [stdout] found `unsafe extern "C" fn(i32, i32, i32, i32, i32) -> i32` [INFO] [stdout] = note: `#[warn(clashing_extern_declarations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 53 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking wasmedge_tensorflow_interface v0.3.0 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/generated_tf.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | / extern "C" { [INFO] [stdout] 218 | | pub fn create_session(arg0: i32, arg1: i32, arg2: i32) -> i32; [INFO] [stdout] 219 | | pub fn create_session_saved_model( [INFO] [stdout] 220 | | arg0: i32, [INFO] [stdout] ... | [INFO] [stdout] 243 | | pub fn clear_output(arg0: i32) -> i32; [INFO] [stdout] 244 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/generated_tf.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | / extern "C" { [INFO] [stdout] 218 | | pub fn create_session(arg0: i32, arg1: i32, arg2: i32) -> i32; [INFO] [stdout] 219 | | pub fn create_session_saved_model( [INFO] [stdout] 220 | | arg0: i32, [INFO] [stdout] ... | [INFO] [stdout] 243 | | pub fn clear_output(arg0: i32) -> i32; [INFO] [stdout] 244 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/generated_tflite.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | / extern "C" { [INFO] [stdout] 174 | | pub fn create_session(arg0: i32, arg1: i32, arg2: i32) -> i32; [INFO] [stdout] 175 | | pub fn delete_session(arg0: i32) -> i32; [INFO] [stdout] 176 | | pub fn run_session(arg0: i32) -> i32; [INFO] [stdout] ... | [INFO] [stdout] 180 | | pub fn append_input(arg0: i32, arg1: i32, arg2: i32, arg3: i32, arg4: i32) -> i32; [INFO] [stdout] 181 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/generated_tflite.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | / extern "C" { [INFO] [stdout] 174 | | pub fn create_session(arg0: i32, arg1: i32, arg2: i32) -> i32; [INFO] [stdout] 175 | | pub fn delete_session(arg0: i32) -> i32; [INFO] [stdout] 176 | | pub fn run_session(arg0: i32) -> i32; [INFO] [stdout] ... | [INFO] [stdout] 180 | | pub fn append_input(arg0: i32, arg1: i32, arg2: i32, arg3: i32, arg4: i32) -> i32; [INFO] [stdout] 181 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/generated_img.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | / extern "C" { [INFO] [stdout] 143 | | pub fn load_jpg( [INFO] [stdout] 144 | | arg0: i32, [INFO] [stdout] 145 | | arg1: i32, [INFO] [stdout] ... | [INFO] [stdout] 160 | | ) -> i32; [INFO] [stdout] 161 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/generated_img.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | / extern "C" { [INFO] [stdout] 143 | | pub fn load_jpg( [INFO] [stdout] 144 | | arg0: i32, [INFO] [stdout] 145 | | arg1: i32, [INFO] [stdout] ... | [INFO] [stdout] 160 | | ) -> i32; [INFO] [stdout] 161 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tf.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tf.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tflite.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tf.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tflite.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tf.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_img.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_img.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tflite.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `ModelBuffer` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `ModelBuffer` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `Session` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `Session` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `Tensor` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `Tensor` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_tflite.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `TensorSize` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `TensorSize` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `TensorData` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `TensorData` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_img.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `create_session` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `create_session` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `delete_session` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `delete_session` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> src/generated_img.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `run_session` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `run_session` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `ModelBuffer` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `ModelBuffer` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `get_output_tensor` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `get_output_tensor` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `get_tensor_len` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `get_tensor_len` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `Session` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `Session` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `get_tensor_data` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `get_tensor_data` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `Tensor` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `Tensor` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `append_input` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `append_input` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `TensorSize` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `TensorSize` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `TensorData` in the type namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `TensorData` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `create_session` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `create_session` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `delete_session` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `delete_session` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `run_session` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `run_session` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `get_output_tensor` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `get_output_tensor` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `get_tensor_len` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `get_tensor_len` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `get_tensor_data` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `get_tensor_data` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use generated_tf::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `append_input` in the value namespace is first re-exported here [INFO] [stdout] 17 | pub use generated_tflite::*; [INFO] [stdout] | ------------------- but the name `append_input` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::create_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | let ret = wasmedge_tensorflow::create_session( [INFO] [stdout] | _______________^ [INFO] [stdout] 76 | | model_buffer.as_ptr() as i32, [INFO] [stdout] 77 | | model_buffer.len() as i32, [INFO] [stdout] 78 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 79 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | pub unsafe fn create_session(model_buffer: ModelBuffer<'_>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Session)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::create_session_saved_model` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | let ret = wasmedge_tensorflow::create_session_saved_model( [INFO] [stdout] | _______________^ [INFO] [stdout] 92 | | folder_path.as_ptr() as i32, [INFO] [stdout] 93 | | folder_path.len() as i32, [INFO] [stdout] 94 | | metagraph_tags.as_ptr() as i32, [INFO] [stdout] 95 | | metagraph_tags.len() as i32, [INFO] [stdout] 96 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 97 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | / pub unsafe fn create_session_saved_model( [INFO] [stdout] 87 | | folder_path: &str, [INFO] [stdout] 88 | | metagraph_tags: MetagraphTagList<'_>, [INFO] [stdout] 89 | | ) -> Result { [INFO] [stdout] | |_____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Session)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::delete_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:105:15 [INFO] [stdout] | [INFO] [stdout] 105 | let ret = wasmedge_tensorflow::delete_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | pub unsafe fn delete_session(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::run_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | let ret = wasmedge_tensorflow::run_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe fn run_session(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::get_output_tensor` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | let ret = wasmedge_tensorflow::get_output_tensor( [INFO] [stdout] | _______________^ [INFO] [stdout] 123 | | session as i32, [INFO] [stdout] 124 | | name.as_ptr() as i32, [INFO] [stdout] 125 | | name.len() as i32, [INFO] [stdout] 126 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 127 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | pub unsafe fn get_output_tensor(session: Session, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Tensor)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::get_tensor_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | wasmedge_tensorflow::get_tensor_len(session as i32, tensor as i32, rp0.as_mut_ptr() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / pub unsafe fn get_tensor_len( [INFO] [stdout] 135 | | session: Session, [INFO] [stdout] 136 | | tensor: Tensor, [INFO] [stdout] 137 | | ) -> Result { [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::get_tensor_data` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:154:15 [INFO] [stdout] | [INFO] [stdout] 154 | let ret = wasmedge_tensorflow::get_tensor_data( [INFO] [stdout] | _______________^ [INFO] [stdout] 155 | | session as i32, [INFO] [stdout] 156 | | tensor as i32, [INFO] [stdout] 157 | | tensor_buf as i32, [INFO] [stdout] 158 | | tensor_buf_max_size as i32, [INFO] [stdout] 159 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 160 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 147 | / pub unsafe fn get_tensor_data( [INFO] [stdout] 148 | | session: Session, [INFO] [stdout] 149 | | tensor: Tensor, [INFO] [stdout] 150 | | tensor_buf: *mut u8, [INFO] [stdout] 151 | | tensor_buf_max_size: TensorSize, [INFO] [stdout] 152 | | ) -> Result { [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::append_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:174:15 [INFO] [stdout] | [INFO] [stdout] 174 | let ret = wasmedge_tensorflow::append_input( [INFO] [stdout] | _______________^ [INFO] [stdout] 175 | | session as i32, [INFO] [stdout] 176 | | name.as_ptr() as i32, [INFO] [stdout] 177 | | name.len() as i32, [INFO] [stdout] ... | [INFO] [stdout] 182 | | tensor_buf.len() as i32, [INFO] [stdout] 183 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / pub unsafe fn append_input( [INFO] [stdout] 168 | | session: Session, [INFO] [stdout] 169 | | name: &str, [INFO] [stdout] 170 | | dimension: TensorDimensions<'_>, [INFO] [stdout] 171 | | data_type: TensorType, [INFO] [stdout] 172 | | tensor_buf: TensorData<'_>, [INFO] [stdout] 173 | | ) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::append_output` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | wasmedge_tensorflow::append_output(session as i32, name.as_ptr() as i32, name.len() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | pub unsafe fn append_output(session: Session, name: &str) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::clear_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:200:15 [INFO] [stdout] | [INFO] [stdout] 200 | let ret = wasmedge_tensorflow::clear_input(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:199:1 [INFO] [stdout] | [INFO] [stdout] 199 | pub unsafe fn clear_input(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::clear_output` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:208:15 [INFO] [stdout] | [INFO] [stdout] 208 | let ret = wasmedge_tensorflow::clear_output(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:207:1 [INFO] [stdout] | [INFO] [stdout] 207 | pub unsafe fn clear_output(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::create_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:73:15 [INFO] [stdout] | [INFO] [stdout] 73 | let ret = wasmedge_tensorflowlite::create_session( [INFO] [stdout] | _______________^ [INFO] [stdout] 74 | | model_buffer.as_ptr() as i32, [INFO] [stdout] 75 | | model_buffer.len() as i32, [INFO] [stdout] 76 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 77 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | / pub unsafe fn create_session( [INFO] [stdout] 70 | | model_buffer: ModelBuffer<'_>, [INFO] [stdout] 71 | | ) -> Result { [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Session)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::delete_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:85:15 [INFO] [stdout] | [INFO] [stdout] 85 | let ret = wasmedge_tensorflowlite::delete_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub unsafe fn delete_session(session: Session) -> Result<(), WasmedgeTfliteErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::run_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | let ret = wasmedge_tensorflowlite::run_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub unsafe fn run_session(session: Session) -> Result<(), WasmedgeTfliteErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::get_output_tensor` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:105:15 [INFO] [stdout] | [INFO] [stdout] 105 | let ret = wasmedge_tensorflowlite::get_output_tensor( [INFO] [stdout] | _______________^ [INFO] [stdout] 106 | | session as i32, [INFO] [stdout] 107 | | name.as_ptr() as i32, [INFO] [stdout] 108 | | name.len() as i32, [INFO] [stdout] 109 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 110 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 100 | / pub unsafe fn get_output_tensor( [INFO] [stdout] 101 | | session: Session, [INFO] [stdout] 102 | | name: &str, [INFO] [stdout] 103 | | ) -> Result { [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Tensor)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::get_tensor_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | let ret = wasmedge_tensorflowlite::get_tensor_len( [INFO] [stdout] | _______________^ [INFO] [stdout] 123 | | session as i32, [INFO] [stdout] 124 | | tensor as i32, [INFO] [stdout] 125 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 126 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | / pub unsafe fn get_tensor_len( [INFO] [stdout] 118 | | session: Session, [INFO] [stdout] 119 | | tensor: Tensor, [INFO] [stdout] 120 | | ) -> Result { [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::get_tensor_data` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:140:15 [INFO] [stdout] | [INFO] [stdout] 140 | let ret = wasmedge_tensorflowlite::get_tensor_data( [INFO] [stdout] | _______________^ [INFO] [stdout] 141 | | session as i32, [INFO] [stdout] 142 | | tensor as i32, [INFO] [stdout] 143 | | tensor_buf as i32, [INFO] [stdout] 144 | | tensor_buf_max_size as i32, [INFO] [stdout] 145 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 146 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | / pub unsafe fn get_tensor_data( [INFO] [stdout] 134 | | session: Session, [INFO] [stdout] 135 | | tensor: Tensor, [INFO] [stdout] 136 | | tensor_buf: *mut u8, [INFO] [stdout] 137 | | tensor_buf_max_size: TensorSize, [INFO] [stdout] 138 | | ) -> Result { [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::append_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:158:15 [INFO] [stdout] | [INFO] [stdout] 158 | let ret = wasmedge_tensorflowlite::append_input( [INFO] [stdout] | _______________^ [INFO] [stdout] 159 | | session as i32, [INFO] [stdout] 160 | | name.as_ptr() as i32, [INFO] [stdout] 161 | | name.len() as i32, [INFO] [stdout] 162 | | tensor_buf.as_ptr() as i32, [INFO] [stdout] 163 | | tensor_buf.len() as i32, [INFO] [stdout] 164 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:153:1 [INFO] [stdout] | [INFO] [stdout] 153 | / pub unsafe fn append_input( [INFO] [stdout] 154 | | session: Session, [INFO] [stdout] 155 | | name: &str, [INFO] [stdout] 156 | | tensor_buf: TensorData<'_>, [INFO] [stdout] 157 | | ) -> Result<(), WasmedgeTfliteErrno> { [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::create_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | let ret = wasmedge_tensorflow::create_session( [INFO] [stdout] | _______________^ [INFO] [stdout] 76 | | model_buffer.as_ptr() as i32, [INFO] [stdout] 77 | | model_buffer.len() as i32, [INFO] [stdout] 78 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 79 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | pub unsafe fn create_session(model_buffer: ModelBuffer<'_>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_img::wasmedge_image::load_jpg` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_img.rs:102:15 [INFO] [stdout] | [INFO] [stdout] 102 | let ret = wasmedge_image::load_jpg( [INFO] [stdout] | _______________^ [INFO] [stdout] 103 | | input_img_buffer.as_ptr() as i32, [INFO] [stdout] 104 | | input_img_buffer.len() as i32, [INFO] [stdout] 105 | | out_width as i32, [INFO] [stdout] ... | [INFO] [stdout] 109 | | output_buf_max_size as i32, [INFO] [stdout] 110 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_img.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | / pub unsafe fn load_jpg( [INFO] [stdout] 95 | | input_img_buffer: ImgBuffer<'_>, [INFO] [stdout] 96 | | out_width: u32, [INFO] [stdout] 97 | | out_height: u32, [INFO] [stdout] ... | [INFO] [stdout] 100 | | output_buf_max_size: BufMaxSize, [INFO] [stdout] 101 | | ) -> Result<(), WasmedgeImageErrno> { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_img::wasmedge_image::load_png` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_img.rs:125:15 [INFO] [stdout] | [INFO] [stdout] 125 | let ret = wasmedge_image::load_png( [INFO] [stdout] | _______________^ [INFO] [stdout] 126 | | input_img_buffer.as_ptr() as i32, [INFO] [stdout] 127 | | input_img_buffer.len() as i32, [INFO] [stdout] 128 | | out_width as i32, [INFO] [stdout] ... | [INFO] [stdout] 132 | | output_buf_max_size as i32, [INFO] [stdout] 133 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_img.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | / pub unsafe fn load_png( [INFO] [stdout] 118 | | input_img_buffer: ImgBuffer<'_>, [INFO] [stdout] 119 | | out_width: u32, [INFO] [stdout] 120 | | out_height: u32, [INFO] [stdout] ... | [INFO] [stdout] 123 | | output_buf_max_size: BufMaxSize, [INFO] [stdout] 124 | | ) -> Result<(), WasmedgeImageErrno> { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Session)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::create_session_saved_model` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | let ret = wasmedge_tensorflow::create_session_saved_model( [INFO] [stdout] | _______________^ [INFO] [stdout] 92 | | folder_path.as_ptr() as i32, [INFO] [stdout] 93 | | folder_path.len() as i32, [INFO] [stdout] 94 | | metagraph_tags.as_ptr() as i32, [INFO] [stdout] 95 | | metagraph_tags.len() as i32, [INFO] [stdout] 96 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 97 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | / pub unsafe fn create_session_saved_model( [INFO] [stdout] 87 | | folder_path: &str, [INFO] [stdout] 88 | | metagraph_tags: MetagraphTagList<'_>, [INFO] [stdout] 89 | | ) -> Result { [INFO] [stdout] | |_____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Session)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::delete_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:105:15 [INFO] [stdout] | [INFO] [stdout] 105 | let ret = wasmedge_tensorflow::delete_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | pub unsafe fn delete_session(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::run_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | let ret = wasmedge_tensorflow::run_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe fn run_session(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::get_output_tensor` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | let ret = wasmedge_tensorflow::get_output_tensor( [INFO] [stdout] | _______________^ [INFO] [stdout] 123 | | session as i32, [INFO] [stdout] 124 | | name.as_ptr() as i32, [INFO] [stdout] 125 | | name.len() as i32, [INFO] [stdout] 126 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 127 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | pub unsafe fn get_output_tensor(session: Session, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Tensor)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::get_tensor_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | wasmedge_tensorflow::get_tensor_len(session as i32, tensor as i32, rp0.as_mut_ptr() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / pub unsafe fn get_tensor_len( [INFO] [stdout] 135 | | session: Session, [INFO] [stdout] 136 | | tensor: Tensor, [INFO] [stdout] 137 | | ) -> Result { [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::get_tensor_data` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:154:15 [INFO] [stdout] | [INFO] [stdout] 154 | let ret = wasmedge_tensorflow::get_tensor_data( [INFO] [stdout] | _______________^ [INFO] [stdout] 155 | | session as i32, [INFO] [stdout] 156 | | tensor as i32, [INFO] [stdout] 157 | | tensor_buf as i32, [INFO] [stdout] 158 | | tensor_buf_max_size as i32, [INFO] [stdout] 159 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 160 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 147 | / pub unsafe fn get_tensor_data( [INFO] [stdout] 148 | | session: Session, [INFO] [stdout] 149 | | tensor: Tensor, [INFO] [stdout] 150 | | tensor_buf: *mut u8, [INFO] [stdout] 151 | | tensor_buf_max_size: TensorSize, [INFO] [stdout] 152 | | ) -> Result { [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::append_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:174:15 [INFO] [stdout] | [INFO] [stdout] 174 | let ret = wasmedge_tensorflow::append_input( [INFO] [stdout] | _______________^ [INFO] [stdout] 175 | | session as i32, [INFO] [stdout] 176 | | name.as_ptr() as i32, [INFO] [stdout] 177 | | name.len() as i32, [INFO] [stdout] ... | [INFO] [stdout] 182 | | tensor_buf.len() as i32, [INFO] [stdout] 183 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / pub unsafe fn append_input( [INFO] [stdout] 168 | | session: Session, [INFO] [stdout] 169 | | name: &str, [INFO] [stdout] 170 | | dimension: TensorDimensions<'_>, [INFO] [stdout] 171 | | data_type: TensorType, [INFO] [stdout] 172 | | tensor_buf: TensorData<'_>, [INFO] [stdout] 173 | | ) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::append_output` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | wasmedge_tensorflow::append_output(session as i32, name.as_ptr() as i32, name.len() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | pub unsafe fn append_output(session: Session, name: &str) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::clear_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:200:15 [INFO] [stdout] | [INFO] [stdout] 200 | let ret = wasmedge_tensorflow::clear_input(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:199:1 [INFO] [stdout] | [INFO] [stdout] 199 | pub unsafe fn clear_input(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tf::wasmedge_tensorflow::clear_output` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tf.rs:208:15 [INFO] [stdout] | [INFO] [stdout] 208 | let ret = wasmedge_tensorflow::clear_output(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tf.rs:207:1 [INFO] [stdout] | [INFO] [stdout] 207 | pub unsafe fn clear_output(session: Session) -> Result<(), WasmedgeTfErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::create_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:73:15 [INFO] [stdout] | [INFO] [stdout] 73 | let ret = wasmedge_tensorflowlite::create_session( [INFO] [stdout] | _______________^ [INFO] [stdout] 74 | | model_buffer.as_ptr() as i32, [INFO] [stdout] 75 | | model_buffer.len() as i32, [INFO] [stdout] 76 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 77 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | / pub unsafe fn create_session( [INFO] [stdout] 70 | | model_buffer: ModelBuffer<'_>, [INFO] [stdout] 71 | | ) -> Result { [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Session)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::delete_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:85:15 [INFO] [stdout] | [INFO] [stdout] 85 | let ret = wasmedge_tensorflowlite::delete_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub unsafe fn delete_session(session: Session) -> Result<(), WasmedgeTfliteErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::run_session` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | let ret = wasmedge_tensorflowlite::run_session(session as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub unsafe fn run_session(session: Session) -> Result<(), WasmedgeTfliteErrno> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `wasmedge_tensorflow_interface` (lib) due to 4 previous errors; 47 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::get_output_tensor` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:105:15 [INFO] [stdout] | [INFO] [stdout] 105 | let ret = wasmedge_tensorflowlite::get_output_tensor( [INFO] [stdout] | _______________^ [INFO] [stdout] 106 | | session as i32, [INFO] [stdout] 107 | | name.as_ptr() as i32, [INFO] [stdout] 108 | | name.len() as i32, [INFO] [stdout] 109 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 110 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 100 | / pub unsafe fn get_output_tensor( [INFO] [stdout] 101 | | session: Session, [INFO] [stdout] 102 | | name: &str, [INFO] [stdout] 103 | | ) -> Result { [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const Tensor)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::get_tensor_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | let ret = wasmedge_tensorflowlite::get_tensor_len( [INFO] [stdout] | _______________^ [INFO] [stdout] 123 | | session as i32, [INFO] [stdout] 124 | | tensor as i32, [INFO] [stdout] 125 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 126 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | / pub unsafe fn get_tensor_len( [INFO] [stdout] 118 | | session: Session, [INFO] [stdout] 119 | | tensor: Tensor, [INFO] [stdout] 120 | | ) -> Result { [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::get_tensor_data` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:140:15 [INFO] [stdout] | [INFO] [stdout] 140 | let ret = wasmedge_tensorflowlite::get_tensor_data( [INFO] [stdout] | _______________^ [INFO] [stdout] 141 | | session as i32, [INFO] [stdout] 142 | | tensor as i32, [INFO] [stdout] 143 | | tensor_buf as i32, [INFO] [stdout] 144 | | tensor_buf_max_size as i32, [INFO] [stdout] 145 | | rp0.as_mut_ptr() as i32, [INFO] [stdout] 146 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | / pub unsafe fn get_tensor_data( [INFO] [stdout] 134 | | session: Session, [INFO] [stdout] 135 | | tensor: Tensor, [INFO] [stdout] 136 | | tensor_buf: *mut u8, [INFO] [stdout] 137 | | tensor_buf_max_size: TensorSize, [INFO] [stdout] 138 | | ) -> Result { [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | 0 => Ok(core::ptr::read(rp0.as_mut_ptr() as i32 as *const TensorSize)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_tflite::wasmedge_tensorflowlite::append_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_tflite.rs:158:15 [INFO] [stdout] | [INFO] [stdout] 158 | let ret = wasmedge_tensorflowlite::append_input( [INFO] [stdout] | _______________^ [INFO] [stdout] 159 | | session as i32, [INFO] [stdout] 160 | | name.as_ptr() as i32, [INFO] [stdout] 161 | | name.len() as i32, [INFO] [stdout] 162 | | tensor_buf.as_ptr() as i32, [INFO] [stdout] 163 | | tensor_buf.len() as i32, [INFO] [stdout] 164 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_tflite.rs:153:1 [INFO] [stdout] | [INFO] [stdout] 153 | / pub unsafe fn append_input( [INFO] [stdout] 154 | | session: Session, [INFO] [stdout] 155 | | name: &str, [INFO] [stdout] 156 | | tensor_buf: TensorData<'_>, [INFO] [stdout] 157 | | ) -> Result<(), WasmedgeTfliteErrno> { [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_img::wasmedge_image::load_jpg` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_img.rs:102:15 [INFO] [stdout] | [INFO] [stdout] 102 | let ret = wasmedge_image::load_jpg( [INFO] [stdout] | _______________^ [INFO] [stdout] 103 | | input_img_buffer.as_ptr() as i32, [INFO] [stdout] 104 | | input_img_buffer.len() as i32, [INFO] [stdout] 105 | | out_width as i32, [INFO] [stdout] ... | [INFO] [stdout] 109 | | output_buf_max_size as i32, [INFO] [stdout] 110 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_img.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | / pub unsafe fn load_jpg( [INFO] [stdout] 95 | | input_img_buffer: ImgBuffer<'_>, [INFO] [stdout] 96 | | out_width: u32, [INFO] [stdout] 97 | | out_height: u32, [INFO] [stdout] ... | [INFO] [stdout] 100 | | output_buf_max_size: BufMaxSize, [INFO] [stdout] 101 | | ) -> Result<(), WasmedgeImageErrno> { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `generated_img::wasmedge_image::load_png` is unsafe and requires unsafe block [INFO] [stdout] --> src/generated_img.rs:125:15 [INFO] [stdout] | [INFO] [stdout] 125 | let ret = wasmedge_image::load_png( [INFO] [stdout] | _______________^ [INFO] [stdout] 126 | | input_img_buffer.as_ptr() as i32, [INFO] [stdout] 127 | | input_img_buffer.len() as i32, [INFO] [stdout] 128 | | out_width as i32, [INFO] [stdout] ... | [INFO] [stdout] 132 | | output_buf_max_size as i32, [INFO] [stdout] 133 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/generated_img.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | / pub unsafe fn load_png( [INFO] [stdout] 118 | | input_img_buffer: ImgBuffer<'_>, [INFO] [stdout] 119 | | out_width: u32, [INFO] [stdout] 120 | | out_height: u32, [INFO] [stdout] ... | [INFO] [stdout] 123 | | output_buf_max_size: BufMaxSize, [INFO] [stdout] 124 | | ) -> Result<(), WasmedgeImageErrno> { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wasmedge_tensorflow_interface` (lib test) due to 4 previous errors; 47 warnings emitted [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" "acdf652df6f4aff5a97d3f0bb7de95aa85db28247c6b6a7b09e4dca7f07e91fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acdf652df6f4aff5a97d3f0bb7de95aa85db28247c6b6a7b09e4dca7f07e91fd", kill_on_drop: false }` [INFO] [stdout] acdf652df6f4aff5a97d3f0bb7de95aa85db28247c6b6a7b09e4dca7f07e91fd