[INFO] fetching crate ort-tract 0.2.0+0.22... [INFO] checking ort-tract-0.2.0+0.22 against master#bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3 for pr-149328 [INFO] extracting crate ort-tract 0.2.0+0.22 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate ort-tract 0.2.0+0.22 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate ort-tract 0.2.0+0.22 [INFO] tweaked toml for crates.io crate ort-tract 0.2.0+0.22 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ort-tract 0.2.0+0.22 on toolchain bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate ort-tract 0.2.0+0.22 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tract-data v0.22.0 [INFO] [stderr] Downloaded tract-onnx-opl v0.22.0 [INFO] [stderr] Downloaded nom-language v0.1.0 [INFO] [stderr] Downloaded string-interner v0.15.0 [INFO] [stderr] Downloaded dyn-clone v1.0.18 [INFO] [stderr] Downloaded avif-serialize v0.8.2 [INFO] [stderr] Downloaded anymap3 v1.0.1 [INFO] [stderr] Downloaded ravif v0.11.11 [INFO] [stderr] Downloaded xattr v1.4.0 [INFO] [stderr] Downloaded built v0.7.5 [INFO] [stderr] Downloaded tar v0.4.43 [INFO] [stderr] Downloaded tract-hir v0.22.0 [INFO] [stderr] Downloaded cc v1.2.11 [INFO] [stderr] Downloaded toml_edit v0.22.23 [INFO] [stderr] Downloaded liquid-core v0.26.10 [INFO] [stderr] Downloaded winnow v0.7.0 [INFO] [stderr] Downloaded tract-core v0.22.0 [INFO] [stderr] Downloaded image v0.25.5 [INFO] [stderr] Downloaded tract-linalg v0.22.0 [INFO] [stderr] Downloaded syn v2.0.97 [INFO] [stderr] Downloaded ndarray v0.17.1 [INFO] [stderr] Downloaded rustfft v6.2.0 [INFO] [stderr] Downloaded liquid v0.26.10 [INFO] [stderr] Downloaded liquid-derive v0.26.9 [INFO] [stderr] Downloaded liquid-lib v0.26.10 [INFO] [stderr] Downloaded tract-nnef v0.22.0 [INFO] [stderr] Downloaded tract-onnx v0.22.0 [INFO] [stderr] Downloaded safetensors v0.6.2 [INFO] [stderr] Downloaded kstring v2.0.2 [INFO] [stderr] Downloaded pastey v0.1.1 [INFO] [stderr] Downloaded dyn-hash v0.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1a95f12924b89484932924c78a44e4fcef96ebf7ca792ba4ec729cc1a4f8a5db [INFO] running `Command { std: "docker" "start" "-a" "1a95f12924b89484932924c78a44e4fcef96ebf7ca792ba4ec729cc1a4f8a5db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1a95f12924b89484932924c78a44e4fcef96ebf7ca792ba4ec729cc1a4f8a5db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a95f12924b89484932924c78a44e4fcef96ebf7ca792ba4ec729cc1a4f8a5db", kill_on_drop: false }` [INFO] [stdout] 1a95f12924b89484932924c78a44e4fcef96ebf7ca792ba4ec729cc1a4f8a5db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 76aab94b1ba1a63fe2242cf719a908839e75eb3f9d7b1de218958e2a4c7df4fc [INFO] running `Command { std: "docker" "start" "-a" "76aab94b1ba1a63fe2242cf719a908839e75eb3f9d7b1de218958e2a4c7df4fc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cc v1.2.11 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking log v0.4.25 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling anymap2 v0.13.0 [INFO] [stderr] Compiling time-macros v0.2.19 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling tinyvec v1.8.1 [INFO] [stderr] Checking miniz_oxide v0.8.3 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Checking scan_fmt v0.2.6 [INFO] [stderr] Compiling rustfft v6.2.0 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking dyn-hash v0.2.1 [INFO] [stderr] Checking strength_reduce v0.2.4 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking dyn-clone v1.0.18 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking flate2 v1.0.35 [INFO] [stderr] Compiling syn v2.0.97 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling pastey v0.1.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Checking bitflags v2.8.0 [INFO] [stderr] Checking transpose v0.2.3 [INFO] [stderr] Checking primal-check v0.3.4 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Checking ndarray v0.16.1 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking anymap3 v1.0.1 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking filetime v0.2.25 [INFO] [stderr] Checking aligned-vec v0.5.0 [INFO] [stderr] Compiling built v0.7.5 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Compiling httparse v1.10.0 [INFO] [stderr] Checking rustls-pki-types v1.11.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking v_frame v0.3.8 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling rustls v0.23.22 [INFO] [stderr] Checking nom-language v0.1.0 [INFO] [stderr] Compiling ort-sys v2.0.0-rc.11 [INFO] [stderr] Checking http v1.2.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking imgref v1.11.0 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Checking bitstream-io v2.6.0 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking ureq-proto v0.5.3 [INFO] [stderr] Checking loop9 v0.1.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking webpki-roots v1.0.5 [INFO] [stderr] Checking avif-serialize v0.8.2 [INFO] [stderr] Checking memmap2 v0.9.5 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking fdeflate v0.3.7 [INFO] [stderr] Checking xattr v1.4.0 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Checking bytemuck v1.21.0 [INFO] [stderr] Checking av1-grain v0.2.3 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Checking tar v0.4.43 [INFO] [stderr] Checking zune-core v0.4.12 [INFO] [stderr] Checking rgb v0.8.50 [INFO] [stderr] Checking byteorder-lite v0.1.0 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Checking exr v1.73.0 [INFO] [stderr] Checking image-webp v0.2.1 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking zune-jpeg v0.4.14 [INFO] [stderr] Checking gif v0.13.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking ndarray v0.17.1 [INFO] [stderr] Checking tiff v0.9.1 [INFO] [stderr] Compiling derive-new v0.5.9 [INFO] [stderr] Compiling prost-derive v0.11.9 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling liquid-derive v0.26.9 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling profiling-procmacros v1.0.16 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Checking prost v0.11.9 [INFO] [stderr] Checking profiling v1.0.16 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling pest v2.7.15 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling pest_meta v2.7.15 [INFO] [stderr] Compiling pest_generator v2.7.15 [INFO] [stderr] Compiling pest_derive v2.7.15 [INFO] [stderr] Checking ureq v3.1.4 [INFO] [stderr] Checking ort v2.0.0-rc.11 [INFO] [stderr] Compiling kstring v2.0.2 [INFO] [stderr] Checking ravif v0.11.11 [INFO] [stderr] Compiling liquid-core v0.26.10 [INFO] [stderr] Checking image v0.25.5 [INFO] [stderr] Checking string-interner v0.15.0 [INFO] [stderr] Checking tract-data v0.22.0 [INFO] [stderr] Checking safetensors v0.6.2 [INFO] [stderr] Compiling liquid-lib v0.26.10 [INFO] [stderr] Compiling liquid v0.26.10 [INFO] [stderr] Compiling tract-linalg v0.22.0 [INFO] [stderr] Checking tract-core v0.22.0 [INFO] [stderr] Checking tract-nnef v0.22.0 [INFO] [stderr] Checking tract-hir v0.22.0 [INFO] [stderr] Checking tract-onnx-opl v0.22.0 [INFO] [stderr] Checking tract-onnx v0.22.0 [INFO] [stderr] Checking ort-tract v0.2.0+0.22 (/opt/rustwide/workdir) [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CString::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | let msg = CString::from_raw(msg.cast_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | unsafe extern "system" fn CreateStatus(code: OrtErrorCode, msg: *const ::std::os::raw::c_char) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ort_sys::stub::Error::cast_from_sys` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:24:2 [INFO] [stdout] | [INFO] [stdout] 24 | Error::cast_from_sys(status).code [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe extern "system" fn GetErrorCode(status: *const OrtStatus) -> OrtErrorCode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ort_sys::stub::Error::cast_from_sys` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:28:2 [INFO] [stdout] | [INFO] [stdout] 28 | Error::cast_from_sys(status).message_ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | unsafe extern "system" fn GetErrorMessage(status: *const OrtStatus) -> *const ::std::os::raw::c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:32:2 [INFO] [stdout] | [INFO] [stdout] 32 | *out = Environment::new_sys(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe extern "system" fn CreateEnv(_log_severity_level: OrtLoggingLevel, _logid: *const ::std::os::raw::c_char, out: *mut *mut OrtEnv) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:43:2 [INFO] [stdout] | [INFO] [stdout] 43 | *out = Environment::new_sys(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | / unsafe extern "system" fn CreateEnvWithCustomLogger( [INFO] [stdout] 37 | | _logging_function: OrtLoggingFunction, [INFO] [stdout] 38 | | _logger_param: *mut ::std::os::raw::c_void, [INFO] [stdout] 39 | | _log_severity_level: OrtLoggingLevel, [INFO] [stdout] 40 | | _logid: *const ::std::os::raw::c_char, [INFO] [stdout] 41 | | out: *mut *mut OrtEnv [INFO] [stdout] 42 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:64:34 [INFO] [stdout] | [INFO] [stdout] 64 | let len = (0..).take_while(|&i| *model_path.offset(i) != 0).count(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / unsafe extern "system" fn CreateSession( [INFO] [stdout] 56 | | env: *const OrtEnv, [INFO] [stdout] 57 | | model_path: *const os_char, [INFO] [stdout] 58 | | options: *const OrtSessionOptions, [INFO] [stdout] 59 | | out: *mut *mut OrtSession [INFO] [stdout] 60 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::offset` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:64:35 [INFO] [stdout] | [INFO] [stdout] 64 | let len = (0..).take_while(|&i| *model_path.offset(i) != 0).count(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let path = std::slice::from_raw_parts(model_path, len); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / unsafe extern "system" fn CreateSession( [INFO] [stdout] 56 | | env: *const OrtEnv, [INFO] [stdout] 57 | | model_path: *const os_char, [INFO] [stdout] 58 | | options: *const OrtSessionOptions, [INFO] [stdout] 59 | | out: *mut *mut OrtSession [INFO] [stdout] 60 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CString::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | let msg = CString::from_raw(msg.cast_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | unsafe extern "system" fn CreateStatus(code: OrtErrorCode, msg: *const ::std::os::raw::c_char) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::OsString::from_encoded_bytes_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let path = OsString::from_encoded_bytes_unchecked(path.iter().map(|c| *c as u8).collect::>()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | *out = (Box::leak(Box::new(session)) as *mut Session).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ort_sys::stub::Error::cast_from_sys` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:24:2 [INFO] [stdout] | [INFO] [stdout] 24 | Error::cast_from_sys(status).code [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe extern "system" fn GetErrorCode(status: *const OrtStatus) -> OrtErrorCode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ort_sys::stub::Error::cast_from_sys` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:28:2 [INFO] [stdout] | [INFO] [stdout] 28 | Error::cast_from_sys(status).message_ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | unsafe extern "system" fn GetErrorMessage(status: *const OrtStatus) -> *const ::std::os::raw::c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:32:2 [INFO] [stdout] | [INFO] [stdout] 32 | *out = Environment::new_sys(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe extern "system" fn CreateEnv(_log_severity_level: OrtLoggingLevel, _logid: *const ::std::os::raw::c_char, out: *mut *mut OrtEnv) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:43:2 [INFO] [stdout] | [INFO] [stdout] 43 | *out = Environment::new_sys(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | / unsafe extern "system" fn CreateEnvWithCustomLogger( [INFO] [stdout] 37 | | _logging_function: OrtLoggingFunction, [INFO] [stdout] 38 | | _logger_param: *mut ::std::os::raw::c_void, [INFO] [stdout] 39 | | _log_severity_level: OrtLoggingLevel, [INFO] [stdout] 40 | | _logid: *const ::std::os::raw::c_char, [INFO] [stdout] 41 | | out: *mut *mut OrtEnv [INFO] [stdout] 42 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:64:34 [INFO] [stdout] | [INFO] [stdout] 64 | let len = (0..).take_while(|&i| *model_path.offset(i) != 0).count(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / unsafe extern "system" fn CreateSession( [INFO] [stdout] 56 | | env: *const OrtEnv, [INFO] [stdout] 57 | | model_path: *const os_char, [INFO] [stdout] 58 | | options: *const OrtSessionOptions, [INFO] [stdout] 59 | | out: *mut *mut OrtSession [INFO] [stdout] 60 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::offset` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:64:35 [INFO] [stdout] | [INFO] [stdout] 64 | let len = (0..).take_while(|&i| *model_path.offset(i) != 0).count(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | let buf = std::slice::from_raw_parts(model_data.cast::(), model_data_length); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | / unsafe extern "system" fn CreateSessionFromArray( [INFO] [stdout] 89 | | env: *const OrtEnv, [INFO] [stdout] 90 | | model_data: *const ::std::os::raw::c_void, [INFO] [stdout] 91 | | model_data_length: usize, [INFO] [stdout] 92 | | options: *const OrtSessionOptions, [INFO] [stdout] 93 | | out: *mut *mut OrtSession [INFO] [stdout] 94 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | *out = (Box::leak(Box::new(session)) as *mut Session).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let path = std::slice::from_raw_parts(model_path, len); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / unsafe extern "system" fn CreateSession( [INFO] [stdout] 56 | | env: *const OrtEnv, [INFO] [stdout] 57 | | model_path: *const os_char, [INFO] [stdout] 58 | | options: *const OrtSessionOptions, [INFO] [stdout] 59 | | out: *mut *mut OrtSession [INFO] [stdout] 60 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::OsString::from_encoded_bytes_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let path = OsString::from_encoded_bytes_unchecked(path.iter().map(|c| *c as u8).collect::>()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | *out = (Box::leak(Box::new(session)) as *mut Session).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:121:38 [INFO] [stdout] | [INFO] [stdout] 121 | let inputs: Vec<(String, Tensor)> = std::slice::from_raw_parts(input_names, input_len) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / unsafe extern "system" fn Run( [INFO] [stdout] 110 | | session: *mut OrtSession, [INFO] [stdout] 111 | | _run_options: *const OrtRunOptions, [INFO] [stdout] 112 | | input_names: *const *const ::std::os::raw::c_char, [INFO] [stdout] ... | [INFO] [stdout] 117 | | output_ptrs: *mut *mut OrtValue [INFO] [stdout] 118 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | .zip(std::slice::from_raw_parts(inputs, input_len)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:133:36 [INFO] [stdout] | [INFO] [stdout] 133 | let output_names: Vec = std::slice::from_raw_parts(output_names, output_names_len) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:137:22 [INFO] [stdout] | [INFO] [stdout] 137 | let output_view = std::slice::from_raw_parts_mut(output_ptrs.cast::<*mut Tensor>(), output_names_len); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | let buf = std::slice::from_raw_parts(model_data.cast::(), model_data_length); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | / unsafe extern "system" fn CreateSessionFromArray( [INFO] [stdout] 89 | | env: *const OrtEnv, [INFO] [stdout] 90 | | model_data: *const ::std::os::raw::c_void, [INFO] [stdout] 91 | | model_data_length: usize, [INFO] [stdout] 92 | | options: *const OrtSessionOptions, [INFO] [stdout] 93 | | out: *mut *mut OrtSession [INFO] [stdout] 94 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | *out = (Box::leak(Box::new(session)) as *mut Session).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:121:38 [INFO] [stdout] | [INFO] [stdout] 121 | let inputs: Vec<(String, Tensor)> = std::slice::from_raw_parts(input_names, input_len) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / unsafe extern "system" fn Run( [INFO] [stdout] 110 | | session: *mut OrtSession, [INFO] [stdout] 111 | | _run_options: *const OrtRunOptions, [INFO] [stdout] 112 | | input_names: *const *const ::std::os::raw::c_char, [INFO] [stdout] ... | [INFO] [stdout] 117 | | output_ptrs: *mut *mut OrtValue [INFO] [stdout] 118 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | .zip(std::slice::from_raw_parts(inputs, input_len)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:133:36 [INFO] [stdout] | [INFO] [stdout] 133 | let output_names: Vec = std::slice::from_raw_parts(output_names, output_names_len) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:156:2 [INFO] [stdout] | [INFO] [stdout] 156 | *options = (Box::leak(Box::new(SessionOptions::default())) as *mut SessionOptions).cast(); [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:155:1 [INFO] [stdout] | [INFO] [stdout] 155 | unsafe extern "system" fn CreateSessionOptions(options: *mut *mut OrtSessionOptions) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:137:22 [INFO] [stdout] | [INFO] [stdout] 137 | let output_view = std::slice::from_raw_parts_mut(output_ptrs.cast::<*mut Tensor>(), output_names_len); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:162:2 [INFO] [stdout] | [INFO] [stdout] 162 | *out_options = (Box::leak(Box::new(options.clone())) as *mut SessionOptions).cast(); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:160:1 [INFO] [stdout] | [INFO] [stdout] 160 | unsafe extern "system" fn CloneSessionOptions(in_options: *const OrtSessionOptions, out_options: *mut *mut OrtSessionOptions) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:156:2 [INFO] [stdout] | [INFO] [stdout] 156 | *options = (Box::leak(Box::new(SessionOptions::default())) as *mut SessionOptions).cast(); [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:155:1 [INFO] [stdout] | [INFO] [stdout] 155 | unsafe extern "system" fn CreateSessionOptions(options: *mut *mut OrtSessionOptions) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:162:2 [INFO] [stdout] | [INFO] [stdout] 162 | *out_options = (Box::leak(Box::new(options.clone())) as *mut SessionOptions).cast(); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:160:1 [INFO] [stdout] | [INFO] [stdout] 160 | unsafe extern "system" fn CloneSessionOptions(in_options: *const OrtSessionOptions, out_options: *mut *mut OrtSessionOptions) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:174:2 [INFO] [stdout] | [INFO] [stdout] 174 | *out = session.inputs.len(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:172:1 [INFO] [stdout] | [INFO] [stdout] 172 | unsafe extern "system" fn SessionGetInputCount(session: *const OrtSession, out: *mut usize) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:180:2 [INFO] [stdout] | [INFO] [stdout] 180 | *out = session.outputs.len(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | unsafe extern "system" fn SessionGetOutputCount(session: *const OrtSession, out: *mut usize) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:185:2 [INFO] [stdout] | [INFO] [stdout] 185 | *out = 0; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:184:1 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe extern "system" fn SessionGetOverridableInitializerCount(_session: *const OrtSession, out: *mut usize) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:195:2 [INFO] [stdout] | [INFO] [stdout] 195 | *type_info = TypeInfo::new_sys( [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:189:1 [INFO] [stdout] | [INFO] [stdout] 189 | unsafe extern "system" fn SessionGetInputTypeInfo(session: *const OrtSession, index: usize, type_info: *mut *mut OrtTypeInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:215:2 [INFO] [stdout] | [INFO] [stdout] 215 | *type_info = TypeInfo::new_sys( [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:209:1 [INFO] [stdout] | [INFO] [stdout] 209 | unsafe extern "system" fn SessionGetOutputTypeInfo(session: *const OrtSession, index: usize, type_info: *mut *mut OrtTypeInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:174:2 [INFO] [stdout] | [INFO] [stdout] 174 | *out = session.inputs.len(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:172:1 [INFO] [stdout] | [INFO] [stdout] 172 | unsafe extern "system" fn SessionGetInputCount(session: *const OrtSession, out: *mut usize) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:240:2 [INFO] [stdout] | [INFO] [stdout] 240 | *value = name.into_raw(); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:229:1 [INFO] [stdout] | [INFO] [stdout] 229 | / unsafe extern "system" fn SessionGetInputName( [INFO] [stdout] 230 | | session: *const OrtSession, [INFO] [stdout] 231 | | index: usize, [INFO] [stdout] 232 | | _allocator: *mut OrtAllocator, [INFO] [stdout] 233 | | value: *mut *mut ::std::os::raw::c_char [INFO] [stdout] 234 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:255:2 [INFO] [stdout] | [INFO] [stdout] 255 | *value = name.into_raw(); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:244:1 [INFO] [stdout] | [INFO] [stdout] 244 | / unsafe extern "system" fn SessionGetOutputName( [INFO] [stdout] 245 | | session: *const OrtSession, [INFO] [stdout] 246 | | index: usize, [INFO] [stdout] 247 | | _allocator: *mut OrtAllocator, [INFO] [stdout] 248 | | value: *mut *mut ::std::os::raw::c_char [INFO] [stdout] 249 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:180:2 [INFO] [stdout] | [INFO] [stdout] 180 | *out = session.outputs.len(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | unsafe extern "system" fn SessionGetOutputCount(session: *const OrtSession, out: *mut usize) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:185:2 [INFO] [stdout] | [INFO] [stdout] 185 | *out = 0; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:184:1 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe extern "system" fn SessionGetOverridableInitializerCount(_session: *const OrtSession, out: *mut usize) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:195:2 [INFO] [stdout] | [INFO] [stdout] 195 | *type_info = TypeInfo::new_sys( [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:189:1 [INFO] [stdout] | [INFO] [stdout] 189 | unsafe extern "system" fn SessionGetInputTypeInfo(session: *const OrtSession, index: usize, type_info: *mut *mut OrtTypeInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:277:4 [INFO] [stdout] | [INFO] [stdout] 277 | *out = (Box::leak(Box::new(tensor)) as *mut Tensor).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:259:1 [INFO] [stdout] | [INFO] [stdout] 259 | / unsafe extern "system" fn CreateTensorAsOrtValue( [INFO] [stdout] 260 | | _allocator: *mut OrtAllocator, [INFO] [stdout] 261 | | shape: *const i64, [INFO] [stdout] 262 | | shape_len: usize, [INFO] [stdout] 263 | | type_: ONNXTensorElementDataType, [INFO] [stdout] 264 | | out: *mut *mut OrtValue [INFO] [stdout] 265 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:215:2 [INFO] [stdout] | [INFO] [stdout] 215 | *type_info = TypeInfo::new_sys( [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:209:1 [INFO] [stdout] | [INFO] [stdout] 209 | unsafe extern "system" fn SessionGetOutputTypeInfo(session: *const OrtSession, index: usize, type_info: *mut *mut OrtTypeInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:240:2 [INFO] [stdout] | [INFO] [stdout] 240 | *value = name.into_raw(); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:229:1 [INFO] [stdout] | [INFO] [stdout] 229 | / unsafe extern "system" fn SessionGetInputName( [INFO] [stdout] 230 | | session: *const OrtSession, [INFO] [stdout] 231 | | index: usize, [INFO] [stdout] 232 | | _allocator: *mut OrtAllocator, [INFO] [stdout] 233 | | value: *mut *mut ::std::os::raw::c_char [INFO] [stdout] 234 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:255:2 [INFO] [stdout] | [INFO] [stdout] 255 | *value = name.into_raw(); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:244:1 [INFO] [stdout] | [INFO] [stdout] 244 | / unsafe extern "system" fn SessionGetOutputName( [INFO] [stdout] 245 | | session: *const OrtSession, [INFO] [stdout] 246 | | index: usize, [INFO] [stdout] 247 | | _allocator: *mut OrtAllocator, [INFO] [stdout] 248 | | value: *mut *mut ::std::os::raw::c_char [INFO] [stdout] 249 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_onnx::prelude::Tensor::from_raw_dt` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 303 | match Tensor::from_raw_dt(dtype, &shape, data_slice) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 284 | / unsafe extern "system" fn CreateTensorWithDataAsOrtValue( [INFO] [stdout] 285 | | _info: *const OrtMemoryInfo, [INFO] [stdout] 286 | | p_data: *mut ::std::os::raw::c_void, [INFO] [stdout] 287 | | p_data_len: usize, [INFO] [stdout] ... | [INFO] [stdout] 291 | | out: *mut *mut OrtValue [INFO] [stdout] 292 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:277:4 [INFO] [stdout] | [INFO] [stdout] 277 | *out = (Box::leak(Box::new(tensor)) as *mut Tensor).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:259:1 [INFO] [stdout] | [INFO] [stdout] 259 | / unsafe extern "system" fn CreateTensorAsOrtValue( [INFO] [stdout] 260 | | _allocator: *mut OrtAllocator, [INFO] [stdout] 261 | | shape: *const i64, [INFO] [stdout] 262 | | shape_len: usize, [INFO] [stdout] 263 | | type_: ONNXTensorElementDataType, [INFO] [stdout] 264 | | out: *mut *mut OrtValue [INFO] [stdout] 265 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:305:4 [INFO] [stdout] | [INFO] [stdout] 305 | *out = (Box::leak(Box::new(tensor)) as *mut Tensor).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:313:2 [INFO] [stdout] | [INFO] [stdout] 313 | *out = 1; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:312:1 [INFO] [stdout] | [INFO] [stdout] 312 | unsafe extern "system" fn IsTensor(_value: *const OrtValue, out: *mut ::std::os::raw::c_int) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:319:2 [INFO] [stdout] | [INFO] [stdout] 319 | *out = tensor.as_bytes_mut().as_mut_ptr().cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:317:1 [INFO] [stdout] | [INFO] [stdout] 317 | unsafe extern "system" fn GetTensorMutableData(value: *mut OrtValue, out: *mut *mut ::std::os::raw::c_void) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:324:2 [INFO] [stdout] | [INFO] [stdout] 324 | *out = type_info.cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:323:1 [INFO] [stdout] | [INFO] [stdout] 323 | unsafe extern "system" fn CastTypeInfoToTensorInfo(type_info: *const OrtTypeInfo, out: *mut *const OrtTensorTypeAndShapeInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:329:2 [INFO] [stdout] | [INFO] [stdout] 329 | *out = ONNXType::ONNX_TYPE_TENSOR; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:328:1 [INFO] [stdout] | [INFO] [stdout] 328 | unsafe extern "system" fn GetOnnxTypeFromTypeInfo(_type_info: *const OrtTypeInfo, out: *mut ONNXType) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:334:2 [INFO] [stdout] | [INFO] [stdout] 334 | *out = TypeInfo::new_sys(DatumType::F32, Vec::new()).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:333:1 [INFO] [stdout] | [INFO] [stdout] 333 | unsafe extern "system" fn CreateTensorTypeAndShapeInfo(out: *mut *mut OrtTensorTypeAndShapeInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:357:2 [INFO] [stdout] | [INFO] [stdout] 357 | *out = convert_datum_type_to_sys(info.dtype); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:355:1 [INFO] [stdout] | [INFO] [stdout] 355 | unsafe extern "system" fn GetTensorElementType(info: *const OrtTensorTypeAndShapeInfo, out: *mut ONNXTensorElementDataType) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:363:2 [INFO] [stdout] | [INFO] [stdout] 363 | *out = info.shape.len(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:361:1 [INFO] [stdout] | [INFO] [stdout] 361 | unsafe extern "system" fn GetDimensionsCount(info: *const OrtTensorTypeAndShapeInfo, out: *mut usize) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tract_onnx::prelude::Tensor::from_raw_dt` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 303 | match Tensor::from_raw_dt(dtype, &shape, data_slice) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 284 | / unsafe extern "system" fn CreateTensorWithDataAsOrtValue( [INFO] [stdout] 285 | | _info: *const OrtMemoryInfo, [INFO] [stdout] 286 | | p_data: *mut ::std::os::raw::c_void, [INFO] [stdout] 287 | | p_data_len: usize, [INFO] [stdout] ... | [INFO] [stdout] 291 | | out: *mut *mut OrtValue [INFO] [stdout] 292 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:370:3 [INFO] [stdout] | [INFO] [stdout] 370 | *dim_values.add(i) = *dim as _; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | unsafe extern "system" fn GetDimensions(info: *const OrtTensorTypeAndShapeInfo, dim_values: *mut i64, dim_values_length: usize) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:305:4 [INFO] [stdout] | [INFO] [stdout] 305 | *out = (Box::leak(Box::new(tensor)) as *mut Tensor).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:370:4 [INFO] [stdout] | [INFO] [stdout] 370 | *dim_values.add(i) = *dim as _; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:313:2 [INFO] [stdout] | [INFO] [stdout] 313 | *out = 1; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:312:1 [INFO] [stdout] | [INFO] [stdout] 312 | unsafe extern "system" fn IsTensor(_value: *const OrtValue, out: *mut ::std::os::raw::c_int) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:381:3 [INFO] [stdout] | [INFO] [stdout] 381 | *dim_params.add(i) = c"".as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:375:1 [INFO] [stdout] | [INFO] [stdout] 375 | / unsafe extern "system" fn GetSymbolicDimensions( [INFO] [stdout] 376 | | _info: *const OrtTensorTypeAndShapeInfo, [INFO] [stdout] 377 | | dim_params: *mut *const ::std::os::raw::c_char, [INFO] [stdout] 378 | | dim_params_length: usize [INFO] [stdout] 379 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:319:2 [INFO] [stdout] | [INFO] [stdout] 319 | *out = tensor.as_bytes_mut().as_mut_ptr().cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:317:1 [INFO] [stdout] | [INFO] [stdout] 317 | unsafe extern "system" fn GetTensorMutableData(value: *mut OrtValue, out: *mut *mut ::std::os::raw::c_void) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:381:4 [INFO] [stdout] | [INFO] [stdout] 381 | *dim_params.add(i) = c"".as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:392:2 [INFO] [stdout] | [INFO] [stdout] 392 | *out = size; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:386:1 [INFO] [stdout] | [INFO] [stdout] 386 | unsafe extern "system" fn GetTensorShapeElementCount(info: *const OrtTensorTypeAndShapeInfo, out: *mut usize) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:324:2 [INFO] [stdout] | [INFO] [stdout] 324 | *out = type_info.cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:323:1 [INFO] [stdout] | [INFO] [stdout] 323 | unsafe extern "system" fn CastTypeInfoToTensorInfo(type_info: *const OrtTypeInfo, out: *mut *const OrtTensorTypeAndShapeInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:329:2 [INFO] [stdout] | [INFO] [stdout] 329 | *out = ONNXType::ONNX_TYPE_TENSOR; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:328:1 [INFO] [stdout] | [INFO] [stdout] 328 | unsafe extern "system" fn GetOnnxTypeFromTypeInfo(_type_info: *const OrtTypeInfo, out: *mut ONNXType) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:334:2 [INFO] [stdout] | [INFO] [stdout] 334 | *out = TypeInfo::new_sys(DatumType::F32, Vec::new()).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:333:1 [INFO] [stdout] | [INFO] [stdout] 333 | unsafe extern "system" fn CreateTensorTypeAndShapeInfo(out: *mut *mut OrtTensorTypeAndShapeInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:398:2 [INFO] [stdout] | [INFO] [stdout] 398 | *out = TypeInfo::new_sys(tensor.datum_type(), tensor.shape().iter().map(|c| *c as i64).collect()).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:396:1 [INFO] [stdout] | [INFO] [stdout] 396 | unsafe extern "system" fn GetTensorTypeAndShape(value: *const OrtValue, out: *mut *mut OrtTensorTypeAndShapeInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:404:2 [INFO] [stdout] | [INFO] [stdout] 404 | *out = TypeInfo::new_sys(tensor.datum_type(), tensor.shape().iter().map(|c| *c as i64).collect()); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:402:1 [INFO] [stdout] | [INFO] [stdout] 402 | unsafe extern "system" fn GetTypeInfo(value: *const OrtValue, out: *mut *mut OrtTypeInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:409:2 [INFO] [stdout] | [INFO] [stdout] 409 | *out = ONNXType::ONNX_TYPE_TENSOR; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:408:1 [INFO] [stdout] | [INFO] [stdout] 408 | unsafe extern "system" fn GetValueType(_value: *const OrtValue, out: *mut ONNXType) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:357:2 [INFO] [stdout] | [INFO] [stdout] 357 | *out = convert_datum_type_to_sys(info.dtype); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:355:1 [INFO] [stdout] | [INFO] [stdout] 355 | unsafe extern "system" fn GetTensorElementType(info: *const OrtTensorTypeAndShapeInfo, out: *mut ONNXTensorElementDataType) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:363:2 [INFO] [stdout] | [INFO] [stdout] 363 | *out = info.shape.len(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:361:1 [INFO] [stdout] | [INFO] [stdout] 361 | unsafe extern "system" fn GetDimensionsCount(info: *const OrtTensorTypeAndShapeInfo, out: *mut usize) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:370:3 [INFO] [stdout] | [INFO] [stdout] 370 | *dim_values.add(i) = *dim as _; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | unsafe extern "system" fn GetDimensions(info: *const OrtTensorTypeAndShapeInfo, dim_values: *mut i64, dim_values_length: usize) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:370:4 [INFO] [stdout] | [INFO] [stdout] 370 | *dim_values.add(i) = *dim as _; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:435:2 [INFO] [stdout] | [INFO] [stdout] 435 | *out = 0; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:434:1 [INFO] [stdout] | [INFO] [stdout] 434 | unsafe extern "system" fn CompareMemoryInfo(_info1: *const OrtMemoryInfo, _info2: *const OrtMemoryInfo, out: *mut ::std::os::raw::c_int) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:440:2 [INFO] [stdout] | [INFO] [stdout] 440 | *out = b"Cpu\0".as_ptr().cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:439:1 [INFO] [stdout] | [INFO] [stdout] 439 | unsafe extern "system" fn MemoryInfoGetName(_ptr: *const OrtMemoryInfo, out: *mut *const ::std::os::raw::c_char) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:445:2 [INFO] [stdout] | [INFO] [stdout] 445 | *out = 0; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:444:1 [INFO] [stdout] | [INFO] [stdout] 444 | unsafe extern "system" fn MemoryInfoGetId(_ptr: *const OrtMemoryInfo, out: *mut ::std::os::raw::c_int) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:450:2 [INFO] [stdout] | [INFO] [stdout] 450 | *out = OrtMemType::OrtMemTypeDefault; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:449:1 [INFO] [stdout] | [INFO] [stdout] 449 | unsafe extern "system" fn MemoryInfoGetMemType(_ptr: *const OrtMemoryInfo, out: *mut OrtMemType) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:455:2 [INFO] [stdout] | [INFO] [stdout] 455 | *out = OrtAllocatorType::OrtDeviceAllocator; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:454:1 [INFO] [stdout] | [INFO] [stdout] 454 | unsafe extern "system" fn MemoryInfoGetType(_ptr: *const OrtMemoryInfo, out: *mut OrtAllocatorType) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:381:3 [INFO] [stdout] | [INFO] [stdout] 381 | *dim_params.add(i) = c"".as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:375:1 [INFO] [stdout] | [INFO] [stdout] 375 | / unsafe extern "system" fn GetSymbolicDimensions( [INFO] [stdout] 376 | | _info: *const OrtTensorTypeAndShapeInfo, [INFO] [stdout] 377 | | dim_params: *mut *const ::std::os::raw::c_char, [INFO] [stdout] 378 | | dim_params_length: usize [INFO] [stdout] 379 | | ) -> OrtStatusPtr { [INFO] [stdout] | |_________________^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:381:4 [INFO] [stdout] | [INFO] [stdout] 381 | *dim_params.add(i) = c"".as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:392:2 [INFO] [stdout] | [INFO] [stdout] 392 | *out = size; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:386:1 [INFO] [stdout] | [INFO] [stdout] 386 | unsafe extern "system" fn GetTensorShapeElementCount(info: *const OrtTensorTypeAndShapeInfo, out: *mut usize) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:460:2 [INFO] [stdout] | [INFO] [stdout] 460 | *out = unsafe { &*ort_allocator }.Alloc.unwrap()(ort_allocator, size); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:459:1 [INFO] [stdout] | [INFO] [stdout] 459 | unsafe extern "system" fn AllocatorAlloc(ort_allocator: *mut OrtAllocator, size: usize, out: *mut *mut ::std::os::raw::c_void) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:460:9 [INFO] [stdout] | [INFO] [stdout] 460 | *out = unsafe { &*ort_allocator }.Alloc.unwrap()(ort_allocator, size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:468:2 [INFO] [stdout] | [INFO] [stdout] 468 | unsafe { &*ort_allocator }.Free.unwrap()(ort_allocator, p); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:467:1 [INFO] [stdout] | [INFO] [stdout] 467 | unsafe extern "system" fn AllocatorFree(ort_allocator: *mut OrtAllocator, p: *mut ::std::os::raw::c_void) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:473:2 [INFO] [stdout] | [INFO] [stdout] 473 | *out = unsafe { &*ort_allocator }.Info.unwrap()(ort_allocator); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:472:1 [INFO] [stdout] | [INFO] [stdout] 472 | unsafe extern "system" fn AllocatorGetInfo(ort_allocator: *const OrtAllocator, out: *mut *const OrtMemoryInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:473:9 [INFO] [stdout] | [INFO] [stdout] 473 | *out = unsafe { &*ort_allocator }.Info.unwrap()(ort_allocator); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:478:2 [INFO] [stdout] | [INFO] [stdout] 478 | *out = (&crate::memory::DEFAULT_CPU_ALLOCATOR as *const Allocator).cast_mut().cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:477:1 [INFO] [stdout] | [INFO] [stdout] 477 | unsafe extern "system" fn GetAllocatorWithDefaultOptions(out: *mut *mut OrtAllocator) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `Environment::consume_sys` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:483:7 [INFO] [stdout] | [INFO] [stdout] 483 | drop(Environment::consume_sys(input)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:482:1 [INFO] [stdout] | [INFO] [stdout] 482 | unsafe extern "system" fn ReleaseEnv(input: *mut OrtEnv) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ort_sys::stub::Error::consume_sys` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:487:7 [INFO] [stdout] | [INFO] [stdout] 487 | drop(Error::consume_sys(input)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:486:1 [INFO] [stdout] | [INFO] [stdout] 486 | unsafe extern "system" fn ReleaseStatus(input: *mut OrtStatus) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tensor::TypeInfo::consume_sys` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:499:7 [INFO] [stdout] | [INFO] [stdout] 499 | drop(TypeInfo::consume_sys(input)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:498:1 [INFO] [stdout] | [INFO] [stdout] 498 | unsafe extern "system" fn ReleaseTypeInfo(input: *mut OrtTypeInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tensor::TypeInfo::consume_sys` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:503:7 [INFO] [stdout] | [INFO] [stdout] 503 | drop(TypeInfo::consume_sys(input.cast())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:502:1 [INFO] [stdout] | [INFO] [stdout] 502 | unsafe extern "system" fn ReleaseTensorTypeAndShapeInfo(input: *mut OrtTensorTypeAndShapeInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:507:7 [INFO] [stdout] | [INFO] [stdout] 507 | drop(Box::from_raw(input.cast::())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:506:1 [INFO] [stdout] | [INFO] [stdout] 506 | unsafe extern "system" fn ReleaseSessionOptions(input: *mut OrtSessionOptions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:511:2 [INFO] [stdout] | [INFO] [stdout] 511 | *out = (Box::leak(Box::new(Allocator::new())) as *mut Allocator).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:510:1 [INFO] [stdout] | [INFO] [stdout] 510 | unsafe extern "system" fn CreateAllocator(_session: *const OrtSession, _mem_info: *const OrtMemoryInfo, out: *mut *mut OrtAllocator) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:516:7 [INFO] [stdout] | [INFO] [stdout] 516 | drop(Box::from_raw(input.cast::())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:515:1 [INFO] [stdout] | [INFO] [stdout] 515 | unsafe extern "system" fn ReleaseAllocator(input: *mut OrtAllocator) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:520:2 [INFO] [stdout] | [INFO] [stdout] 520 | *mem_info = ptr::dangling(); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:519:1 [INFO] [stdout] | [INFO] [stdout] 519 | unsafe extern "system" fn GetTensorMemoryInfo(_value: *const OrtValue, mem_info: *mut *const OrtMemoryInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CString::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> memory.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | drop(CString::from_raw(p.cast())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> memory.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | unsafe extern "system" fn sys_allocator_free(_this: *mut ort_sys::OrtAllocator, p: *mut ::std::os::raw::c_void) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:398:2 [INFO] [stdout] | [INFO] [stdout] 398 | *out = TypeInfo::new_sys(tensor.datum_type(), tensor.shape().iter().map(|c| *c as i64).collect()).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:396:1 [INFO] [stdout] | [INFO] [stdout] 396 | unsafe extern "system" fn GetTensorTypeAndShape(value: *const OrtValue, out: *mut *mut OrtTensorTypeAndShapeInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:404:2 [INFO] [stdout] | [INFO] [stdout] 404 | *out = TypeInfo::new_sys(tensor.datum_type(), tensor.shape().iter().map(|c| *c as i64).collect()); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:402:1 [INFO] [stdout] | [INFO] [stdout] 402 | unsafe extern "system" fn GetTypeInfo(value: *const OrtValue, out: *mut *mut OrtTypeInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:409:2 [INFO] [stdout] | [INFO] [stdout] 409 | *out = ONNXType::ONNX_TYPE_TENSOR; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:408:1 [INFO] [stdout] | [INFO] [stdout] 408 | unsafe extern "system" fn GetValueType(_value: *const OrtValue, out: *mut ONNXType) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:435:2 [INFO] [stdout] | [INFO] [stdout] 435 | *out = 0; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:434:1 [INFO] [stdout] | [INFO] [stdout] 434 | unsafe extern "system" fn CompareMemoryInfo(_info1: *const OrtMemoryInfo, _info2: *const OrtMemoryInfo, out: *mut ::std::os::raw::c_int) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:440:2 [INFO] [stdout] | [INFO] [stdout] 440 | *out = b"Cpu\0".as_ptr().cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:439:1 [INFO] [stdout] | [INFO] [stdout] 439 | unsafe extern "system" fn MemoryInfoGetName(_ptr: *const OrtMemoryInfo, out: *mut *const ::std::os::raw::c_char) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:445:2 [INFO] [stdout] | [INFO] [stdout] 445 | *out = 0; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:444:1 [INFO] [stdout] | [INFO] [stdout] 444 | unsafe extern "system" fn MemoryInfoGetId(_ptr: *const OrtMemoryInfo, out: *mut ::std::os::raw::c_int) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:450:2 [INFO] [stdout] | [INFO] [stdout] 450 | *out = OrtMemType::OrtMemTypeDefault; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:449:1 [INFO] [stdout] | [INFO] [stdout] 449 | unsafe extern "system" fn MemoryInfoGetMemType(_ptr: *const OrtMemoryInfo, out: *mut OrtMemType) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:455:2 [INFO] [stdout] | [INFO] [stdout] 455 | *out = OrtAllocatorType::OrtDeviceAllocator; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:454:1 [INFO] [stdout] | [INFO] [stdout] 454 | unsafe extern "system" fn MemoryInfoGetType(_ptr: *const OrtMemoryInfo, out: *mut OrtAllocatorType) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:460:2 [INFO] [stdout] | [INFO] [stdout] 460 | *out = unsafe { &*ort_allocator }.Alloc.unwrap()(ort_allocator, size); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:459:1 [INFO] [stdout] | [INFO] [stdout] 459 | unsafe extern "system" fn AllocatorAlloc(ort_allocator: *mut OrtAllocator, size: usize, out: *mut *mut ::std::os::raw::c_void) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:460:9 [INFO] [stdout] | [INFO] [stdout] 460 | *out = unsafe { &*ort_allocator }.Alloc.unwrap()(ort_allocator, size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:468:2 [INFO] [stdout] | [INFO] [stdout] 468 | unsafe { &*ort_allocator }.Free.unwrap()(ort_allocator, p); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:467:1 [INFO] [stdout] | [INFO] [stdout] 467 | unsafe extern "system" fn AllocatorFree(ort_allocator: *mut OrtAllocator, p: *mut ::std::os::raw::c_void) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:473:2 [INFO] [stdout] | [INFO] [stdout] 473 | *out = unsafe { &*ort_allocator }.Info.unwrap()(ort_allocator); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:472:1 [INFO] [stdout] | [INFO] [stdout] 472 | unsafe extern "system" fn AllocatorGetInfo(ort_allocator: *const OrtAllocator, out: *mut *const OrtMemoryInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:473:9 [INFO] [stdout] | [INFO] [stdout] 473 | *out = unsafe { &*ort_allocator }.Info.unwrap()(ort_allocator); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:478:2 [INFO] [stdout] | [INFO] [stdout] 478 | *out = (&crate::memory::DEFAULT_CPU_ALLOCATOR as *const Allocator).cast_mut().cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:477:1 [INFO] [stdout] | [INFO] [stdout] 477 | unsafe extern "system" fn GetAllocatorWithDefaultOptions(out: *mut *mut OrtAllocator) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `Environment::consume_sys` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:483:7 [INFO] [stdout] | [INFO] [stdout] 483 | drop(Environment::consume_sys(input)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:482:1 [INFO] [stdout] | [INFO] [stdout] 482 | unsafe extern "system" fn ReleaseEnv(input: *mut OrtEnv) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ort_sys::stub::Error::consume_sys` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:487:7 [INFO] [stdout] | [INFO] [stdout] 487 | drop(Error::consume_sys(input)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:486:1 [INFO] [stdout] | [INFO] [stdout] 486 | unsafe extern "system" fn ReleaseStatus(input: *mut OrtStatus) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tensor::TypeInfo::consume_sys` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:499:7 [INFO] [stdout] | [INFO] [stdout] 499 | drop(TypeInfo::consume_sys(input)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:498:1 [INFO] [stdout] | [INFO] [stdout] 498 | unsafe extern "system" fn ReleaseTypeInfo(input: *mut OrtTypeInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `tensor::TypeInfo::consume_sys` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:503:7 [INFO] [stdout] | [INFO] [stdout] 503 | drop(TypeInfo::consume_sys(input.cast())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:502:1 [INFO] [stdout] | [INFO] [stdout] 502 | unsafe extern "system" fn ReleaseTensorTypeAndShapeInfo(input: *mut OrtTensorTypeAndShapeInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:507:7 [INFO] [stdout] | [INFO] [stdout] 507 | drop(Box::from_raw(input.cast::())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:506:1 [INFO] [stdout] | [INFO] [stdout] 506 | unsafe extern "system" fn ReleaseSessionOptions(input: *mut OrtSessionOptions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:511:2 [INFO] [stdout] | [INFO] [stdout] 511 | *out = (Box::leak(Box::new(Allocator::new())) as *mut Allocator).cast(); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:510:1 [INFO] [stdout] | [INFO] [stdout] 510 | unsafe extern "system" fn CreateAllocator(_session: *const OrtSession, _mem_info: *const OrtMemoryInfo, out: *mut *mut OrtAllocator) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> tensor.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | Box::from_raw(ptr.cast::()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> tensor.rs:13:2 [INFO] [stdout] | [INFO] [stdout] 13 | pub unsafe fn consume_sys(ptr: *mut ort_sys::OrtTypeInfo) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:516:7 [INFO] [stdout] | [INFO] [stdout] 516 | drop(Box::from_raw(input.cast::())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> api.rs:515:1 [INFO] [stdout] | [INFO] [stdout] 515 | unsafe extern "system" fn ReleaseAllocator(input: *mut OrtAllocator) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> lib.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | Box::from_raw(ptr.cast::()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> lib.rs:22:2 [INFO] [stdout] | [INFO] [stdout] 22 | pub unsafe fn consume_sys(ptr: *mut ort_sys::OrtEnv) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> api.rs:520:2 [INFO] [stdout] | [INFO] [stdout] 520 | *mem_info = ptr::dangling(); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> api.rs:519:1 [INFO] [stdout] | [INFO] [stdout] 519 | unsafe extern "system" fn GetTensorMemoryInfo(_value: *const OrtValue, mem_info: *mut *const OrtMemoryInfo) -> OrtStatusPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CString::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> memory.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | drop(CString::from_raw(p.cast())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> memory.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | unsafe extern "system" fn sys_allocator_free(_this: *mut ort_sys::OrtAllocator, p: *mut ::std::os::raw::c_void) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [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 `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> tensor.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | Box::from_raw(ptr.cast::()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> tensor.rs:13:2 [INFO] [stdout] | [INFO] [stdout] 13 | pub unsafe fn consume_sys(ptr: *mut ort_sys::OrtTypeInfo) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> lib.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | Box::from_raw(ptr.cast::()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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] --> lib.rs:22:2 [INFO] [stdout] | [INFO] [stdout] 22 | pub unsafe fn consume_sys(ptr: *mut ort_sys::OrtEnv) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [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 1m 19s [INFO] running `Command { std: "docker" "inspect" "76aab94b1ba1a63fe2242cf719a908839e75eb3f9d7b1de218958e2a4c7df4fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76aab94b1ba1a63fe2242cf719a908839e75eb3f9d7b1de218958e2a4c7df4fc", kill_on_drop: false }` [INFO] [stdout] 76aab94b1ba1a63fe2242cf719a908839e75eb3f9d7b1de218958e2a4c7df4fc