[INFO] fetching crate anthropic-sdk-rust 0.1.1... [INFO] testing anthropic-sdk-rust-0.1.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate anthropic-sdk-rust 0.1.1 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate anthropic-sdk-rust 0.1.1 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate anthropic-sdk-rust 0.1.1 [INFO] tweaked toml for crates.io crate anthropic-sdk-rust 0.1.1 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate anthropic-sdk-rust 0.1.1 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 anthropic-sdk-rust 0.1.1 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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-registry v0.5.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] b13adc03f4844e7d666b0c7aeabbebe5e48fc5122d6e4e42c4b49476e8c665cc [INFO] running `Command { std: "docker" "start" "-a" "b13adc03f4844e7d666b0c7aeabbebe5e48fc5122d6e4e42c4b49476e8c665cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b13adc03f4844e7d666b0c7aeabbebe5e48fc5122d6e4e42c4b49476e8c665cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b13adc03f4844e7d666b0c7aeabbebe5e48fc5122d6e4e42c4b49476e8c665cc", kill_on_drop: false }` [INFO] [stdout] b13adc03f4844e7d666b0c7aeabbebe5e48fc5122d6e4e42c4b49476e8c665cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 0d28acce78d5ccf6082a0bf5b7d1d02b9a52bb9fd9874dc507ed4be02428e45b [INFO] running `Command { std: "docker" "start" "-a" "0d28acce78d5ccf6082a0bf5b7d1d02b9a52bb9fd9874dc507ed4be02428e45b", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling cc v1.2.26 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling syn v2.0.102 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling backoff v0.4.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling eventsource-stream v0.2.3 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.29 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.10 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.14 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.20 [INFO] [stderr] Compiling anthropic-sdk-rust v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/client.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn messages(&self) -> MessagesResource { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 94 | pub fn messages(&self) -> MessagesResource<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/client.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn models(&self) -> ModelsResource { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 188 | pub fn models(&self) -> ModelsResource<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 58.46s [INFO] running `Command { std: "docker" "inspect" "0d28acce78d5ccf6082a0bf5b7d1d02b9a52bb9fd9874dc507ed4be02428e45b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d28acce78d5ccf6082a0bf5b7d1d02b9a52bb9fd9874dc507ed4be02428e45b", kill_on_drop: false }` [INFO] [stdout] 0d28acce78d5ccf6082a0bf5b7d1d02b9a52bb9fd9874dc507ed4be02428e45b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 5a31ac042b39415f75fa816a8cec46a168a53d1d208dd6cc462117a75a073656 [INFO] running `Command { std: "docker" "start" "-a" "5a31ac042b39415f75fa816a8cec46a168a53d1d208dd6cc462117a75a073656", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.4.10 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.14 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.20 [INFO] [stderr] Compiling anthropic-sdk-rust v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Tool` [INFO] [stdout] --> src/tools/mod.rs:184:24 [INFO] [stdout] | [INFO] [stdout] 184 | use crate::types::{Tool, ToolResult}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/client.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn messages(&self) -> MessagesResource { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 94 | pub fn messages(&self) -> MessagesResource<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/client.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn models(&self) -> ModelsResource { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 188 | pub fn models(&self) -> ModelsResource<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageCreateBuilder` [INFO] [stdout] --> examples/ebay_gateway_demo.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use anthropic_sdk::{Anthropic, ClientConfig, MessageCreateBuilder, AuthMethod}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/test_dual_auth.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `,`, found `+` [INFO] [stdout] --> examples/custom_auth_ebay.rs:175:19 [INFO] [stdout] | [INFO] [stdout] 175 | println!("\n" + "=".repeat(50)); [INFO] [stdout] | ^ expected `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Anthropic`, `ClientConfig`, and `MessageCreateBuilder` [INFO] [stdout] --> examples/custom_auth_ebay.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use anthropic_sdk::{Anthropic, ClientConfig, MessageCreateBuilder}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap` and `HeaderValue` [INFO] [stdout] --> examples/custom_auth_ebay.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::header::{HeaderMap, HeaderValue}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `api_retry` [INFO] [stdout] --> examples/phase4_4_infrastructure.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | default_retry, api_retry, AnthropicError, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ContentBlockParam` and `MessageContent` [INFO] [stdout] --> examples/simple_phase4_demo.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | types::{MessageContent, ContentBlockParam}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mime_type` [INFO] [stdout] --> examples/simple_phase4_demo.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 50 | for (filename, mime_type, content) in sample_documents { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mime_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/debug_auth_headers.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap` and `HeaderValue` [INFO] [stdout] --> examples/debug_auth_headers.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::header::{HeaderMap, HeaderValue}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Anthropic` [INFO] [stdout] --> examples/file_upload_comprehensive.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | Anthropic, MessageCreateBuilder, ContentBlockParam, MessageContent, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FileSource` and `RetryExecutor` [INFO] [stdout] --> examples/comprehensive_file_upload.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | File, FileData, FileSource, FileConstraints, FileBuilder, to_file, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 3 | TokenCounter, RetryExecutor, default_retry, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mime::Mime` [INFO] [stdout] --> examples/file_upload_comprehensive.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use mime::Mime; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> examples/file_upload_comprehensive.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::fs` [INFO] [stdout] --> examples/file_upload_comprehensive.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::fs; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> examples/comprehensive_file_upload.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> examples/comprehensive_file_upload.rs:42:32 [INFO] [stdout] | [INFO] [stdout] 42 | let image_base64 = base64::encode(&image_data); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `anthropic-sdk-rust` (example "custom_auth_ebay") due to 1 previous error; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the trait bound `String: From>` is not satisfied [INFO] [stdout] --> examples/comprehensive_file_upload.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 33 | let text_file = File::from_bytes( [INFO] [stdout] | ---------------- required by a bound introduced by this call [INFO] [stdout] 34 | text_data.as_bytes().to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From>` is not implemented for `String` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `String` implements `From<&String>` [INFO] [stdout] `String` implements `From<&mut str>` [INFO] [stdout] `String` implements `From<&str>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From` [INFO] [stdout] `String` implements `From` [INFO] [stdout] `String` implements `From` [INFO] [stdout] and 7 others [INFO] [stdout] = note: required for `Vec` to implement `Into` [INFO] [stdout] note: required by a bound in `anthropic_sdk::File::from_bytes` [INFO] [stdout] --> /opt/rustwide/workdir/src/files/mod.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn from_bytes( [INFO] [stdout] | ---------- required by a bound in this associated function [INFO] [stdout] 90 | name: impl Into, [INFO] [stdout] | ^^^^^^^^^^^^ required by this bound in `File::from_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `call` is not a member of trait `ToolFunction` [INFO] [stdout] --> examples/production_patterns.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / async fn call(&self, parameters: Value) -> Result> { [INFO] [stdout] 58 | | let file_type = parameters.get("file_type") [INFO] [stdout] 59 | | .and_then(|v| v.as_str()) [INFO] [stdout] 60 | | .ok_or("Missing file_type parameter")?; [INFO] [stdout] ... | [INFO] [stdout] 125 | | Ok(extracted_data) [INFO] [stdout] 126 | | } [INFO] [stdout] | |_____^ not a member of trait `ToolFunction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `call` is not a member of trait `ToolFunction` [INFO] [stdout] --> examples/production_patterns.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | / async fn call(&self, parameters: Value) -> Result> { [INFO] [stdout] 135 | | let text = parameters.get("text") [INFO] [stdout] 136 | | .and_then(|v| v.as_str()) [INFO] [stdout] 137 | | .ok_or("Missing text parameter")?; [INFO] [stdout] ... | [INFO] [stdout] 174 | | })) [INFO] [stdout] 175 | | } [INFO] [stdout] | |_____^ not a member of trait `ToolFunction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `call` is not a member of trait `ToolFunction` [INFO] [stdout] --> examples/production_patterns.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 183 | / async fn call(&self, parameters: Value) -> Result> { [INFO] [stdout] 184 | | let text = parameters.get("text") [INFO] [stdout] 185 | | .and_then(|v| v.as_str()) [INFO] [stdout] 186 | | .ok_or("Missing text parameter")?; [INFO] [stdout] ... | [INFO] [stdout] 200 | | })) [INFO] [stdout] 201 | | } [INFO] [stdout] | |_____^ not a member of trait `ToolFunction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MessageCreateBuilder` and `to_file` [INFO] [stdout] --> examples/production_patterns.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | Anthropic, MessageCreateBuilder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | Tool, ToolRegistry, ToolExecutor, ToolFunction, [INFO] [stdout] 4 | File, FileConstraints, to_file, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> examples/production_patterns.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use tracing::{info, warn, error, debug}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `execute` [INFO] [stdout] --> examples/production_patterns.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | impl ToolFunction for DataExtractionTool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `execute` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn execute(&'life0 self, _: serde_json::Value) -> Pin>> + Send + 'async_trait)>> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `execute` [INFO] [stdout] --> examples/production_patterns.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | impl ToolFunction for SentimentAnalysisTool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `execute` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn execute(&'life0 self, _: serde_json::Value) -> Pin>> + Send + 'async_trait)>> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `execute` [INFO] [stdout] --> examples/production_patterns.rs:182:1 [INFO] [stdout] | [INFO] [stdout] 182 | impl ToolFunction for TextAnalysisTool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `execute` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn execute(&'life0 self, _: serde_json::Value) -> Pin>> + Send + 'async_trait)>> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/comprehensive_file_upload.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 33 | let text_file = File::from_bytes( [INFO] [stdout] | ---------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 36 | "text/plain" [INFO] [stdout] | ^^^^^^^^^^^^ expected `Option`, found `&str` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&'static str` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/files/mod.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn from_bytes( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/production_patterns.rs:222:31 [INFO] [stdout] | [INFO] [stdout] 222 | .max_elapsed_time(Some(config.timeout)) [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^^^ expected `Duration`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Duration` [INFO] [stdout] found enum `Option` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/http/retry.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn max_elapsed_time(mut self, max_elapsed: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `register_tool` found for struct `ToolRegistry` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:241:18 [INFO] [stdout] | [INFO] [stdout] 241 | registry.register_tool(data_tool, Box::new(DataExtractionTool))?; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `register` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | / pub fn register( [INFO] [stdout] 72 | | &mut self, [INFO] [stdout] 73 | | name: impl Into, [INFO] [stdout] 74 | | definition: Tool, [INFO] [stdout] 75 | | implementation: Box, [INFO] [stdout] 76 | | ) -> ToolOperationResult<()> { [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for struct `anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | text_file.name(), text_file.size()); [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> examples/phase5_2_files_api.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let client = match Anthropic::from_env() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `size` found for struct `anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:39:37 [INFO] [stdout] | [INFO] [stdout] 39 | text_file.name(), text_file.size()); [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `register_tool` found for struct `ToolRegistry` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:248:18 [INFO] [stdout] | [INFO] [stdout] 248 | registry.register_tool(sentiment_tool, Box::new(SentimentAnalysisTool))?; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `register` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | / pub fn register( [INFO] [stdout] 72 | | &mut self, [INFO] [stdout] 73 | | name: impl Into, [INFO] [stdout] 74 | | definition: Tool, [INFO] [stdout] 75 | | implementation: Box, [INFO] [stdout] 76 | | ) -> ToolOperationResult<()> { [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/comprehensive_file_upload.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 43 | let image_file = File::from_base64( [INFO] [stdout] | ----------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 46 | "image/png" [INFO] [stdout] | ^^^^^^^^^^^ expected `Option`, found `&str` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&'static str` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/files/mod.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn from_base64( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/production_patterns.rs:250:47 [INFO] [stdout] | [INFO] [stdout] 250 | let tool_executor = ToolExecutor::new(registry); [INFO] [stdout] | ----------------- ^^^^^^^^ expected `Arc`, found `ToolRegistry` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc` [INFO] [stdout] found struct `ToolRegistry` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/executor.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn new(registry: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: call `Into::into` on this expression to convert `ToolRegistry` into `Arc` [INFO] [stdout] | [INFO] [stdout] 250 | let tool_executor = ToolExecutor::new(registry.into()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for struct `anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | image_file.name(), image_file.size()); [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `list_tools` found for reference `&Arc` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:252:77 [INFO] [stdout] | [INFO] [stdout] 252 | info!("Service initialized with {} tools", tool_executor.registry().list_tools().len()); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `has_tool` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn has_tool(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `size` found for struct `anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:49:39 [INFO] [stdout] | [INFO] [stdout] 49 | image_file.name(), image_file.size()); [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/comprehensive_file_upload.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | .mime_type("text/csv") [INFO] [stdout] | --------- ^^^^^^^^^^ expected `Mime`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/files/mod.rs:432:12 [INFO] [stdout] | [INFO] [stdout] 432 | pub fn mime_type(mut self, mime_type: Mime) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `data` found for struct `FileBuilder` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 52 | let csv_file = FileBuilder::new() [INFO] [stdout] | ____________________- [INFO] [stdout] 53 | | .name("data.csv") [INFO] [stdout] 54 | | .mime_type("text/csv") [INFO] [stdout] 55 | | .data(FileData::Bytes(csv_data.as_bytes().to_vec())) [INFO] [stdout] | | -^^^^ method not found in `FileBuilder` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/comprehensive_file_upload.rs:55:31 [INFO] [stdout] | [INFO] [stdout] 55 | .data(FileData::Bytes(csv_data.as_bytes().to_vec())) [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Bytes`, found `Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `bytes::bytes::Bytes` [INFO] [stdout] found struct `Vec` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/files/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | Bytes(Bytes), [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: call `Into::into` on this expression to convert `Vec` into `bytes::bytes::Bytes` [INFO] [stdout] | [INFO] [stdout] 55 | .data(FileData::Bytes(csv_data.as_bytes().to_vec().into())) [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> examples/comprehensive_file_upload.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | let json_file = to_file(json_data.as_bytes(), "data.json", "application/json")?; [INFO] [stdout] | ^^^^^^^ -------------------- expected `FileSource`, found `&[u8]` [INFO] [stdout] | [INFO] [stdout] note: expected `Option`, found `&str` [INFO] [stdout] --> examples/comprehensive_file_upload.rs:63:51 [INFO] [stdout] | [INFO] [stdout] 63 | let json_file = to_file(json_data.as_bytes(), "data.json", "application/json")?; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&'static str` [INFO] [stdout] note: expected `Option`, found `&str` [INFO] [stdout] --> examples/comprehensive_file_upload.rs:63:64 [INFO] [stdout] | [INFO] [stdout] 63 | let json_file = to_file(json_data.as_bytes(), "data.json", "application/json")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&'static str` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/files/mod.rs:285:14 [INFO] [stdout] | [INFO] [stdout] 285 | pub async fn to_file( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> examples/comprehensive_file_upload.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | let json_file = to_file(json_data.as_bytes(), "data.json", "application/json")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 63 | let json_file = to_file(json_data.as_bytes(), "data.json", "application/json").await?; [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `FileConstraints` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:72:46 [INFO] [stdout] | [INFO] [stdout] 72 | let image_constraints = FileConstraints::new() [INFO] [stdout] | ^^^ function or associated item not found in `FileConstraints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `FileConstraints` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:77:45 [INFO] [stdout] | [INFO] [stdout] 77 | let text_constraints = FileConstraints::new() [INFO] [stdout] | ^^^ function or associated item not found in `FileConstraints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `String: From>` is not satisfied [INFO] [stdout] --> examples/comprehensive_file_upload.rs:94:39 [INFO] [stdout] | [INFO] [stdout] 94 | let large_file = File::from_bytes(large_file_data, "large.txt", "text/plain")?; [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^ the trait `From>` is not implemented for `String` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `String` implements `From<&String>` [INFO] [stdout] `String` implements `From<&mut str>` [INFO] [stdout] `String` implements `From<&str>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From` [INFO] [stdout] `String` implements `From` [INFO] [stdout] `String` implements `From` [INFO] [stdout] and 7 others [INFO] [stdout] = note: required for `Vec` to implement `Into` [INFO] [stdout] note: required by a bound in `anthropic_sdk::File::from_bytes` [INFO] [stdout] --> /opt/rustwide/workdir/src/files/mod.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn from_bytes( [INFO] [stdout] | ---------- required by a bound in this associated function [INFO] [stdout] 90 | name: impl Into, [INFO] [stdout] | ^^^^^^^^^^^^ required by this bound in `File::from_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/comprehensive_file_upload.rs:94:69 [INFO] [stdout] | [INFO] [stdout] 94 | let large_file = File::from_bytes(large_file_data, "large.txt", "text/plain")?; [INFO] [stdout] | ---------------- ^^^^^^^^^^^^ expected `Option`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&'static str` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/files/mod.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn from_bytes( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `detect_mime_type` found for struct `anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:115:35 [INFO] [stdout] | [INFO] [stdout] 115 | let detected_mime = File::detect_mime_type(filename); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `anthropic_sdk::File` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `anthropic_sdk::File` consider using one of the following associated functions: [INFO] [stdout] anthropic_sdk::File::from_bytes [INFO] [stdout] anthropic_sdk::File::from_path [INFO] [stdout] anthropic_sdk::File::from_base64 [INFO] [stdout] anthropic_sdk::File::from_std_file [INFO] [stdout] --> /opt/rustwide/workdir/src/files/mod.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | / pub fn from_bytes( [INFO] [stdout] 90 | | name: impl Into, [INFO] [stdout] 91 | | bytes: impl Into, [INFO] [stdout] 92 | | mime_type: Option, [INFO] [stdout] 93 | | ) -> Result { [INFO] [stdout] | |________________________________^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn from_path(path: impl AsRef) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | / pub fn from_base64( [INFO] [stdout] 142 | | name: impl Into, [INFO] [stdout] 143 | | base64_data: impl Into, [INFO] [stdout] 144 | | mime_type: Option, [INFO] [stdout] 145 | | ) -> Result { [INFO] [stdout] | |________________________________^ [INFO] [stdout] ... [INFO] [stdout] 168 | / pub fn from_std_file( [INFO] [stdout] 169 | | std_file: StdFile, [INFO] [stdout] 170 | | name: impl Into, [INFO] [stdout] 171 | | mime_type: Option, [INFO] [stdout] 172 | | ) -> Result { [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for struct `anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:130:46 [INFO] [stdout] | [INFO] [stdout] 130 | println!(" {} is image: {}", image_file.name(), image_file.is_image()); [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for struct `anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:131:44 [INFO] [stdout] | [INFO] [stdout] 131 | println!(" {} is text: {}", text_file.name(), text_file.is_text()); [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> examples/comprehensive_file_upload.rs:136:26 [INFO] [stdout] | [INFO] [stdout] 136 | let text_as_base64 = text_file.to_base64()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 136 | let text_as_base64 = text_file.to_base64().await?; [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> examples/comprehensive_file_upload.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | let image_as_bytes = image_file.to_bytes()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 139 | let image_as_bytes = image_file.to_bytes().await?; [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for struct `anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:157:24 [INFO] [stdout] | [INFO] [stdout] 157 | file_from_path.name(), file_from_path.size()); [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `size` found for struct `anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:157:47 [INFO] [stdout] | [INFO] [stdout] 157 | file_from_path.name(), file_from_path.size()); [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> examples/comprehensive_file_upload.rs:172:24 [INFO] [stdout] | [INFO] [stdout] 172 | let file_content = ContentBlockParam::from_file(json_file.clone())?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future>` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 172 | let file_content = ContentBlockParam::from_file(json_file.clone()).await?; [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/comprehensive_file_upload.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | image_content, [INFO] [stdout] | ^^^^^^^^^^^^^ expected `ContentBlockParam`, found future [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_v4` found for struct `Uuid` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:270:38 [INFO] [stdout] | [INFO] [stdout] 270 | let request_id = uuid::Uuid::new_v4().to_string(); [INFO] [stdout] | ^^^^^^ function or associated item not found in `Uuid` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Uuid` consider using one of the following associated functions: [INFO] [stdout] uuid::builder::::nil [INFO] [stdout] uuid::builder::::max [INFO] [stdout] uuid::builder::::from_fields [INFO] [stdout] uuid::builder::::from_fields_le [INFO] [stdout] and 10 others [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/uuid-1.17.0/src/builder.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub const fn nil() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub const fn max() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub const fn from_fields(d1: u32, d2: u16, d3: u16, d4: &[u8; 8]) -> Uuid { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub const fn from_fields_le(d1: u32, d2: u16, d3: u16, d4: &[u8; 8]) -> Uuid { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `size` found for struct `anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:277:60 [INFO] [stdout] | [INFO] [stdout] 277 | info!("File validation successful: {} bytes", file.size()); [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `size` found for struct `anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:292:29 [INFO] [stdout] | [INFO] [stdout] 292 | file_size: file.size(), [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for reference `&anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:231:37 [INFO] [stdout] | [INFO] [stdout] 231 | println!(" Name: {}", file.name()); [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_v4` found for struct `Uuid` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:337:53 [INFO] [stdout] | [INFO] [stdout] 337 | "id": format!("extract_{}", uuid::Uuid::new_v4()), [INFO] [stdout] | ^^^^^^ function or associated item not found in `Uuid` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Uuid` consider using one of the following associated functions: [INFO] [stdout] uuid::builder::::nil [INFO] [stdout] uuid::builder::::max [INFO] [stdout] uuid::builder::::from_fields [INFO] [stdout] uuid::builder::::from_fields_le [INFO] [stdout] and 10 others [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/uuid-1.17.0/src/builder.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub const fn nil() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub const fn max() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub const fn from_fields(d1: u32, d2: u16, d3: u16, d4: &[u8; 8]) -> Uuid { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub const fn from_fields_le(d1: u32, d2: u16, d3: u16, d4: &[u8; 8]) -> Uuid { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `size` found for reference `&anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:232:43 [INFO] [stdout] | [INFO] [stdout] 232 | println!(" Size: {} bytes", file.size()); [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `mime_type` found for reference `&anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:233:37 [INFO] [stdout] | [INFO] [stdout] 233 | println!(" MIME: {}", file.mime_type()); [INFO] [stdout] | ^^^^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `hash` found for reference `&anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/comprehensive_file_upload.rs:234:37 [INFO] [stdout] | [INFO] [stdout] 234 | println!(" Hash: {}", file.hash().unwrap_or("none".to_string())); [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `anthropic-sdk-rust` (example "comprehensive_file_upload") due to 29 previous errors; 3 warnings emitted [INFO] [stdout] error[E0599]: no method named `mime_type` found for reference `&anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:340:35 [INFO] [stdout] | [INFO] [stdout] 340 | "file_type": file.mime_type(), [INFO] [stdout] | ^^^^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/client.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn messages(&self) -> MessagesResource { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 94 | pub fn messages(&self) -> MessagesResource<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/client.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn models(&self) -> ModelsResource { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 188 | pub fn models(&self) -> ModelsResource<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap_or_default` found for opaque type `impl std::future::Future>` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:341:69 [INFO] [stdout] | [INFO] [stdout] 341 | "content": String::from_utf8_lossy(&file.to_bytes().unwrap_or_default()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `unwrap_or_else` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/future/try_future/mod.rs:570:5 [INFO] [stdout] | [INFO] [stdout] 570 | / fn unwrap_or_else(self, f: F) -> UnwrapOrElse [INFO] [stdout] 571 | | where [INFO] [stdout] 572 | | Self: Sized, [INFO] [stdout] 573 | | F: FnOnce(Self::Error) -> Self::Ok, [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 341 | "content": String::from_utf8_lossy(&file.to_bytes().await.unwrap_or_default()) [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `execute_tool` found for reference `&ToolExecutor` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:351:31 [INFO] [stdout] | [INFO] [stdout] 351 | tool_executor.execute_tool(&request).await [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `execute_multiple` with a similar name [INFO] [stdout] | [INFO] [stdout] 351 - tool_executor.execute_tool(&request).await [INFO] [stdout] 351 + tool_executor.execute_multiple(&request).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `map_err` found for opaque type `impl std::future::Future>` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:370:18 [INFO] [stdout] | [INFO] [stdout] 369 | / ContentBlockParam::from_file(file.clone()) [INFO] [stdout] 370 | | .map_err(DocumentAnalysisError::FileProcessing)?, [INFO] [stdout] | | -^^^^^^^ method not found in `impl std::future::Future>` [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/future/try_future/mod.rs:308:8 [INFO] [stdout] | [INFO] [stdout] 308 | fn map_err(self, f: F) -> MapErr [INFO] [stdout] | ------- the method is available for `impl std::future::Future>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 370 | .await.map_err(DocumentAnalysisError::FileProcessing)?, [INFO] [stdout] | ++++++ [INFO] [stdout] help: trait `TryFutureExt` which provides `map_err` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use futures_util::future::try_future::TryFutureExt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_all_tools` found for reference `&Arc` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:379:51 [INFO] [stdout] | [INFO] [stdout] 379 | let tools = self.tool_executor.registry().get_all_tools(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `&Arc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `tools` found for struct `MessageCreateBuilderWithClient<'a>` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:391:22 [INFO] [stdout] | [INFO] [stdout] 388 | / client.messages() [INFO] [stdout] 389 | | .create_with_builder("claude-3-5-sonnet-latest", 2048) [INFO] [stdout] 390 | | .message(anthropic_sdk::types::Role::User, content) [INFO] [stdout] 391 | | .tools(tools) [INFO] [stdout] | | -^^^^^ method not found in `MessageCreateBuilderWithClient<'_>` [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `FileConstraints` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:312:44 [INFO] [stdout] | [INFO] [stdout] 312 | let constraints = FileConstraints::new() [INFO] [stdout] | ^^^ function or associated item not found in `FileConstraints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::string::String: From>` is not satisfied [INFO] [stdout] --> examples/production_patterns.rs:324:37 [INFO] [stdout] | [INFO] [stdout] 324 | let file = File::from_bytes(data.to_vec(), filename, mime_type) [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^ the trait `From>` is not implemented for `std::string::String` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `std::string::String` implements `From<&mut str>` [INFO] [stdout] `std::string::String` implements `From<&std::string::String>` [INFO] [stdout] `std::string::String` implements `From<&str>` [INFO] [stdout] `std::string::String` implements `From>` [INFO] [stdout] `std::string::String` implements `From>` [INFO] [stdout] `std::string::String` implements `From` [INFO] [stdout] `std::string::String` implements `From` [INFO] [stdout] `std::string::String` implements `From` [INFO] [stdout] and 8 others [INFO] [stdout] = note: required for `Vec` to implement `Into` [INFO] [stdout] note: required by a bound in `anthropic_sdk::File::from_bytes` [INFO] [stdout] --> /opt/rustwide/workdir/src/files/mod.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn from_bytes( [INFO] [stdout] | ---------- required by a bound in this associated function [INFO] [stdout] 90 | name: impl Into, [INFO] [stdout] | ^^^^^^^^^^^^ required by this bound in `File::from_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/production_patterns.rs:324:62 [INFO] [stdout] | [INFO] [stdout] 324 | let file = File::from_bytes(data.to_vec(), filename, mime_type) [INFO] [stdout] | ---------------- ^^^^^^^^^ expected `Option`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&str` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/files/mod.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn from_bytes( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/production_patterns.rs:412:16 [INFO] [stdout] | [INFO] [stdout] 412 | if let Some(usage) = &message.usage { [INFO] [stdout] | ^^^^^^^^^^^ -------------- this expression has type `&Usage` [INFO] [stdout] | | [INFO] [stdout] | expected `Usage`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Usage` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/production_patterns.rs:413:18 [INFO] [stdout] | [INFO] [stdout] 413 | Some(self.token_counter.record_usage("claude-3-5-sonnet-latest", usage)) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `anthropic_sdk::CostBreakdown`, found `anthropic_sdk::tokens::CostBreakdown` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `anthropic_sdk::tokens::CostBreakdown` due to the type of the argument passed [INFO] [stdout] --> examples/production_patterns.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | Some(self.token_counter.record_usage("claude-3-5-sonnet-latest", usage)) [INFO] [stdout] | ^^^^^------------------------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:601:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `request_count` on type `UsageSummary` [INFO] [stdout] --> examples/production_patterns.rs:425:43 [INFO] [stdout] | [INFO] [stdout] 425 | total_requests: usage_summary.request_count, [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `total_tokens`, `input_tokens`, `output_tokens`, `cache_tokens`, `total_cost_usd` ... and 5 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `list_tools` found for reference `&Arc` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:430:60 [INFO] [stdout] | [INFO] [stdout] 430 | tools_available: self.tool_executor.registry().list_tools().len() as u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `has_tool` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn has_tool(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `total_cost` on type `&anthropic_sdk::CostBreakdown` [INFO] [stdout] --> examples/production_patterns.rs:529:54 [INFO] [stdout] | [INFO] [stdout] 529 | println!(" Cost: ${:.4}", cost.total_cost); [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `cost_per_input_token_usd`, `cost_per_output_token_usd`, `effective_cost_per_token_usd`, `cost_vs_alternatives` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0277, E0308, E0407, E0599, E0609. [INFO] [stdout] [INFO] [stderr] error: could not compile `anthropic-sdk-rust` (example "production_patterns") due to 29 previous errors; 2 warnings emitted [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5a31ac042b39415f75fa816a8cec46a168a53d1d208dd6cc462117a75a073656", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a31ac042b39415f75fa816a8cec46a168a53d1d208dd6cc462117a75a073656", kill_on_drop: false }` [INFO] [stdout] 5a31ac042b39415f75fa816a8cec46a168a53d1d208dd6cc462117a75a073656