Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.
# error kind ExecutionFailed
# pre-build errors command failed: exit status: 101
# rustc version rustc 1.98.0-nightly (1f087276b 2026-06-13)
# docs.rs version docsrs 0.0.0 (886bc7a22b1adc4b387ce1343447fe3af98d9ce5 2026-06-14 )
# build log [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "bc1bc3351d4f068c24682529be1a26742520220bd7e2fd3d24149bd4f74e0434" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260613-1.98.0-nightly-1f087276b\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Checking near-sdk v5.28.1 [INFO] [stderr] error: 1. 🔨️ Use `cargo near build` instead of `cargo build` to compile your contract [INFO] [stderr] 💡 Install cargo-near from https://github.com/near/cargo-near [INFO] [stderr] [INFO] [stderr] 2. ✅ Use `cargo check --target wasm32-unknown-unknown` instead of `cargo check` to error-check your contract [INFO] [stderr] [INFO] [stderr] 3. ⚙️ Only following cfg-s are considered VALID for `near-sdk`: [INFO] [stderr] - `#[cfg(near)]` (set by `cargo-near`. uses on-chain host-functions) [INFO] [stderr] - `#[cfg(target_family = "wasm")]` (uses pure-Rust fallbacks. not for on-chain use) [INFO] [stderr] - `#[cfg(feature = "non-contract-usage")]` (intended for use of `near-sdk` in non-contract environment. NOTE: consider using leaf crates) [INFO] [stderr] - `#[cfg(feature = "unit-testing")]` (intended for use of `near-sdk` as one of `[dev-dependencies]`) [INFO] [stderr] - `#[cfg(feature = "__abi-generate")]` [INFO] [stderr] - `#[cfg(test)]` [INFO] [stderr] - `#[cfg(doctest)]` [INFO] [stderr] - `#[cfg(docsrs)]` (set by docs.rs when building documentation) [INFO] [stderr] - `#[cfg(clippy)]` [INFO] [stderr] ⚠️ a cfg, which is not one of the above, results in CURRENT compilation error to be emitted. [INFO] [stderr] [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/near-sdk-5.28.1/src/lib.rs:142:1 [INFO] [stderr] | [INFO] [stderr] 142 | / compile_error!( [INFO] [stderr] 143 | | r#"1. 🔨️ Use `cargo near build` instead of `cargo build` to compile your contract [INFO] [stderr] 144 | | 💡 Install cargo-near from https://github.com/near/cargo-near [INFO] [stderr] ... | [INFO] [stderr] 159 | | "# [INFO] [stderr] 160 | | ); [INFO] [stderr] | |_^ [INFO] [stderr] [INFO] [stderr] error: could not compile `near-sdk` (lib) due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "bc1bc3351d4f068c24682529be1a26742520220bd7e2fd3d24149bd4f74e0434", kill_on_drop: false }`