custom-elements 0.2.1

A CustomElement trait to create Rust/WASM Web Components/Custom Elements easily without writing any JavaScript.
Documentation

Build #3494965 2026-06-06 05:58:45

# rustc version rustc 1.98.0-nightly (8954863c8 2026-06-05)

# docs.rs version docsrs 0.0.0 (39849b9c22c419f6b690c8d2213455bc7426a6b8 2026-06-03 )

# 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" "c086b53a319bd2617624261f1a18699848ef72c8157beeb0eb5061edf501b67c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260605-1.98.0-nightly-8954863c8\", \"--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] Documenting custom-elements v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:5:43 [INFO] [stderr] | [INFO] [stderr] 5 | //! This crate provides a [CustomElement][CustomElement] trait that, when implemented, allows you to encapsulate any Rust structure a... [INFO] [stderr] | ------------- ^^^^^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 5 - //! This crate provides a [CustomElement][CustomElement] trait that, when implemented, allows you to encapsulate any Rust structure as a reusable web component without writing any JavaScript. In theory it should be usable with any Rust front-end framework. [INFO] [stderr] 5 + //! This crate provides a [CustomElement] trait that, when implemented, allows you to encapsulate any Rust structure as a reusable web component without writing any JavaScript. In theory it should be usable with any Rust front-end framework. [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:57:57 [INFO] [stderr] | [INFO] [stderr] 57 | /// Note that your component should implement [Default][std::default::Default], which allows the [INFO] [stderr] | ------- ^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 57 - /// Note that your component should implement [Default][std::default::Default], which allows the [INFO] [stderr] 57 + /// Note that your component should implement [Default], which allows the [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `custom-elements` (lib doc) generated 2 warnings [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.49s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/custom_elements/index.html [INFO] running `Command { std: "docker" "inspect" "c086b53a319bd2617624261f1a18699848ef72c8157beeb0eb5061edf501b67c", kill_on_drop: false }`