[INFO] fetching crate ollama-native 1.0.2... [INFO] checking ollama-native-1.0.2 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate ollama-native 1.0.2 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate ollama-native 1.0.2 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate ollama-native 1.0.2 [INFO] tweaked toml for crates.io crate ollama-native 1.0.2 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ollama-native 1.0.2 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate ollama-native 1.0.2 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21a2721d88e580aa1abfedd7288444159c4e7c4e0e861f1ce4c27f017952626d [INFO] running `Command { std: "docker" "start" "-a" "21a2721d88e580aa1abfedd7288444159c4e7c4e0e861f1ce4c27f017952626d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21a2721d88e580aa1abfedd7288444159c4e7c4e0e861f1ce4c27f017952626d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21a2721d88e580aa1abfedd7288444159c4e7c4e0e861f1ce4c27f017952626d", kill_on_drop: false }` [INFO] [stdout] 21a2721d88e580aa1abfedd7288444159c4e7c4e0e861f1ce4c27f017952626d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 599677b15e1453c94d09d97006c7943a9dbe65f26f11f133151feda6caabdc6a [INFO] running `Command { std: "docker" "start" "-a" "599677b15e1453c94d09d97006c7943a9dbe65f26f11f133151feda6caabdc6a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking bytes v1.10.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking litemap v0.7.4 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Compiling cc v1.2.15 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling httparse v1.10.0 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking bitflags v2.8.0 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Checking log v0.4.26 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking ryu v1.0.19 [INFO] [stderr] Checking http v1.2.0 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking rustls-pki-types v1.11.0 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking indexmap v2.7.1 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling async-trait v0.1.87 [INFO] [stderr] Checking tokio v1.43.0 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking h2 v0.4.8 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.10 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.12 [INFO] [stderr] Checking ollama-native v1.0.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `tokio_stream` [INFO] [stdout] --> src/ollama.rs:519:9 [INFO] [stdout] | [INFO] [stdout] 519 | use tokio_stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `tokio_stream` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio_stream`, use `cargo add tokio_stream` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::action::IntoStream`, `crate::action::OllamaStream` [INFO] [stdout] --> src/ollama.rs:524:18 [INFO] [stdout] | [INFO] [stdout] 524 | action::{IntoStream, OllamaStream}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ no `OllamaStream` in `action` [INFO] [stdout] | | [INFO] [stdout] | no `IntoStream` in `action` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these structs instead: [INFO] [stdout] futures::future::IntoStream [INFO] [stdout] futures::stream::IntoStream [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/action/mod.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 70 | #[cfg(feature = "stream")] [INFO] [stdout] | ------------------ the item is gated behind the `stream` feature [INFO] [stdout] 71 | #[async_trait] [INFO] [stdout] 72 | pub trait IntoStream { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/action/mod.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[cfg(feature = "stream")] [INFO] [stdout] | ------------------ the item is gated behind the `stream` feature [INFO] [stdout] 68 | pub type OllamaStream = Pin>>>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `stream` found for struct `GenerateAction<'a, R>` in the current scope [INFO] [stdout] --> src/ollama.rs:596:14 [INFO] [stdout] | [INFO] [stdout] 593 | let mut s = ollama [INFO] [stdout] | _____________________- [INFO] [stdout] 594 | | .generate("llama3.1:8b") [INFO] [stdout] 595 | | .prompt("Tell me a joke about sharks") [INFO] [stdout] 596 | | .stream() [INFO] [stdout] | | -^^^^^^ method not found in `GenerateAction<'_, GenerateCompletionResponse>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/action/completion/generate.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct GenerateAction<'a, R> { [INFO] [stdout] | -------------------------------- method `stream` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `stream` found for struct `ChatAction<'a, R>` in the current scope [INFO] [stdout] --> src/ollama.rs:636:14 [INFO] [stdout] | [INFO] [stdout] 632 | let mut s = ollama [INFO] [stdout] | _____________________- [INFO] [stdout] 633 | | .chat("llama3.2:1b") [INFO] [stdout] 634 | | .system_message("You are an expiret on sharks") [INFO] [stdout] 635 | | .user_message("Who are you") [INFO] [stdout] 636 | | .stream() [INFO] [stdout] | | -^^^^^^ method not found in `ChatAction<'_, ChatCompletionResponse>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/action/completion/chat.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ChatAction<'a, R> { [INFO] [stdout] | ---------------------------- method `stream` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pull_model` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:731:29 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `pull_model` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 731 | let stream = ollama.pull_model("llama3.2").stream().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pull_model` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:739:31 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `pull_model` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 739 | let response = ollama.pull_model("llama3.1:8b").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `push_model` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:747:27 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `push_model` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 747 | let resp = ollama.push_model("mattw/pygmalion:latest").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `create_model` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:756:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `create_model` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 755 | let resp = ollama [INFO] [stdout] | ____________________- [INFO] [stdout] 756 | | .create_model("yuanshen") [INFO] [stdout] | | -^^^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `create_model` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:770:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `create_model` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 769 | let stream = ollama [INFO] [stdout] | ______________________- [INFO] [stdout] 770 | | .create_model("yuanshsdf") [INFO] [stdout] | | -^^^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `show_model_information` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:783:33 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `show_model_information` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 783 | let model_info = ollama.show_model_information("llama3.1:8b").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `list_local_models` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:791:35 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `list_local_models` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 791 | let local_models = ollama.list_local_models().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ollama_native::action::IntoStream` [INFO] [stdout] --> examples/chat_with_history.rs:3:43 [INFO] [stdout] | [INFO] [stdout] 3 | use ollama_native::{Ollama, abi::Message, action::IntoStream}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no `IntoStream` in `action` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these structs instead: [INFO] [stdout] futures::future::IntoStream [INFO] [stdout] futures::stream::IntoStream [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/action/mod.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 70 | #[cfg(feature = "stream")] [INFO] [stdout] | ------------------ the item is gated behind the `stream` feature [INFO] [stdout] 71 | #[async_trait] [INFO] [stdout] 72 | pub trait IntoStream { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio_stream` [INFO] [stdout] --> examples/chat_with_history.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio_stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `tokio_stream` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio_stream`, use `cargo add tokio_stream` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `list_running_models` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:799:27 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `list_running_models` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 799 | let resp = ollama.list_running_models().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `copy_model` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:808:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `copy_model` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 807 | let _ = ollama [INFO] [stdout] | _________________- [INFO] [stdout] 808 | | .copy_model("llama3.1:8b", "llama3.1:another") [INFO] [stdout] | | -^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `ollama_native::action::IntoStream`, `ollama_native::action::OllamaStream` [INFO] [stdout] --> examples/chat_request_stream.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | action::{IntoStream, OllamaStream}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ no `OllamaStream` in `action` [INFO] [stdout] | | [INFO] [stdout] | no `IntoStream` in `action` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these structs instead: [INFO] [stdout] futures::future::IntoStream [INFO] [stdout] futures::stream::IntoStream [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/action/mod.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 70 | #[cfg(feature = "stream")] [INFO] [stdout] | ------------------ the item is gated behind the `stream` feature [INFO] [stdout] 71 | #[async_trait] [INFO] [stdout] 72 | pub trait IntoStream { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/action/mod.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[cfg(feature = "stream")] [INFO] [stdout] | ------------------ the item is gated behind the `stream` feature [INFO] [stdout] 68 | pub type OllamaStream = Pin>>>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio_stream` [INFO] [stdout] --> examples/chat_request_stream.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio_stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `tokio_stream` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio_stream`, use `cargo add tokio_stream` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `copy_model` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:818:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `copy_model` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 817 | let err = ollama [INFO] [stdout] | ___________________- [INFO] [stdout] 818 | | .copy_model("llama3.9:18b", "llama3.1:another") [INFO] [stdout] | | -^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `delete_model` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:830:24 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `delete_model` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 830 | let _ = ollama.delete_model("yuanshsdf:latest").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `stream` found for struct `ChatAction<'a, R>` in the current scope [INFO] [stdout] --> examples/chat_with_history.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 22 | let mut stream = self [INFO] [stdout] | __________________________- [INFO] [stdout] 23 | | .ollama [INFO] [stdout] 24 | | .chat(&self.model) [INFO] [stdout] 25 | | .messages(history) [INFO] [stdout] 26 | | .user_message(input) [INFO] [stdout] 27 | | .stream() [INFO] [stdout] | | -^^^^^^ method not found in `ChatAction<'_, ChatCompletionResponse>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `delete_model` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:838:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `delete_model` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 837 | let err = ollama [INFO] [stdout] | ___________________- [INFO] [stdout] 838 | | .delete_model("a_model_does_not_exist") [INFO] [stdout] | | -^^^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `generate_embeddings` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:858:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `generate_embeddings` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 857 | let resp = ollama [INFO] [stdout] | ____________________- [INFO] [stdout] 858 | | .generate_embeddings("llama3.2:1b") [INFO] [stdout] | | -^^^^^^^^^^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `check_blob_exists` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:871:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `check_blob_exists` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 870 | let resp = ollama [INFO] [stdout] | ____________________- [INFO] [stdout] 871 | | .check_blob_exists( [INFO] [stdout] | | -^^^^^^^^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `push_blob` found for struct `Ollama` in the current scope [INFO] [stdout] --> src/ollama.rs:884:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Ollama { [INFO] [stdout] | ----------------- method `push_blob` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 883 | let _ = ollama [INFO] [stdout] | _________________- [INFO] [stdout] 884 | | .push_blob( [INFO] [stdout] | | -^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `generate_embeddings` found for struct `Ollama` in the current scope [INFO] [stdout] --> examples/generate_embeddings.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 6 | let response = ollama [INFO] [stdout] | ____________________- [INFO] [stdout] 7 | | .generate_embeddings("llama3.1:8b") [INFO] [stdout] | | -^^^^^^^^^^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `stream` found for struct `ChatAction<'a, R>` in the current scope [INFO] [stdout] --> examples/chat_request_stream.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 26 | let stream = ollama [INFO] [stdout] | __________________- [INFO] [stdout] 27 | | .chat("llama3.1:8b") [INFO] [stdout] 28 | | .system_message("You are a robot that is good at telling jokes") [INFO] [stdout] 29 | | .user_message("Who are you") [INFO] [stdout] 30 | | .stream() // Specify that we want to stream the responses. [INFO] [stdout] | | -^^^^^^ method not found in `ChatAction<'_, ChatCompletionResponse>` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ollama-native` (example "chat_with_history") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `generate_embeddings` found for struct `Ollama` in the current scope [INFO] [stdout] --> examples/generate_embeddings.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 16 | let response = ollama [INFO] [stdout] | ____________________- [INFO] [stdout] 17 | | .generate_embeddings("llama3.1:8b") [INFO] [stdout] | | -^^^^^^^^^^^^^^^^^^^ method not found in `Ollama` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `stream` found for struct `ChatAction<'a, R>` in the current scope [INFO] [stdout] --> examples/chat_request_stream.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 41 | let stream = ollama [INFO] [stdout] | __________________- [INFO] [stdout] 42 | | .chat("llama3.1:8b") [INFO] [stdout] 43 | | .messages(messages) [INFO] [stdout] 44 | | .stream() // Specify that we want to stream the responses. [INFO] [stdout] | | -^^^^^^ method not found in `ChatAction<'_, ChatCompletionResponse>` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ollama-native` (example "generate_embeddings") due to 2 previous errors [INFO] [stderr] error: could not compile `ollama-native` (example "chat_request_stream") due to 4 previous errors [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ollama-native` (lib test) due to 19 previous errors [INFO] running `Command { std: "docker" "inspect" "599677b15e1453c94d09d97006c7943a9dbe65f26f11f133151feda6caabdc6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "599677b15e1453c94d09d97006c7943a9dbe65f26f11f133151feda6caabdc6a", kill_on_drop: false }` [INFO] [stdout] 599677b15e1453c94d09d97006c7943a9dbe65f26f11f133151feda6caabdc6a