[INFO] fetching crate ollama-native 1.0.2... [INFO] testing ollama-native-1.0.2 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate ollama-native 1.0.2 into /workspace/builds/worker-1-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-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ollama-native 1.0.2 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e9960492a1337a4f0984df8f9fe4b8ae43b95ec4c847289de325b4d9bbdcd11 [INFO] running `Command { std: "docker" "start" "-a" "7e9960492a1337a4f0984df8f9fe4b8ae43b95ec4c847289de325b4d9bbdcd11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e9960492a1337a4f0984df8f9fe4b8ae43b95ec4c847289de325b4d9bbdcd11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e9960492a1337a4f0984df8f9fe4b8ae43b95ec4c847289de325b4d9bbdcd11", kill_on_drop: false }` [INFO] [stdout] 7e9960492a1337a4f0984df8f9fe4b8ae43b95ec4c847289de325b4d9bbdcd11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f41ef7391cc1258d0bff163a0784ad5fe9f900b9c48289afe78e57aa8bec47af [INFO] running `Command { std: "docker" "start" "-a" "f41ef7391cc1258d0bff163a0784ad5fe9f900b9c48289afe78e57aa8bec47af", 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] Compiling bytes v1.10.0 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling cc v1.2.15 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling httparse v1.10.0 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling ryu v1.0.19 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling h2 v0.4.8 [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 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] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling reqwest v0.12.12 [INFO] [stderr] Compiling ollama-native v1.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 38.03s [INFO] running `Command { std: "docker" "inspect" "f41ef7391cc1258d0bff163a0784ad5fe9f900b9c48289afe78e57aa8bec47af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f41ef7391cc1258d0bff163a0784ad5fe9f900b9c48289afe78e57aa8bec47af", kill_on_drop: false }` [INFO] [stdout] f41ef7391cc1258d0bff163a0784ad5fe9f900b9c48289afe78e57aa8bec47af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a540e2faae6d13b8323d08ccfa1054e6de225135db7d0c14d6c7ac867f05f07 [INFO] running `Command { std: "docker" "start" "-a" "7a540e2faae6d13b8323d08ccfa1054e6de225135db7d0c14d6c7ac867f05f07", kill_on_drop: false }` [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.8 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.12 [INFO] [stderr] Compiling ollama-native v1.0.2 (/opt/rustwide/workdir) [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[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[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 `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] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ollama-native` (example "generate_embeddings") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] 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[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] [stderr] error: could not compile `ollama-native` (example "chat_with_history") due to 3 previous errors [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 `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] [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] 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 "chat_request_stream") due to 4 previous errors [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[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[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 `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] [stderr] error: could not compile `ollama-native` (lib test) due to 19 previous errors [INFO] running `Command { std: "docker" "inspect" "7a540e2faae6d13b8323d08ccfa1054e6de225135db7d0c14d6c7ac867f05f07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a540e2faae6d13b8323d08ccfa1054e6de225135db7d0c14d6c7ac867f05f07", kill_on_drop: false }` [INFO] [stdout] 7a540e2faae6d13b8323d08ccfa1054e6de225135db7d0c14d6c7ac867f05f07