[INFO] fetching crate catboost-portable-sys 0.1.2... [INFO] checking catboost-portable-sys-0.1.2 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate catboost-portable-sys 0.1.2 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate catboost-portable-sys 0.1.2 on toolchain 65132f36b923285d5da381c2fbafee6ce899e841 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate catboost-portable-sys 0.1.2 [INFO] finished tweaking crates.io crate catboost-portable-sys 0.1.2 [INFO] tweaked toml for crates.io crate catboost-portable-sys 0.1.2 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 69 packages to latest compatible versions [INFO] [stderr] Adding bindgen v0.59.2 (available: v0.70.1) [INFO] [stderr] Adding zstd v0.11.2+zstd.1.5.2 (available: v0.13.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf82b02861b28b5edfa356a3a9eb44211b0e46139e22beb303647331250723d2 [INFO] running `Command { std: "docker" "start" "-a" "cf82b02861b28b5edfa356a3a9eb44211b0e46139e22beb303647331250723d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf82b02861b28b5edfa356a3a9eb44211b0e46139e22beb303647331250723d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf82b02861b28b5edfa356a3a9eb44211b0e46139e22beb303647331250723d2", kill_on_drop: false }` [INFO] [stdout] cf82b02861b28b5edfa356a3a9eb44211b0e46139e22beb303647331250723d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fef5bb69f20bb70a72b92e3f9e1f51eb73baacbdc4c37e22fd5b6a7acd449a93 [INFO] running `Command { std: "docker" "start" "-a" "fef5bb69f20bb70a72b92e3f9e1f51eb73baacbdc4c37e22fd5b6a7acd449a93", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.164 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling rustix v0.38.41 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling bindgen v0.59.2 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling cc v1.2.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling xattr v1.3.1 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling tar v0.4.43 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Compiling catboost-portable-sys v0.1.2 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs (36 fixes) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.31s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling catboost-portable-sys v0.1.2 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:1501 [INFO] [stdout] | [INFO] [stdout] 3 | ... ; extern "C" { # [doc = " Create empty data wrapper"] # [doc = " @return"] pub fn DataWrapperCreate (docsCount : size_t) -> * mut DataWrapperHandle ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:1651 [INFO] [stdout] | [INFO] [stdout] 3 | ... DataWrapperHandle ; } extern "C" { pub fn DataWrapperDelete (dataWrapperHandle : * mut DataWrapperHandle) ; } extern "C" { pub fn Add... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:1739 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn AddFloatFeatures (dataWrapperHandle : * mut DataWrapperHandle , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t) ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:1891 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn AddCatFeatures (dataWrapperHandle : * mut DataWrapperHandle , catFeatures : * mut * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t) ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:2069 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn AddTextFeatures (dataWrapperHandle : * mut DataWrapperHandle , textFeatures : * mut * mut * const :: std :: os :: raw :: c_char , textFeaturesSize : size_t) ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:2250 [INFO] [stdout] | [INFO] [stdout] 3 | ...e_t) ; } extern "C" { pub fn BuildDataProvider (dataWrapperHandle : * mut DataWrapperHandle) -> * mut DataProviderHandle ; } pub type ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:2854 [INFO] [stdout] | [INFO] [stdout] 3 | ... ; extern "C" { # [doc = " Create empty model handle"] # [doc = " @return"] pub fn ModelCalcerCreate () -> * mut ModelCalcerHandle ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:2986 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Delete model handle"] # [doc = " @param calcer"] pub fn ModelCalcerDelete (modelHandle : * mut ModelCalcerHandle) ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:1501 [INFO] [stdout] | [INFO] [stdout] 3 | ... ; extern "C" { # [doc = " Create empty data wrapper"] # [doc = " @return"] pub fn DataWrapperCreate (docsCount : size_t) -> * mut DataWrapperHandle ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:3128 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " If error occured will return stored exception message."] # [doc = " If no error occured, will return invalid pointer"] # [doc = " @return"] pub fn GetErrorString () -> * const :: std :: os :: raw :: c_char ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:1651 [INFO] [stdout] | [INFO] [stdout] 3 | ... DataWrapperHandle ; } extern "C" { pub fn DataWrapperDelete (dataWrapperHandle : * mut DataWrapperHandle) ; } extern "C" { pub fn Add... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:3362 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Load model from file into given model handle"] # [doc = " @param calcer"] # [doc = " @param filename"] # [doc = " @return false if error occured"] pub fn LoadFullModelFromFile (modelHandle : * mut ModelCalcerHandle , filename : * const :: std :: os :: raw :: c_char) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:1739 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn AddFloatFeatures (dataWrapperHandle : * mut DataWrapperHandle , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t) ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:3665 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Load model from memory buffer into given model handle"] # [doc = " @param calcer"] # [doc = " @param binaryBuffer pointer to a memory buffer where model file is mapped"] # [doc = " @param binaryBufferSize size of the buffer in bytes"] # [doc = " @return false if error occured"] pub fn LoadFullModelFromBuffer (modelHandle : * mut ModelCalcerHandle , binaryBuffer : * const :: std :: os :: raw :: c_void , binaryBufferSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:1891 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn AddCatFeatures (dataWrapperHandle : * mut DataWrapperHandle , catFeatures : * mut * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t) ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:4134 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Use CUDA gpu device for model evaluation"] pub fn EnableGPUEvaluation (modelHandle : * mut ModelCalcerHandle , deviceId : :: std :: os :: raw :: c_int) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:2069 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn AddTextFeatures (dataWrapperHandle : * mut DataWrapperHandle , textFeatures : * mut * mut * const :: std :: os :: raw :: c_char , textFeaturesSize : size_t) ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:2250 [INFO] [stdout] | [INFO] [stdout] 3 | ...e_t) ; } extern "C" { pub fn BuildDataProvider (dataWrapperHandle : * mut DataWrapperHandle) -> * mut DataProviderHandle ; } pub type ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:4322 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Set prediction type for model evaluation"] pub fn SetPredictionType (modelHandle : * mut ModelCalcerHandle , predictionType : EApiPredictionType) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:2854 [INFO] [stdout] | [INFO] [stdout] 3 | ... ; extern "C" { # [doc = " Create empty model handle"] # [doc = " @return"] pub fn ModelCalcerCreate () -> * mut ModelCalcerHandle ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:4504 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Set prediction type for model evaluation with string constant"] pub fn SetPredictionTypeString (modelHandle : * mut ModelCalcerHandle , predictionTypeStr : * const :: std :: os :: raw :: c_char) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:2986 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Delete model handle"] # [doc = " @param calcer"] pub fn ModelCalcerDelete (modelHandle : * mut ModelCalcerHandle) ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:4735 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " **Use this method only if you really understand what you want.**"] # [doc = " Calculate raw model predictions on flat feature vectors"] # [doc = " Flat here means that float features and categorical feature are in the same float array."] # [doc = " @param calcer model handle"] # [doc = " @param docCount number of objects"] # [doc = " @param floatFeatures array of array of float (first dimension is object index, second if feature index)"] # [doc = " @param floatFeaturesSize float values array size"] # [doc = " @param result pointer to user allocated results vector"] # [doc = " @param resultSize Result size should be equal to modelApproxDimension * docCount"] # [doc = " (e.g. for non multiclass models should be equal to docCount)"] # [doc = " @return false if error occured"] pub fn CalcModelPredictionFlat (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:3128 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " If error occured will return stored exception message."] # [doc = " If no error occured, will return invalid pointer"] # [doc = " @return"] pub fn GetErrorString () -> * const :: std :: os :: raw :: c_char ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:3362 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Load model from file into given model handle"] # [doc = " @param calcer"] # [doc = " @param filename"] # [doc = " @return false if error occured"] pub fn LoadFullModelFromFile (modelHandle : * mut ModelCalcerHandle , filename : * const :: std :: os :: raw :: c_char) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:5754 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Calculate raw model predictions on float features and string categorical feature values"] # [doc = " @param calcer model handle"] # [doc = " @param docCount object count"] # [doc = " @param floatFeatures array of array of float (first dimension is object index, second is feature index)"] # [doc = " @param floatFeaturesSize float feature count"] # [doc = " @param catFeatures array of array of char* categorical value pointers."] # [doc = " String pointer should point to zero terminated string."] # [doc = " @param catFeaturesSize categorical feature count"] # [doc = " @param result pointer to user allocated results vector"] # [doc = " @param resultSize result size should be equal to modelApproxDimension * docCount"] # [doc = " (e.g. for non multiclass models should be equal to docCount)"] # [doc = " @return false if error occured"] pub fn CalcModelPrediction (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:3665 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Load model from memory buffer into given model handle"] # [doc = " @param calcer"] # [doc = " @param binaryBuffer pointer to a memory buffer where model file is mapped"] # [doc = " @param binaryBufferSize size of the buffer in bytes"] # [doc = " @return false if error occured"] pub fn LoadFullModelFromBuffer (modelHandle : * mut ModelCalcerHandle , binaryBuffer : * const :: std :: os :: raw :: c_void , binaryBufferSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:6919 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Calculate raw model predictions on float features and string categorical feature values"] # [doc = " @param calcer model handle"] # [doc = " @param docCount object count"] # [doc = " @param floatFeatures array of array of float (first dimension is object index, second is feature index)"] # [doc = " @param floatFeaturesSize float feature count"] # [doc = " @param catFeatures array of array of char* categorical value pointers."] # [doc = " String pointer should point to zero terminated string."] # [doc = " @param catFeaturesSize categorical feature count"] # [doc = " @param textFeatures array of array of char* text value pointers."] # [doc = " String pointer should point to zero terminated string."] # [doc = " @param textFeaturesSize text feature count"] # [doc = " @param result pointer to user allocated results vector"] # [doc = " @param resultSize result size should be equal to modelApproxDimension * docCount"] # [doc = " (e.g. for non multiclass models should be equal to docCount)"] # [doc = " @return false if error occured"] pub fn CalcModelPredictionText (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t , textFeatures : * mut * mut * const :: std :: os :: raw :: c_char , textFeaturesSize : size_t , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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t/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:4134 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Use CUDA gpu device for model evaluation"] pub fn EnableGPUEvaluation (modelHandle : * mut ModelCalcerHandle , deviceId : :: std :: os :: raw :: c_int) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:8385 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Calculate raw model prediction on float features and string categorical feature values for single object"] # [doc = " @param calcer model handle"] # [doc = " @param floatFeatures array of float features"] # [doc = " @param floatFeaturesSize float feature count"] # [doc = " @param catFeatures array of char* categorical feature value pointers."] # [doc = " Each string pointer should point to zero terminated string."] # [doc = " @param catFeaturesSize categorical feature count"] # [doc = " @param result pointer to user allocated results vector (or single double)"] # [doc = " @param resultSize result size should be equal to modelApproxDimension"] # [doc = " (e.g. for non multiclass models should be equal to 1)"] # [doc = " @return false if error occured"] pub fn CalcModelPredictionSingle (modelHandle : * mut ModelCalcerHandle , floatFeatures : * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:4322 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Set prediction type for model evaluation"] pub fn SetPredictionType (modelHandle : * mut ModelCalcerHandle , predictionType : EApiPredictionType) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:4504 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Set prediction type for model evaluation with string constant"] pub fn SetPredictionTypeString (modelHandle : * mut ModelCalcerHandle , predictionTypeStr : * const :: std :: os :: raw :: c_char) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:9445 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Calculate raw model predictions on float features and hashed categorical feature values"] # [doc = " @param calcer model handle"] # [doc = " @param docCount object count"] # [doc = " @param floatFeatures array of array of float (first dimension is object index, second if feature index)"] # [doc = " @param floatFeaturesSize float feature count"] # [doc = " @param catFeatures array of array of integers - hashed categorical feature values."] # [doc = " @param catFeaturesSize categorical feature count"] # [doc = " @param result pointer to user allocated results vector"] # [doc = " @param resultSize result size should be equal to modelApproxDimension * docCount"] # [doc = " (e.g. for non multiclass models should be equal to docCount)"] # [doc = " @return false if error occured"] pub fn CalcModelPredictionWithHashedCatFeatures (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * const :: std :: os :: raw :: c_int , catFeaturesSize : size_t , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:4735 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " **Use this method only if you really understand what you want.**"] # [doc = " Calculate raw model predictions on flat feature vectors"] # [doc = " Flat here means that float features and categorical feature are in the same float array."] # [doc = " @param calcer model handle"] # [doc = " @param docCount number of objects"] # [doc = " @param floatFeatures array of array of float (first dimension is object index, second if feature index)"] # [doc = " @param floatFeaturesSize float values array size"] # [doc = " @param result pointer to user allocated results vector"] # [doc = " @param resultSize Result size should be equal to modelApproxDimension * docCount"] # [doc = " (e.g. for non multiclass models should be equal to docCount)"] # [doc = " @return false if error occured"] pub fn CalcModelPredictionFlat (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^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dout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:10568 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn CalcModelPredictionWithHashedCatFeaturesAndTextFeatures (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * const :: std :: os :: raw :: c_int , catFeaturesSize : size_t , textFeatures : * mut * mut * const :: std :: os :: raw :: c_char , textFeaturesSize : size_t , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:5754 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Calculate raw model predictions on float features and string categorical feature values"] # [doc = " @param calcer model handle"] # [doc = " @param docCount object count"] # [doc = " @param floatFeatures array of array of float (first dimension is object index, second is feature index)"] # [doc = " @param floatFeaturesSize float feature count"] # [doc = " @param catFeatures array of array of char* categorical value pointers."] # [doc = " String pointer should point to zero terminated string."] # [doc = " @param catFeaturesSize categorical feature count"] # [doc = " @param result pointer to user allocated results vector"] # [doc = " @param resultSize result size should be equal to modelApproxDimension * docCount"] # [doc = " (e.g. for non multiclass models should be equal to docCount)"] # [doc = " @return false if error occured"] pub fn CalcModelPrediction (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:11005 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Methods equivalent to the methods above"] # [doc = " only returning a prediction for the specific class"] # [doc = " @param classId number of the class should be in [0, modelApproxDimension - 1]"] # [doc = " @param resultSize result size should be equal to docCount"] pub fn PredictSpecificClassFlat (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , classId : :: std :: os :: raw :: c_int , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:6919 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Calculate raw model predictions on float features and string categorical feature values"] # [doc = " @param calcer model handle"] # [doc = " @param docCount object count"] # [doc = " @param floatFeatures array of array of float (first dimension is object index, second is feature index)"] # [doc = " @param floatFeaturesSize float feature count"] # [doc = " @param catFeatures array of array of char* categorical value pointers."] # [doc = " String pointer should point to zero terminated string."] # [doc = " @param catFeaturesSize categorical feature count"] # [doc = " @param textFeatures array of array of char* text value pointers."] # [doc = " String pointer should point to zero terminated string."] # [doc = " @param textFeaturesSize text feature count"] # [doc = " @param result pointer to user allocated results vector"] # [doc = " @param resultSize result size should be equal to modelApproxDimension * docCount"] # [doc = " (e.g. for non multiclass models should be equal to docCount)"] # [doc = " @return false if error occured"] pub fn CalcModelPredictionText (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t , textFeatures : * mut * mut * const :: std :: os :: raw :: c_char , textFeaturesSize : size_t , result : * m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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:11550 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn PredictSpecificClass (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t , classId : :: std :: os :: raw :: c_int , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:8385 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Calculate raw model prediction on float features and string categorical feature values for single object"] # [doc = " @param calcer model handle"] # [doc = " @param floatFeatures array of float features"] # [doc = " @param floatFeaturesSize float feature count"] # [doc = " @param catFeatures array of char* categorical feature value pointers."] # [doc = " Each string pointer should point to zero terminated string."] # [doc = " @param catFeaturesSize categorical feature count"] # [doc = " @param result pointer to user allocated results vector (or single double)"] # [doc = " @param resultSize result size should be equal to modelApproxDimension"] # [doc = " (e.g. for non multiclass models should be equal to 1)"] # [doc = " @return false if error occured"] pub fn CalcModelPredictionSingle (modelHandle : * mut ModelCalcerHandle , floatFeatures : * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:11905 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn PredictSpecificClassText (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t , textFeatures : * mut * mut * const :: std :: os :: raw :: c_char , textFeaturesSize : size_t , classId : :: std :: os :: raw :: c_int , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:9445 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Calculate raw model predictions on float features and hashed categorical feature values"] # [doc = " @param calcer model handle"] # [doc = " @param docCount object count"] # [doc = " @param floatFeatures array of array of float (first dimension is object index, second if feature index)"] # [doc = " @param floatFeaturesSize float feature count"] # [doc = " @param catFeatures array of array of integers - hashed categorical feature values."] # [doc = " @param catFeaturesSize categorical feature count"] # [doc = " @param result pointer to user allocated results vector"] # [doc = " @param resultSize result size should be equal to modelApproxDimension * docCount"] # [doc = " (e.g. for non multiclass models should be equal to docCount)"] # [doc = " @return false if error occured"] pub fn CalcModelPredictionWithHashedCatFeatures (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * const :: std :: os :: raw :: c_int , catFe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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:10568 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn CalcModelPredictionWithHashedCatFeaturesAndTextFeatures (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * const :: std :: os :: raw :: c_int , catFeaturesSize : size_t , textFeatures : * mut * mut * const :: std :: os :: raw :: c_char , textFeaturesSize : size_t , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:12359 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn PredictSpecificClassSingle (modelHandle : * mut ModelCalcerHandle , floatFeatures : * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t , classId : :: std :: os :: raw :: c_int , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:11005 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Methods equivalent to the methods above"] # [doc = " only returning a prediction for the specific class"] # [doc = " @param classId number of the class should be in [0, modelApproxDimension - 1]"] # [doc = " @param resultSize result size should be equal to docCount"] pub fn PredictSpecificClassFlat (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , classId : :: std :: os :: raw :: c_int , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:12688 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn PredictSpecificClassWithHashedCatFeatures (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * const :: std :: os :: raw :: c_int , catFeaturesSize : size_t , classId : :: std :: os :: raw :: c_int , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:11550 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn PredictSpecificClass (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t , classId : :: std :: os :: raw :: c_int , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:13057 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn PredictSpecificClassWithHashedCatFeaturesAndTextFeatures (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * const :: std :: os :: raw :: c_int , catFeaturesSize : size_t , textFeatures : * mut * mut * const :: std :: os :: raw :: c_char , textFeaturesSize : size_t , classId : :: std :: os :: raw :: c_int , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:11905 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn PredictSpecificClassText (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t , textFeatures : * mut * mut * const :: std :: os :: raw :: c_char , textFeaturesSize : size_t , classId : :: std :: os :: raw :: c_int , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:13536 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get hash for given string value"] # [doc = " @param data we don't expect data to be zero terminated, so pass correct size"] # [doc = " @param size string length"] # [doc = " @return hash value"] pub fn GetStringCatFeatureHash (data : * const :: std :: os :: raw :: c_char , size : size_t) -> :: std :: os :: raw :: c_int ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:12359 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn PredictSpecificClassSingle (modelHandle : * mut ModelCalcerHandle , floatFeatures : * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * const :: std :: os :: raw :: c_char , catFeaturesSize : size_t , classId : :: std :: os :: raw :: c_int , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:12688 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn PredictSpecificClassWithHashedCatFeatures (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * const :: std :: os :: raw :: c_int , catFeaturesSize : size_t , classId : :: std :: os :: raw :: c_int , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:13885 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Special case for hash calculation - integer hash."] # [doc = " Internally we cast value to string and then calulcate string hash function."] # [doc = " Used in ClickHouse for catboost model evaluation on integer cat features."] # [doc = " @param val integer cat feature value"] # [doc = " @return hash value"] pub fn GetIntegerCatFeatureHash (val : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_int ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:13057 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn PredictSpecificClassWithHashedCatFeaturesAndTextFeatures (modelHandle : * mut ModelCalcerHandle , docCount : size_t , floatFeatures : * mut * const f32 , floatFeaturesSize : size_t , catFeatures : * mut * const :: std :: os :: raw :: c_int , catFeaturesSize : size_t , textFeatures : * mut * mut * const :: std :: os :: raw :: c_char , textFeaturesSize : size_t , classId : :: std :: os :: raw :: c_int , result : * mut f64 , resultSize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:14329 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get expected float feature count for model"] # [doc = " @param calcer model handle"] pub fn GetFloatFeaturesCount (modelHandle : * mut ModelCalcerHandle) -> size_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:13536 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get hash for given string value"] # [doc = " @param data we don't expect data to be zero terminated, so pass correct size"] # [doc = " @param size string length"] # [doc = " @return hash value"] pub fn GetStringCatFeatureHash (data : * const :: std :: os :: raw :: c_char , size : size_t) -> :: std :: os :: raw :: c_int ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:14521 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get expected categorical feature count for model"] # [doc = " @param calcer model handle"] pub fn GetCatFeaturesCount (modelHandle : * mut ModelCalcerHandle) -> size_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:13885 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Special case for hash calculation - integer hash."] # [doc = " Internally we cast value to string and then calulcate string hash function."] # [doc = " Used in ClickHouse for catboost model evaluation on integer cat features."] # [doc = " @param val integer cat feature value"] # [doc = " @return hash value"] pub fn GetIntegerCatFeatureHash (val : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_int ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:14717 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get number of trees in model"] # [doc = " @param calcer model handle"] pub fn GetTreeCount (modelHandle : * mut ModelCalcerHandle) -> size_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:14329 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get expected float feature count for model"] # [doc = " @param calcer model handle"] pub fn GetFloatFeaturesCount (modelHandle : * mut ModelCalcerHandle) -> size_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:14886 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get number of dimensions in model"] # [doc = " @param calcer model handle"] pub fn GetDimensionsCount (modelHandle : * mut ModelCalcerHandle) -> size_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:14521 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get expected categorical feature count for model"] # [doc = " @param calcer model handle"] pub fn GetCatFeaturesCount (modelHandle : * mut ModelCalcerHandle) -> size_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:15066 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get number of dimensions for current prediction"] # [doc = " For default `APT_RAW_FORMULA_VAL`, `APT_EXPONENT`, `APT_PROBABILITY`, `APT_CLASS` prediction type GetPredictionDimensionsCount == GetDimensionsCount"] # [doc = " For `APT_RMSE_WITH_UNCERTAINTY` - returns 2 (value prediction and predicted uncertainty)"] # [doc = " @param calcer model handle"] pub fn GetPredictionDimensionsCount (modelHandle : * mut ModelCalcerHandle) -> size_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:14717 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get number of trees in model"] # [doc = " @param calcer model handle"] pub fn GetTreeCount (modelHandle : * mut ModelCalcerHandle) -> size_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:15534 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Check if model metadata holds some value for provided key"] # [doc = " @param calcer model handle"] pub fn CheckModelMetadataHasKey (modelHandle : * mut ModelCalcerHandle , keyPtr : * const :: std :: os :: raw :: c_char , keySize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:14886 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get number of dimensions in model"] # [doc = " @param calcer model handle"] pub fn GetDimensionsCount (modelHandle : * mut ModelCalcerHandle) -> size_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:15810 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get model metainfo value size for some key. Returns 0 both if key is missing in model metadata and if it is really missing"] # [doc = " @param calcer model handle"] pub fn GetModelInfoValueSize (modelHandle : * mut ModelCalcerHandle , keyPtr : * const :: std :: os :: raw :: c_char , keySize : size_t) -> size_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:15066 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get number of dimensions for current prediction"] # [doc = " For default `APT_RAW_FORMULA_VAL`, `APT_EXPONENT`, `APT_PROBABILITY`, `APT_CLASS` prediction type GetPredictionDimensionsCount == GetDimensionsCount"] # [doc = " For `APT_RMSE_WITH_UNCERTAINTY` - returns 2 (value prediction and predicted uncertainty)"] # [doc = " @param calcer model handle"] pub fn GetPredictionDimensionsCount (modelHandle : * mut ModelCalcerHandle) -> size_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:16150 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get model metainfo for some key. Returns const char* pointer to inner string. If key is missing in model metainfo storage this method will return nullptr"] # [doc = " @param calcer model handle"] pub fn GetModelInfoValue (modelHandle : * mut ModelCalcerHandle , keyPtr : * const :: std :: os :: raw :: c_char , keySize : size_t) -> * const :: std :: os :: raw :: c_char ; } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:15534 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Check if model metadata holds some value for provided key"] # [doc = " @param calcer model handle"] pub fn CheckModelMetadataHasKey (modelHandle : * mut ModelCalcerHandle , keyPtr : * const :: std :: os :: raw :: c_char , keySize : size_t) -> bool ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:15810 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get model metainfo value size for some key. Returns 0 both if key is missing in model metadata and if it is really missing"] # [doc = " @param calcer model handle"] pub fn GetModelInfoValueSize (modelHandle : * mut ModelCalcerHandle , keyPtr : * const :: std :: os :: raw :: c_char , keySize : size_t) -> size_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/catboost-portable-sys-f179d04cfdbec462/out/bindings.rs:3:16150 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { # [doc = " Get model metainfo for some key. Returns const char* pointer to inner string. If key is missing in model metainfo storage this method will return nullptr"] # [doc = " @param calcer model handle"] pub fn GetModelInfoValue (modelHandle : * mut ModelCalcerHandle , keyPtr : * const :: std :: os :: raw :: c_char , keySize : size_t) -> * const :: std :: os :: raw :: c_char ; } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `catboost-portable-sys` (lib) due to 36 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `catboost-portable-sys` (lib test) due to 36 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "fef5bb69f20bb70a72b92e3f9e1f51eb73baacbdc4c37e22fd5b6a7acd449a93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fef5bb69f20bb70a72b92e3f9e1f51eb73baacbdc4c37e22fd5b6a7acd449a93", kill_on_drop: false }` [INFO] [stdout] fef5bb69f20bb70a72b92e3f9e1f51eb73baacbdc4c37e22fd5b6a7acd449a93