[INFO] fetching crate salvo-oapi-macros 0.82.0... [INFO] checking salvo-oapi-macros-0.82.0 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate salvo-oapi-macros 0.82.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate salvo-oapi-macros 0.82.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate salvo-oapi-macros 0.82.0 [INFO] tweaked toml for crates.io crate salvo-oapi-macros 0.82.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate salvo-oapi-macros 0.82.0 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate salvo-oapi-macros 0.82.0 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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] da14e8324fdd420fa7f0d94a77956ad2491535532776778d39b2c795f156a275 [INFO] running `Command { std: "docker" "start" "-a" "da14e8324fdd420fa7f0d94a77956ad2491535532776778d39b2c795f156a275", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da14e8324fdd420fa7f0d94a77956ad2491535532776778d39b2c795f156a275", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da14e8324fdd420fa7f0d94a77956ad2491535532776778d39b2c795f156a275", kill_on_drop: false }` [INFO] [stdout] da14e8324fdd420fa7f0d94a77956ad2491535532776778d39b2c795f156a275 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a541c434a01c2706fb730a3c71d3b815cf78121515467414e4491ee215d63da [INFO] running `Command { std: "docker" "start" "-a" "7a541c434a01c2706fb730a3c71d3b815cf78121515467414e4491ee215d63da", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.97 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking castaway v0.2.4 [INFO] [stderr] Checking quote v1.0.40 [INFO] [stderr] Checking syn v2.0.105 [INFO] [stderr] Checking proc-macro-crate v3.3.0 [INFO] [stderr] Checking salvo-serde-util v0.82.0 [INFO] [stderr] Checking salvo-oapi-macros v0.82.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_with_macros v3.14.0 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Checking serde_json v1.0.142 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking serde_with v3.14.0 [INFO] [stderr] Checking compact_str v0.9.0 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Checking time v0.3.41 [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `salvo` [INFO] [stdout] --> tests/endpoint_tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use salvo::oapi::extract::*; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `salvo` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `salvo`, use `cargo add salvo` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `salvo` [INFO] [stdout] --> tests/endpoint_tests.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use salvo::prelude::*; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `salvo` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `salvo`, use `cargo add salvo` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `salvo::oapi::extract::*`, `salvo::prelude::*` [INFO] [stdout] --> tests/endpoint_tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use salvo::oapi::extract::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | use salvo::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `salvo` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use salvo::oapi::extract::*; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `salvo` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `salvo`, use `cargo add salvo` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `salvo` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use salvo::prelude::*; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `salvo` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `salvo`, use `cargo add salvo` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `salvo::oapi::extract::*`, `salvo::prelude::*` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use salvo::oapi::extract::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | use salvo::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `endpoint` in this scope [INFO] [stdout] --> tests/endpoint_tests.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[endpoint] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::endpoint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `QueryParam` in this scope [INFO] [stdout] --> tests/endpoint_tests.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | async fn hello(name: QueryParam) -> String { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> tests/endpoint_tests.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | let router = Router::new().push(Router::with_path("hello").get(hello)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> tests/endpoint_tests.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | let router = Router::new().push(Router::with_path("hello").get(hello)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `salvo-oapi-macros` (test "endpoint_tests") due to 8 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OpenApi` [INFO] [stdout] --> tests/endpoint_tests.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | let doc = OpenApi::new("test api", "0.0.1").merge_router(&router); [INFO] [stdout] | ^^^^^^^ use of undeclared type `OpenApi` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: cannot find derive macro `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:10:38 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Serialize, Deserialize, ToSchema, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::ToSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `salvo` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[salvo(schema(aliases(MyI32 = MyObject, MyStr = MyObject)))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `endpoint` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | #[endpoint] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::endpoint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `endpoint` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | #[endpoint] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::endpoint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `endpoint` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | #[endpoint] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::endpoint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:183:38 [INFO] [stdout] | [INFO] [stdout] 183 | #[derive(Serialize, Deserialize, ToSchema, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::ToSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `salvo` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:184:7 [INFO] [stdout] | [INFO] [stdout] 184 | #[salvo(schema(rename_all = "camelCase"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `endpoint` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:190:7 [INFO] [stdout] | [INFO] [stdout] 190 | #[endpoint] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::endpoint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:256:38 [INFO] [stdout] | [INFO] [stdout] 256 | #[derive(Serialize, Deserialize, ToSchema, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::ToSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `salvo` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:257:7 [INFO] [stdout] | [INFO] [stdout] 257 | #[salvo(schema(multiple_of = 5))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:260:38 [INFO] [stdout] | [INFO] [stdout] 260 | #[derive(Serialize, Deserialize, ToSchema, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::ToSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `salvo` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:261:7 [INFO] [stdout] | [INFO] [stdout] 261 | #[salvo(schema(maximum = 100))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:264:38 [INFO] [stdout] | [INFO] [stdout] 264 | #[derive(Serialize, Deserialize, ToSchema, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::ToSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `salvo` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | #[salvo(schema(minimum = -100))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:268:38 [INFO] [stdout] | [INFO] [stdout] 268 | #[derive(Serialize, Deserialize, ToSchema, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::ToSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `salvo` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:269:7 [INFO] [stdout] | [INFO] [stdout] 269 | #[salvo(schema(exclusive_maximum = 100))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:272:38 [INFO] [stdout] | [INFO] [stdout] 272 | #[derive(Serialize, Deserialize, ToSchema, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::ToSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `salvo` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:273:7 [INFO] [stdout] | [INFO] [stdout] 273 | #[salvo(schema(exclusive_minimum = -100))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:276:38 [INFO] [stdout] | [INFO] [stdout] 276 | #[derive(Serialize, Deserialize, ToSchema, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::ToSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `salvo` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:277:7 [INFO] [stdout] | [INFO] [stdout] 277 | #[salvo(schema(min_length = 3))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:280:38 [INFO] [stdout] | [INFO] [stdout] 280 | #[derive(Serialize, Deserialize, ToSchema, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::ToSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `salvo` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:281:7 [INFO] [stdout] | [INFO] [stdout] 281 | #[salvo(schema(max_length = 3))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:284:38 [INFO] [stdout] | [INFO] [stdout] 284 | #[derive(Serialize, Deserialize, ToSchema, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::ToSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `salvo` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:285:7 [INFO] [stdout] | [INFO] [stdout] 285 | #[salvo(schema(pattern = r#"^([a-zA-Z0-9_\-]{3,32}$)"#))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:288:38 [INFO] [stdout] | [INFO] [stdout] 288 | #[derive(Serialize, Deserialize, ToSchema, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::ToSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `salvo` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:289:7 [INFO] [stdout] | [INFO] [stdout] 289 | #[salvo(schema(max_items = 5))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:292:38 [INFO] [stdout] | [INFO] [stdout] 292 | #[derive(Serialize, Deserialize, ToSchema, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::ToSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `salvo` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:293:7 [INFO] [stdout] | [INFO] [stdout] 293 | #[salvo(schema(min_items = 1))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:296:38 [INFO] [stdout] | [INFO] [stdout] 296 | #[derive(Serialize, Deserialize, ToSchema, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::ToSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `endpoint` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:310:7 [INFO] [stdout] | [INFO] [stdout] 310 | #[endpoint] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use salvo_oapi_macros::endpoint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `salvo` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | salvo::oapi::naming::set_namer( [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `salvo` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `salvo`, use `cargo add salvo` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `salvo` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | salvo::oapi::naming::FlexNamer::new() [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `salvo` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `salvo`, use `cargo add salvo` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `salvo` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:195:5 [INFO] [stdout] | [INFO] [stdout] 195 | salvo::oapi::naming::set_namer( [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `salvo` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `salvo`, use `cargo add salvo` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `salvo` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | salvo::oapi::naming::FlexNamer::new() [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `salvo` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `salvo`, use `cargo add salvo` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `salvo` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:315:5 [INFO] [stdout] | [INFO] [stdout] 315 | salvo::oapi::naming::set_namer( [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `salvo` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `salvo`, use `cargo add salvo` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `salvo` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | salvo::oapi::naming::FlexNamer::new() [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `salvo` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `salvo`, use `cargo add salvo` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `ToSchema` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | struct MyObject { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsonBody` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:18:31 [INFO] [stdout] | [INFO] [stdout] 18 | async fn use_string(body: JsonBody>) -> String { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsonBody` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | async fn use_i32(body: JsonBody>) -> String { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsonBody` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:30:28 [INFO] [stdout] | [INFO] [stdout] 30 | async fn use_u64(body: JsonBody>) -> String { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsonBody` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:191:26 [INFO] [stdout] | [INFO] [stdout] 191 | async fn hello(body: JsonBody) -> String { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsonBody` in this scope [INFO] [stdout] --> tests/derive_to_schema_tests.rs:311:29 [INFO] [stdout] | [INFO] [stdout] 311 | async fn new_type(body: JsonBody) -> String { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | let router = Router::new() [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | .push(Router::with_path("i32").post(use_i32)) [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 42 | .push(Router::with_path("u64").post(use_u64)) [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:43:15 [INFO] [stdout] | [INFO] [stdout] 43 | .push(Router::with_path("string").post(use_string)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OpenApi` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | let doc = OpenApi::new("test api", "0.0.1").merge_router(&router); [INFO] [stdout] | ^^^^^^^ use of undeclared type `OpenApi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:201:18 [INFO] [stdout] | [INFO] [stdout] 201 | let router = Router::new().push(Router::with_path("hello").post(hello)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:201:37 [INFO] [stdout] | [INFO] [stdout] 201 | let router = Router::new().push(Router::with_path("hello").post(hello)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OpenApi` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:203:15 [INFO] [stdout] | [INFO] [stdout] 203 | let doc = OpenApi::new("test api", "0.0.1").merge_router(&router); [INFO] [stdout] | ^^^^^^^ use of undeclared type `OpenApi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:321:18 [INFO] [stdout] | [INFO] [stdout] 321 | let router = Router::new().push(Router::with_path("new-type").post(new_type)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:321:37 [INFO] [stdout] | [INFO] [stdout] 321 | let router = Router::new().push(Router::with_path("new-type").post(new_type)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OpenApi` [INFO] [stdout] --> tests/derive_to_schema_tests.rs:323:15 [INFO] [stdout] | [INFO] [stdout] 323 | let doc = OpenApi::new("test api", "0.0.1").merge_router(&router); [INFO] [stdout] | ^^^^^^^ use of undeclared type `OpenApi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `salvo-oapi-macros` (test "derive_to_schema_tests") due to 56 previous errors [INFO] running `Command { std: "docker" "inspect" "7a541c434a01c2706fb730a3c71d3b815cf78121515467414e4491ee215d63da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a541c434a01c2706fb730a3c71d3b815cf78121515467414e4491ee215d63da", kill_on_drop: false }` [INFO] [stdout] 7a541c434a01c2706fb730a3c71d3b815cf78121515467414e4491ee215d63da