[INFO] fetching crate openai-func-enums-macros 0.4.0... [INFO] testing openai-func-enums-macros-0.4.0 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate openai-func-enums-macros 0.4.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate openai-func-enums-macros 0.4.0 [INFO] finished tweaking crates.io crate openai-func-enums-macros 0.4.0 [INFO] tweaked toml for crates.io crate openai-func-enums-macros 0.4.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate openai-func-enums-macros 0.4.0 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 216 packages to latest compatible versions [INFO] [stderr] Adding async-openai v0.19.1 (available: v0.29.0) [INFO] [stderr] Adding rkyv v0.7.45 (available: v0.8.10) [INFO] [stderr] Adding tiktoken-rs v0.4.5 (available: v0.7.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-openai v0.19.1 [INFO] [stderr] Downloaded openai-func-embeddings v0.4.0 [INFO] [stderr] Downloaded tiktoken-rs v0.4.5 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b26445f8c8a68f50b21a33692b2b9f8e85e0f2f78387ef060e91aacb14edb392 [INFO] running `Command { std: "docker" "start" "-a" "b26445f8c8a68f50b21a33692b2b9f8e85e0f2f78387ef060e91aacb14edb392", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b26445f8c8a68f50b21a33692b2b9f8e85e0f2f78387ef060e91aacb14edb392", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b26445f8c8a68f50b21a33692b2b9f8e85e0f2f78387ef060e91aacb14edb392", kill_on_drop: false }` [INFO] [stdout] b26445f8c8a68f50b21a33692b2b9f8e85e0f2f78387ef060e91aacb14edb392 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] d340e897017c30bef158bd13fe9878a38bd64cf980837f8606ba551d1f2ef044 [INFO] running `Command { std: "docker" "start" "-a" "d340e897017c30bef158bd13fe9878a38bd64cf980837f8606ba551d1f2ef044", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling bytecheck v0.6.12 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling rustls-native-certs v0.6.3 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling simdutf8 v0.1.5 [INFO] [stderr] Compiling rend v0.4.2 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling eventsource-stream v0.2.3 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling ptr_meta_derive v0.1.4 [INFO] [stderr] Compiling bytecheck_derive v0.6.12 [INFO] [stderr] Compiling ptr_meta v0.1.4 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling rkyv v0.7.45 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling scopeguard v1.2.0 [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 tokio v1.45.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Compiling derive_builder_core v0.12.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling derive_builder_macro v0.12.0 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling derive_builder v0.12.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling rkyv_derive v0.7.45 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling async-convert v1.0.0 [INFO] [stderr] Compiling seahash v4.1.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling fancy-regex v0.11.0 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling backoff v0.4.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling tiktoken-rs v0.4.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling secrecy v0.8.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling reqwest-eventsource v0.4.0 [INFO] [stderr] Compiling async-openai v0.19.1 [INFO] [stderr] Compiling openai-func-embeddings v0.4.0 [INFO] [stderr] Compiling openai-func-enums-macros v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 22s [INFO] running `Command { std: "docker" "inspect" "d340e897017c30bef158bd13fe9878a38bd64cf980837f8606ba551d1f2ef044", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d340e897017c30bef158bd13fe9878a38bd64cf980837f8606ba551d1f2ef044", kill_on_drop: false }` [INFO] [stdout] d340e897017c30bef158bd13fe9878a38bd64cf980837f8606ba551d1f2ef044 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] edbd05dad9178f275b12e84d06989541f4d2d8e74a358ee7ab825ab9a5ee4769 [INFO] running `Command { std: "docker" "start" "-a" "edbd05dad9178f275b12e84d06989541f4d2d8e74a358ee7ab825ab9a5ee4769", kill_on_drop: false }` [INFO] [stderr] Compiling openai-func-enums-macros v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.34s [INFO] running `Command { std: "docker" "inspect" "edbd05dad9178f275b12e84d06989541f4d2d8e74a358ee7ab825ab9a5ee4769", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edbd05dad9178f275b12e84d06989541f4d2d8e74a358ee7ab825ab9a5ee4769", kill_on_drop: false }` [INFO] [stdout] edbd05dad9178f275b12e84d06989541f4d2d8e74a358ee7ab825ab9a5ee4769 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] ae0c2dbf8b30a2d2d4999a0e0c7fda2d92ba4b1ac1a7c6e7705f56d298dacb92 [INFO] running `Command { std: "docker" "start" "-a" "ae0c2dbf8b30a2d2d4999a0e0c7fda2d92ba4b1ac1a7c6e7705f56d298dacb92", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/openai_func_enums_macros-7e16cf6260fea4da) [INFO] [stdout] [INFO] [stderr] Doc-tests openai_func_enums_macros [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test src/lib.rs - enum_descriptor_derive (line 68) ... FAILED [INFO] [stdout] test src/lib.rs - enum_descriptor_derive (line 58) ... FAILED [INFO] [stdout] test src/lib.rs - func_description (line 383) ... FAILED [INFO] [stdout] test src/lib.rs - arg_description (line 25) ... FAILED [INFO] [stdout] test src/lib.rs - variant_descriptors_derive (line 145) ... FAILED [INFO] [stdout] test src/lib.rs - to_snake_case (line 1361) ... FAILED [INFO] [stdout] test src/lib.rs - calculate_token_count (line 1333) ... FAILED [INFO] [stdout] test src/lib.rs - generate_enum_info (line 258) ... FAILED [INFO] [stdout] test src/lib.rs - variant_descriptors_derive (line 155) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - enum_descriptor_derive (line 68) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `EnumDescriptor` in this scope [INFO] [stdout] --> src/lib.rs:69:6 [INFO] [stdout] | [INFO] [stdout] 3 | impl EnumDescriptor for MyEnum { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyEnum` in this scope [INFO] [stdout] --> src/lib.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 3 | impl EnumDescriptor for MyEnum { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - enum_descriptor_derive (line 58) stdout ---- [INFO] [stdout] error: cannot find derive macro `EnumDescriptor` in this scope [INFO] [stdout] --> src/lib.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(EnumDescriptor)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use openai_func_enums_macros::EnumDescriptor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - func_description (line 383) stdout ---- [INFO] [stdout] error: cannot find attribute `func_description` in this scope [INFO] [stdout] --> src/lib.rs:385:7 [INFO] [stdout] | [INFO] [stdout] 4 | #[func_description(description="This function does a thing.")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use openai_func_enums_macros::func_description; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `func_description` in this scope [INFO] [stdout] --> src/lib.rs:387:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[func_description(description="This function does another thing.")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use openai_func_enums_macros::func_description; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - arg_description (line 25) stdout ---- [INFO] [stdout] error: cannot find derive macro `EnumDescriptor` in this scope [INFO] [stdout] --> src/lib.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(EnumDescriptor)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use openai_func_enums_macros::EnumDescriptor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg_description` in this scope [INFO] [stdout] --> src/lib.rs:26:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[arg_description(description = "This is a sample enum.", tokens = 5)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use openai_func_enums_macros::arg_description; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - variant_descriptors_derive (line 145) stdout ---- [INFO] [stdout] error: cannot find derive macro `VariantDescriptors` in this scope [INFO] [stdout] --> src/lib.rs:146:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(VariantDescriptors)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use openai_func_enums_macros::VariantDescriptors; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - to_snake_case (line 1361) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `to_snake_case` in this scope [INFO] [stdout] --> src/lib.rs:1363:18 [INFO] [stdout] | [INFO] [stdout] 4 | let snake_case = to_snake_case(camel_case); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - calculate_token_count (line 1333) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `calculate_token_count` in this scope [INFO] [stdout] --> src/lib.rs:1335:19 [INFO] [stdout] | [INFO] [stdout] 4 | let token_count = calculate_token_count(text); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - generate_enum_info (line 258) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `serde_json` [INFO] [stdout] --> src/lib.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:283:21 [INFO] [stdout] | [INFO] [stdout] 27 | let json_enum = serde_json::json!({ [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `EnumDescriptor` in this scope [INFO] [stdout] --> src/lib.rs:264:45 [INFO] [stdout] | [INFO] [stdout] 8 | let (arg_desc, arg_tokens) = ::arg_description_with_token_count(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyEnum` in this scope [INFO] [stdout] --> src/lib.rs:264:35 [INFO] [stdout] | [INFO] [stdout] 8 | let (arg_desc, arg_tokens) = ::arg_description_with_token_count(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `EnumDescriptor` in this scope [INFO] [stdout] --> src/lib.rs:269:32 [INFO] [stdout] | [INFO] [stdout] 13 | let enum_name = ::name_with_token_count(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyEnum` in this scope [INFO] [stdout] --> src/lib.rs:269:22 [INFO] [stdout] | [INFO] [stdout] 13 | let enum_name = ::name_with_token_count(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `VariantDescriptors` in this scope [INFO] [stdout] --> src/lib.rs:278:36 [INFO] [stdout] | [INFO] [stdout] 22 | let enum_variants = ::variant_names_with_token_counts(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyEnum` in this scope [INFO] [stdout] --> src/lib.rs:278:26 [INFO] [stdout] | [INFO] [stdout] 22 | let enum_variants = ::variant_names_with_token_counts(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - variant_descriptors_derive (line 155) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `VariantDescriptors` in this scope [INFO] [stdout] --> src/lib.rs:156:6 [INFO] [stdout] | [INFO] [stdout] 3 | impl VariantDescriptors for MyEnum { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyEnum` in this scope [INFO] [stdout] --> src/lib.rs:156:29 [INFO] [stdout] | [INFO] [stdout] 3 | impl VariantDescriptors for MyEnum { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - arg_description (line 25) [INFO] [stdout] src/lib.rs - calculate_token_count (line 1333) [INFO] [stdout] src/lib.rs - enum_descriptor_derive (line 58) [INFO] [stdout] src/lib.rs - enum_descriptor_derive (line 68) [INFO] [stdout] src/lib.rs - func_description (line 383) [INFO] [stdout] src/lib.rs - generate_enum_info (line 258) [INFO] [stdout] src/lib.rs - to_snake_case (line 1361) [INFO] [stdout] src/lib.rs - variant_descriptors_derive (line 145) [INFO] [stdout] src/lib.rs - variant_descriptors_derive (line 155) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.03s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "ae0c2dbf8b30a2d2d4999a0e0c7fda2d92ba4b1ac1a7c6e7705f56d298dacb92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae0c2dbf8b30a2d2d4999a0e0c7fda2d92ba4b1ac1a7c6e7705f56d298dacb92", kill_on_drop: false }` [INFO] [stdout] ae0c2dbf8b30a2d2d4999a0e0c7fda2d92ba4b1ac1a7c6e7705f56d298dacb92