[INFO] fetching crate anthropic-sdk-rust 0.1.1... [INFO] checking anthropic-sdk-rust-0.1.1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate anthropic-sdk-rust 0.1.1 into /workspace/builds/worker-5-tc2/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-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate anthropic-sdk-rust 0.1.1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 19f4a1c51ef2fbf29a007ba5cca2d8a7d1c4a131f77e0eac433bcbcf8827b9ae [INFO] running `Command { std: "docker" "start" "-a" "19f4a1c51ef2fbf29a007ba5cca2d8a7d1c4a131f77e0eac433bcbcf8827b9ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "19f4a1c51ef2fbf29a007ba5cca2d8a7d1c4a131f77e0eac433bcbcf8827b9ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19f4a1c51ef2fbf29a007ba5cca2d8a7d1c4a131f77e0eac433bcbcf8827b9ae", kill_on_drop: false }` [INFO] [stdout] 19f4a1c51ef2fbf29a007ba5cca2d8a7d1c4a131f77e0eac433bcbcf8827b9ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f6557acf0d3e1d06daf80b34ff2f62f1651281f829767f18f57c547858e4603d [INFO] running `Command { std: "docker" "start" "-a" "f6557acf0d3e1d06daf80b34ff2f62f1651281f829767f18f57c547858e4603d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling cc v1.2.26 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Compiling syn v2.0.102 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking iri-string v0.7.8 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking backoff v0.4.0 [INFO] [stderr] Checking dotenvy v0.15.7 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking eventsource-stream v0.2.3 [INFO] [stderr] Checking tempfile v3.20.0 [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 tokio-macros v2.5.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.29 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking h2 v0.4.10 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.14 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.20 [INFO] [stderr] Checking 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)]` 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: `Role` [INFO] [stdout] --> examples/messages_api.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | Anthropic, MessageCreateBuilder, Role, ContentBlockParam, Model, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> examples/messages_api.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let client = Anthropic::new("demo-api-key")?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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: unused imports: `Anthropic` and `ToolChoice` [INFO] [stdout] --> examples/tool_use_comprehensive.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Anthropic, Tool, ToolRegistry, ToolExecutor, ToolFunction, ToolChoice, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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] [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `builder` [INFO] [stdout] --> examples/messages_api.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | let builder = client.messages() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `AnthropicError` [INFO] [stdout] --> examples/tool_use_comprehensive.rs:119:78 [INFO] [stdout] | [INFO] [stdout] 119 | registry.register("get_weather", weather_tool_def, Box::new(WeatherTool))?; [INFO] [stdout] | ----------------------------------------------------------------^ the trait `From` is not implemented for `AnthropicError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, ToolError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `AnthropicError` [INFO] [stdout] --> examples/tool_use_comprehensive.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 131 | registry.register("calculate", calc_tool_def, Box::new(anthropic_sdk::tools::SimpleTool::new( [INFO] [stdout] | ______________- [INFO] [stdout] 132 | | |input| Box::pin(calculate_tool(input)) [INFO] [stdout] 133 | | )))?; [INFO] [stdout] | | -^ the trait `From` is not implemented for `AnthropicError` [INFO] [stdout] | |_______| [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, ToolError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `AnthropicError` [INFO] [stdout] --> examples/tool_use_comprehensive.rs:139:69 [INFO] [stdout] | [INFO] [stdout] 139 | registry.register("get_time", time_tool_def, create_time_tool())?; [INFO] [stdout] | -------------------------------------------------------^ the trait `From` is not implemented for `AnthropicError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, ToolError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] [INFO] [stdout] [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] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `anthropic-sdk-rust` (example "tool_use_comprehensive") due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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[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] 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)]` on by default [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] 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[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[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 `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 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 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] running `Command { std: "docker" "inspect" "f6557acf0d3e1d06daf80b34ff2f62f1651281f829767f18f57c547858e4603d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6557acf0d3e1d06daf80b34ff2f62f1651281f829767f18f57c547858e4603d", kill_on_drop: false }` [INFO] [stdout] f6557acf0d3e1d06daf80b34ff2f62f1651281f829767f18f57c547858e4603d