[INFO] fetching crate ckb_schemars 0.8.22... [INFO] testing ckb_schemars-0.8.22 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate ckb_schemars 0.8.22 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate ckb_schemars 0.8.22 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate ckb_schemars 0.8.22 [INFO] tweaked toml for crates.io crate ckb_schemars 0.8.22 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ckb_schemars 0.8.22 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate ckb_schemars 0.8.22 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" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8cca89817ca41f9e0d19599f60c510d9f74231c9c388827d6b0591f5ef0e9d27 [INFO] running `Command { std: "docker" "start" "-a" "8cca89817ca41f9e0d19599f60c510d9f74231c9c388827d6b0591f5ef0e9d27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8cca89817ca41f9e0d19599f60c510d9f74231c9c388827d6b0591f5ef0e9d27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cca89817ca41f9e0d19599f60c510d9f74231c9c388827d6b0591f5ef0e9d27", kill_on_drop: false }` [INFO] [stdout] 8cca89817ca41f9e0d19599f60c510d9f74231c9c388827d6b0591f5ef0e9d27 [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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c3084f7f9b54fbdf3d20851f03d681b0264c612d8cc423db4b28bbb8dd2fb57a [INFO] running `Command { std: "docker" "start" "-a" "c3084f7f9b54fbdf3d20851f03d681b0264c612d8cc423db4b28bbb8dd2fb57a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Compiling serde_json v1.0.139 [INFO] [stderr] Compiling ckb_schemars v0.8.22 (/opt/rustwide/workdir) [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling ryu v1.0.19 [INFO] [stderr] Compiling dyn-clone v1.0.18 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling serde_derive_internals v0.26.0 [INFO] [stderr] Compiling ckb_schemars_derive v0.8.22 [INFO] [stdout] warning: unexpected `cfg` condition name: `std_atomic` [INFO] [stdout] --> src/json_schema_impls/mod.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | #[cfg(std_atomic)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(std_atomic)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(std_atomic)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `std_atomic64` [INFO] [stdout] --> src/json_schema_impls/atomic.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(std_atomic64)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(std_atomic64)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(std_atomic64)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `std_atomic64` [INFO] [stdout] --> src/json_schema_impls/atomic.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | #[cfg(std_atomic64)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(std_atomic64)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(std_atomic64)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.14s [INFO] running `Command { std: "docker" "inspect" "c3084f7f9b54fbdf3d20851f03d681b0264c612d8cc423db4b28bbb8dd2fb57a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3084f7f9b54fbdf3d20851f03d681b0264c612d8cc423db4b28bbb8dd2fb57a", kill_on_drop: false }` [INFO] [stdout] c3084f7f9b54fbdf3d20851f03d681b0264c612d8cc423db4b28bbb8dd2fb57a [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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15eb0bc14f9806bad6f03f0e4cddb29ffb274fc172cf2a3f5a4c6ef48fa3b912 [INFO] running `Command { std: "docker" "start" "-a" "15eb0bc14f9806bad6f03f0e4cddb29ffb274fc172cf2a3f5a4c6ef48fa3b912", kill_on_drop: false }` [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling target-triple v0.1.4 [INFO] [stderr] Compiling winnow v0.7.3 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stdout] warning: unexpected `cfg` condition name: `std_atomic` [INFO] [stdout] --> src/json_schema_impls/mod.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | #[cfg(std_atomic)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(std_atomic)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(std_atomic)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stdout] warning: unexpected `cfg` condition name: `std_atomic64` [INFO] [stdout] --> src/json_schema_impls/atomic.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(std_atomic64)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(std_atomic64)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(std_atomic64)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `std_atomic64` [INFO] [stdout] --> src/json_schema_impls/atomic.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | #[cfg(std_atomic64)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(std_atomic64)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(std_atomic64)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling toml_edit v0.22.24 [INFO] [stderr] Compiling toml v0.8.20 [INFO] [stderr] Compiling trybuild v1.0.103 [INFO] [stderr] Compiling ckb_schemars v0.8.22 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `schemars` [INFO] [stdout] --> examples/custom_settings.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use schemars::{r#gen::SchemaSettings, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` 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 `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` 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 `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/flatten.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/default.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` 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 `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/result.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> examples/custom_settings.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use schemars::{r#gen::SchemaSettings, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` 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 `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/range.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `schemars` [INFO] [stdout] --> examples/custom_serialization.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use schemars::schema::{Schema, SchemaObject}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` 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 `schemars` [INFO] [stdout] --> examples/custom_serialization.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaGenerator, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb_schemars` (test "range") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ckb_schemars` (test "result") due to 3 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/default.rs:29:3 [INFO] [stdout] | [INFO] [stdout] 29 | #[serde(default)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 30 + #[derive(Deserialize, JsonSchema, JsonSchema_repr, Serialize)] [INFO] [stdout] 31 | struct MyStruct { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/flatten.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[serde(default)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/flatten.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | #[schemars(rename = "Flat")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 19 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 20 | struct Deep1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> examples/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use schemars::{schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/default.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | #[serde(serialize_with = "custom_serialize")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/default.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | #[serde( [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/default.rs:45:3 [INFO] [stdout] | [INFO] [stdout] 45 | #[serde(default = "ten_and_true")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 46 + #[derive(Deserialize, JsonSchema, JsonSchema_repr, Serialize)] [INFO] [stdout] 47 | struct MyStruct2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/flatten.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | #[schemars(flatten)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/flatten.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | #[serde(flatten)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> examples/custom_serialization.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaGenerator, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/flatten.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | #[serde(flatten)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/flatten.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | #[serde(default)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/default.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | #[serde(default = "six")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb_schemars` (example "custom_settings") due to 2 previous errors [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/transparent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` 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 `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb_schemars` (example "main") due to 1 previous error [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` 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 `schemars` [INFO] [stdout] --> tests/docs.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/docs.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` 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 `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` 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 `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/schema_with_enum.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> examples/schemars_attrs.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use schemars::{schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/docs.rs:147:3 [INFO] [stdout] | [INFO] [stdout] 147 | #[schemars(description = "New description")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 148 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 149 | struct OverrideDocs { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/schema_with_struct.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/docs.rs:150:7 [INFO] [stdout] | [INFO] [stdout] 150 | #[schemars(title = "My integer", description = "This is an i32")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/docs.rs:154:7 [INFO] [stdout] | [INFO] [stdout] 154 | #[schemars(title = "", description = "")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> examples/validate.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use schemars::{schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/time.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/property_name.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::JsonSchema; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/util/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{r#gen::SchemaSettings, schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `schemars` [INFO] [stdout] --> tests/enum.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{JsonSchema, Map}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_struct.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[schemars(schema_with = "schema_fn")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:13:3 [INFO] [stdout] | [INFO] [stdout] 13 | #[schemars(rename_all = "camelCase")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 15 | pub enum External { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb_schemars` (test "docs") due to 7 previous errors [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | #[schemars(schema_with = "schema_fn")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 15 | pub enum External { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_struct.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | #[schemars(schema_with = "schema_fn")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_struct.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | #[schemars(schema_with = "schema_fn")] DoesntImplementJsonSchema, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | NewType(#[schemars(schema_with = "schema_fn")] DoesntImplementJsonSchema), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 15 | pub enum External { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/property_name.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[serde(rename_all = "camelCase")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 8 + #[derive(Deserialize, JsonSchema, JsonSchema_repr, Serialize)] [INFO] [stdout] 9 | struct MyStruct { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/property_name.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[serde(rename = "new_name_1")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/property_name.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[serde(rename = "ignored")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_struct.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | #[schemars(schema_with = "schema_fn")] DoesntImplementJsonSchema, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/property_name.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[schemars(rename = "new_name_2")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb_schemars` (test "flatten") due to 9 previous errors [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | #[schemars(schema_with = "schema_fn")] DoesntImplementJsonSchema, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 15 | pub enum External { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_struct.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Newtype(#[schemars(schema_with = "schema_fn")] DoesntImplementJsonSchema); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | #[schemars(schema_with = "schema_fn")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 15 | pub enum External { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_struct.rs:47:3 [INFO] [stdout] | [INFO] [stdout] 47 | #[schemars(transparent)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 48 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 49 | pub struct TransparentNewtype(#[schemars(schema_with = "schema_fn")] DoesntImplementJsonSchema); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:34:3 [INFO] [stdout] | [INFO] [stdout] 34 | #[schemars(tag = "typeProperty")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 36 | pub enum Internal { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | #[schemars(schema_with = "schema_fn")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 36 | pub enum Internal { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_struct.rs:48:33 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct TransparentNewtype(#[schemars(schema_with = "schema_fn")] DoesntImplementJsonSchema); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `validate` in this scope [INFO] [stdout] --> examples/validate.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[validate(range(min = 1, max = 10))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `validate` is an attribute that can be used by the derive macro `JsonSchema`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `validate` in this scope [INFO] [stdout] --> examples/validate.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[validate(required)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `validate` is an attribute that can be used by the derive macro `JsonSchema`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `validate` in this scope [INFO] [stdout] --> examples/validate.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | StringNewType(#[validate(phone)] String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `validate` is an attribute that can be used by the derive macro `JsonSchema`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 13 + #[derive(JsonSchema)] [INFO] [stdout] 14 | pub enum MyEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | NewType(#[schemars(schema_with = "schema_fn")] DoesntImplementJsonSchema), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 36 | pub enum Internal { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `validate` in this scope [INFO] [stdout] --> examples/validate.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | #[validate(length(min = 1, max = 100))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `validate` is an attribute that can be used by the derive macro `JsonSchema`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 13 + #[derive(JsonSchema)] [INFO] [stdout] 14 | pub enum MyEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | #[schemars(schema_with = "schema_fn")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 36 | pub enum Internal { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:51:3 [INFO] [stdout] | [INFO] [stdout] 51 | #[schemars(untagged)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 52 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 53 | pub enum Untagged { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb_schemars` (test "time") due to 3 previous errors [INFO] [stderr] error: could not compile `ckb_schemars` (test "property_name") due to 7 previous errors [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | #[schemars(schema_with = "schema_fn")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 52 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 53 | pub enum Untagged { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/transparent.rs:13:3 [INFO] [stdout] | [INFO] [stdout] 13 | #[serde(transparent)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(Deserialize, JsonSchema, JsonSchema_repr, Serialize)] [INFO] [stdout] 15 | pub struct TransparentStruct { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | NewType(#[schemars(schema_with = "schema_fn")] DoesntImplementJsonSchema), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 52 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 53 | pub enum Untagged { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb_schemars` (test "default") due to 8 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `schemars` [INFO] [stdout] --> tests/schema_with_struct.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | fn schema_fn(generator: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use ckb_schemars::gen; [INFO] [stdout] | [INFO] [stdout] help: if you import `gen`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 5 - fn schema_fn(generator: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] 5 + fn schema_fn(generator: &mut r#gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | #[schemars(schema_with = "schema_fn")] DoesntImplementJsonSchema, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 52 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 53 | pub enum Untagged { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `schemars` [INFO] [stdout] --> tests/schema_with_struct.rs:5:67 [INFO] [stdout] | [INFO] [stdout] 5 | fn schema_fn(generator: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use ckb_schemars::schema; [INFO] [stdout] | [INFO] [stdout] help: if you import `schema`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 5 - fn schema_fn(generator: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] 5 + fn schema_fn(generator: &mut schemars::r#gen::SchemaGenerator) -> schema::Schema { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | #[schemars(schema_with = "schema_fn")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 52 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 53 | pub enum Untagged { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:72:3 [INFO] [stdout] | [INFO] [stdout] 72 | #[schemars(tag = "t", content = "c")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 73 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 74 | pub enum Adjacent { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:75:11 [INFO] [stdout] | [INFO] [stdout] 75 | #[schemars(schema_with = "schema_fn")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 73 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 74 | pub enum Adjacent { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> examples/schemars_attrs.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[schemars(rename_all = "camelCase", deny_unknown_fields)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 7 | pub struct MyStruct { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:78:15 [INFO] [stdout] | [INFO] [stdout] 78 | NewType(#[schemars(schema_with = "schema_fn")] DoesntImplementJsonSchema), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 73 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 74 | pub enum Adjacent { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> tests/transparent.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | #[serde(with = "TransparentNewType")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is an attribute that can be used by the derive macros `Deserialize`, `JsonSchema`, `JsonSchema_repr` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/transparent.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | #[schemars(transparent)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 21 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 22 | pub struct TransparentNewType(Option); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> examples/schemars_attrs.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[schemars(rename = "myNumber", range(min = 1, max = 10))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb_schemars` (example "validate") due to 5 previous errors [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> examples/schemars_attrs.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[schemars(default)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:80:11 [INFO] [stdout] | [INFO] [stdout] 80 | #[schemars(schema_with = "schema_fn")] DoesntImplementJsonSchema, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 73 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 74 | pub enum Adjacent { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> examples/schemars_attrs.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[schemars(inner(regex(pattern = "^x$")))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/schema_with_enum.rs:83:7 [INFO] [stdout] | [INFO] [stdout] 83 | #[schemars(schema_with = "schema_fn")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 73 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 74 | pub enum Adjacent { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> examples/schemars_attrs.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | #[schemars(untagged)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 19 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 20 | pub enum MyEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> examples/schemars_attrs.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | StringNewType(#[schemars(phone)] String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 19 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 20 | pub enum MyEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/enum.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | #[schemars(rename_all = "camelCase")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 21 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 22 | enum External { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/enum.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | #[schemars(with = "i32")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 21 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 22 | enum External { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> examples/custom_serialization.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[schemars(with = "String")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> examples/custom_serialization.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | #[schemars(schema_with = "make_custom_schema")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> examples/schemars_attrs.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | #[schemars(length(min = 1, max = 100))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 19 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 20 | pub enum MyEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `schemars` [INFO] [stdout] --> tests/schema_with_enum.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | fn schema_fn(generator: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use ckb_schemars::gen; [INFO] [stdout] | [INFO] [stdout] help: if you import `gen`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 5 - fn schema_fn(generator: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] 5 + fn schema_fn(generator: &mut r#gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `schemars` [INFO] [stdout] --> tests/schema_with_enum.rs:5:67 [INFO] [stdout] | [INFO] [stdout] 5 | fn schema_fn(generator: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `schemars` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `schemars`, use `cargo add schemars` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use ckb_schemars::schema; [INFO] [stdout] | [INFO] [stdout] help: if you import `schema`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 5 - fn schema_fn(generator: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema { [INFO] [stdout] 5 + fn schema_fn(generator: &mut schemars::r#gen::SchemaGenerator) -> schema::Schema { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb_schemars` (test "schema_with_struct") due to 12 previous errors [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/enum.rs:43:3 [INFO] [stdout] | [INFO] [stdout] 43 | #[schemars(tag = "typeProperty")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 44 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 45 | enum Internal { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/enum.rs:54:7 [INFO] [stdout] | [INFO] [stdout] 54 | #[schemars(with = "i32")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 44 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 45 | enum Internal { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/enum.rs:65:3 [INFO] [stdout] | [INFO] [stdout] 65 | #[schemars(untagged)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 66 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 67 | enum Untagged { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb_schemars` (test "schema_with_enum") due to 24 previous errors [INFO] [stderr] error: could not compile `ckb_schemars` (test "transparent") due to 6 previous errors [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/enum.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | #[schemars(with = "i32")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 66 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 67 | enum Untagged { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/enum.rs:87:3 [INFO] [stdout] | [INFO] [stdout] 87 | #[schemars(tag = "t", content = "c")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 88 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 89 | enum Adjacent { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/enum.rs:99:7 [INFO] [stdout] | [INFO] [stdout] 99 | #[schemars(with = "i32")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 88 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 89 | enum Adjacent { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `schemars` in this scope [INFO] [stdout] --> tests/enum.rs:110:3 [INFO] [stdout] | [INFO] [stdout] 110 | #[schemars(tag = "typeProperty")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `schemars` is an attribute that can be used by the derive macros `JsonSchema` and `JsonSchema_repr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 111 + #[derive(JsonSchema, JsonSchema_repr)] [INFO] [stdout] 112 | enum SimpleInternal { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb_schemars` (test "enum") due to 12 previous errors [INFO] [stdout] error[E0599]: no function or associated item named `json_schema` found for struct `std::string::String` in the current scope [INFO] [stdout] --> examples/custom_serialization.rs:24:46 [INFO] [stdout] | [INFO] [stdout] 24 | let mut schema: SchemaObject = ::json_schema(generator).into(); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `std::string::String` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `std::string::String` consider using one of the following associated functions: [INFO] [stdout] std::string::String::new [INFO] [stdout] std::string::String::with_capacity [INFO] [stdout] std::string::String::try_with_capacity [INFO] [stdout] std::string::String::from_utf8 [INFO] [stdout] and 9 others [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/string.rs:444:5 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `JsonSchema` which provides `json_schema` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use ckb_schemars::JsonSchema; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb_schemars` (example "schemars_attrs") due to 8 previous errors [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb_schemars` (example "custom_serialization") due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "15eb0bc14f9806bad6f03f0e4cddb29ffb274fc172cf2a3f5a4c6ef48fa3b912", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15eb0bc14f9806bad6f03f0e4cddb29ffb274fc172cf2a3f5a4c6ef48fa3b912", kill_on_drop: false }` [INFO] [stdout] 15eb0bc14f9806bad6f03f0e4cddb29ffb274fc172cf2a3f5a4c6ef48fa3b912