wasm_component_layer 0.1.18

WebAssembly component model implementation for any backend.
Documentation
Build #2355646 2025-07-27 15:20:57

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.

# rustc version
rustc 1.90.0-nightly (ce5fdd7d4 2025-07-26)# docs.rs version
docsrs 0.6.0 (4b4a3779 2025-07-22)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/wasm_component_layer-0.1.18/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/wasm_component_layer-0.1.18/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250726-1.90.0-nightly-ce5fdd7d4\", \"--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: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 5be36988b061ecf46c3a8fc796ef074ad8b9ca8494e29da2bdd718a45fba87db
[INFO] running `Command { std: "docker" "start" "-a" "5be36988b061ecf46c3a8fc796ef074ad8b9ca8494e29da2bdd718a45fba87db", kill_on_drop: false }`
[INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: func_param, multilevel_resource, option_result, resource, single_component
[INFO] [stderr]     If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true`
[INFO] [stderr]     to the [[example]] target configuration of at least one example.
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting wasm_component_layer v0.1.18 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unnecessary parentheses around closure body
[INFO] [stderr]    --> src/types.rs:343:37
[INFO] [stderr]     |
[INFO] [stderr] 343 |             .filter(|&(_, x, _val)| (&**x == name.as_ref()))
[INFO] [stderr]     |                                     ^                     ^
[INFO] [stderr]     |
[INFO] [stderr] note: the lint level is defined here
[INFO] [stderr]    --> src/lib.rs:1:9
[INFO] [stderr]     |
[INFO] [stderr] 1   | #![deny(warnings)]
[INFO] [stderr]     |         ^^^^^^^^
[INFO] [stderr]     = note: `#[warn(unused_parens)]` implied by `#[warn(warnings)]`
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 343 -             .filter(|&(_, x, _val)| (&**x == name.as_ref()))
[INFO] [stderr] 343 +             .filter(|&(_, x, _val)| &**x == name.as_ref())
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around closure body
[INFO] [stderr]    --> src/values.rs:358:37
[INFO] [stderr]     |
[INFO] [stderr] 358 |             .filter(|&(name, _val)| (&**name == field.as_ref()))
[INFO] [stderr]     |                                     ^                         ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 358 -             .filter(|&(name, _val)| (&**name == field.as_ref()))
[INFO] [stderr] 358 +             .filter(|&(name, _val)| &**name == field.as_ref())
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] error[E0310]: the parameter type `T` may not live long enough
[INFO] [stderr]     --> src/lib.rs:1971:12
[INFO] [stderr]      |
[INFO] [stderr] 1971 |     inner: wasm_runtime_layer::Store<StoreInner<T, E>, E>,
[INFO] [stderr]      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |            |
[INFO] [stderr]      |            the parameter type `T` must be valid for the static lifetime...
[INFO] [stderr]      |            ...so that the type `StoreInner<T, E>` will meet its required lifetime bounds...
[INFO] [stderr]      |
[INFO] [stderr] note: ...that is required by this bound
[INFO] [stderr]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wasm_runtime_layer-0.6.0/src/lib.rs:734:21
[INFO] [stderr]      |
[INFO] [stderr] 734  | pub struct Store<T: 'static, E: WasmEngine> {
[INFO] [stderr]      |                     ^^^^^^^
[INFO] [stderr] help: consider adding an explicit lifetime bound
[INFO] [stderr]      |
[INFO] [stderr] 1969 | pub struct Store<T: 'static, E: backend::WasmEngine> {
[INFO] [stderr]      |                   +++++++++
[INFO] [stderr] 
[INFO] [stderr] error[E0310]: the parameter type `T` may not live long enough
[INFO] [stderr]     --> src/lib.rs:2035:12
[INFO] [stderr]      |
[INFO] [stderr] 2035 |     inner: wasm_runtime_layer::StoreContext<'a, StoreInner<T, E>, E>,
[INFO] [stderr]      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |            |
[INFO] [stderr]      |            the parameter type `T` must be valid for the static lifetime...
[INFO] [stderr]      |            ...so that the type `StoreInner<T, E>` will meet its required lifetime bounds...
[INFO] [stderr]      |
[INFO] [stderr] note: ...that is required by this bound
[INFO] [stderr]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wasm_runtime_layer-0.6.0/src/lib.rs:772:32
[INFO] [stderr]      |
[INFO] [stderr] 772  | pub struct StoreContext<'a, T: 'static, E: WasmEngine> {
[INFO] [stderr]      |                                ^^^^^^^
[INFO] [stderr] help: consider adding an explicit lifetime bound
[INFO] [stderr]      |
[INFO] [stderr] 2033 | pub struct StoreContext<'a, T: 'a + 'static, E: backend::WasmEngine> {
[INFO] [stderr]      |                                   +++++++++
[INFO] [stderr] 
[INFO] [stderr] error[E0310]: the parameter type `T` may not live long enough
[INFO] [stderr]     --> src/lib.rs:2058:12
[INFO] [stderr]      |
[INFO] [stderr] 2058 |     inner: wasm_runtime_layer::StoreContextMut<'a, StoreInner<T, E>, E>,
[INFO] [stderr]      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |            |
[INFO] [stderr]      |            the parameter type `T` must be valid for the static lifetime...
[INFO] [stderr]      |            ...so that the type `StoreInner<T, E>` will meet its required lifetime bounds...
[INFO] [stderr]      |
[INFO] [stderr] note: ...that is required by this bound
[INFO] [stderr]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wasm_runtime_layer-0.6.0/src/lib.rs:795:35
[INFO] [stderr]      |
[INFO] [stderr] 795  | pub struct StoreContextMut<'a, T: 'static, E: WasmEngine> {
[INFO] [stderr]      |                                   ^^^^^^^
[INFO] [stderr] help: consider adding an explicit lifetime bound
[INFO] [stderr]      |
[INFO] [stderr] 2056 | pub struct StoreContextMut<'a, T: 'a + 'static, E: backend::WasmEngine> {
[INFO] [stderr]      |                                      +++++++++
[INFO] [stderr] 
[INFO] [stderr] error[E0310]: the parameter type `T` may not live long enough
[INFO] [stderr]     --> src/lib.rs:1976:48
[INFO] [stderr]      |
[INFO] [stderr] 1976 |     pub fn new(engine: &Engine<E>, data: T) -> Self {
[INFO] [stderr]      |                                                ^^^^
[INFO] [stderr]      |                                                |
[INFO] [stderr]      |                                                the parameter type `T` must be valid for the static lifetime...
[INFO] [stderr]      |                                                ...so that the type `StoreInner<T, E>` will meet its required lifetime bounds
[INFO] [stderr]      |
[INFO] [stderr] help: consider adding an explicit lifetime bound
[INFO] [stderr]      |
[INFO] [stderr] 1974 | impl<T: 'static, E: backend::WasmEngine> Store<T, E> {
[INFO] [stderr]      |       +++++++++
[INFO] [stderr] 
[INFO] [stderr] error[E0310]: the parameter type `T` may not live long enough
[INFO] [stderr]     --> src/lib.rs:2105:29
[INFO] [stderr]      |
[INFO] [stderr] 2105 |     fn as_context(&self) -> StoreContext<Self::UserState, Self::Engine> {
[INFO] [stderr]      |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |                             |
[INFO] [stderr]      |                             the parameter type `T` must be valid for the static lifetime...
[INFO] [stderr]      |                             ...so that the type `StoreInner<T, E>` will meet its required lifetime bounds
[INFO] [stderr]      |
[INFO] [stderr] help: consider adding an explicit lifetime bound
[INFO] [stderr]      |
[INFO] [stderr] 2100 | impl<T: 'static, E: backend::WasmEngine> AsContext for Store<T, E> {
[INFO] [stderr]      |       +++++++++
[INFO] [stderr] 
[INFO] [stderr] error[E0310]: the parameter type `T` may not live long enough
[INFO] [stderr]     --> src/lib.rs:2113:37
[INFO] [stderr]      |
[INFO] [stderr] 2113 |     fn as_context_mut(&mut self) -> StoreContextMut<Self::UserState, Self::Engine> {
[INFO] [stderr]      |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |                                     |
[INFO] [stderr]      |                                     the parameter type `T` must be valid for the static lifetime...
[INFO] [stderr]      |                                     ...so that the type `StoreInner<T, E>` will meet its required lifetime bounds
[INFO] [stderr]      |
[INFO] [stderr] help: consider adding an explicit lifetime bound
[INFO] [stderr]      |
[INFO] [stderr] 2112 | impl<T: 'static, E: backend::WasmEngine> AsContextMut for Store<T, E> {
[INFO] [stderr]      |       +++++++++
[INFO] [stderr] 
[INFO] [stderr] error[E0310]: the associated type `<T as AsContext>::UserState` may not live long enough
[INFO] [stderr]     --> src/lib.rs:2125:29
[INFO] [stderr]      |
[INFO] [stderr] 2125 |     fn as_context(&self) -> StoreContext<Self::UserState, Self::Engine> {
[INFO] [stderr]      |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |                             |
[INFO] [stderr]      |                             the associated type `<T as AsContext>::UserState` must be valid for the static lifetime...
[INFO] [stderr]      |                             ...so that the type `StoreInner<<T as AsContext>::UserState, <T as AsContext>::Engine>` will meet its required lifetime bounds
[INFO] [stderr]      |
[INFO] [stderr] help: consider adding an explicit lifetime bound
[INFO] [stderr]      |
[INFO] [stderr] 2125 |     fn as_context(&self) -> StoreContext<Self::UserState, Self::Engine> where <T as AsContext>::UserState: 'static {
[INFO] [stderr]      |                                                                         ++++++++++++++++++++++++++++++++++++++++++
[INFO] [stderr] 
[INFO] [stderr] error[E0310]: the associated type `<T as AsContext>::UserState` may not live long enough
[INFO] [stderr]     --> src/lib.rs:2135:29
[INFO] [stderr]      |
[INFO] [stderr] 2135 |     fn as_context(&self) -> StoreContext<Self::UserState, Self::Engine> {
[INFO] [stderr]      |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |                             |
[INFO] [stderr]      |                             the associated type `<T as AsContext>::UserState` must be valid for the static lifetime...
[INFO] [stderr]      |                             ...so that the type `StoreInner<<T as AsContext>::UserState, <T as AsContext>::Engine>` will meet its required lifetime bounds
[INFO] [stderr]      |
[INFO] [stderr] help: consider adding an explicit lifetime bound
[INFO] [stderr]      |
[INFO] [stderr] 2135 |     fn as_context(&self) -> StoreContext<Self::UserState, Self::Engine> where <T as AsContext>::UserState: 'static {
[INFO] [stderr]      |                                                                         ++++++++++++++++++++++++++++++++++++++++++
[INFO] [stderr] 
[INFO] [stderr] error[E0310]: the associated type `<T as AsContext>::UserState` may not live long enough
[INFO] [stderr]     --> src/lib.rs:2141:37
[INFO] [stderr]      |
[INFO] [stderr] 2141 |     fn as_context_mut(&mut self) -> StoreContextMut<Self::UserState, Self::Engine> {
[INFO] [stderr]      |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |                                     |
[INFO] [stderr]      |                                     the associated type `<T as AsContext>::UserState` must be valid for the static lifetime...
[INFO] [stderr]      |                                     ...so that the type `StoreInner<<T as AsContext>::UserState, <T as AsContext>::Engine>` will meet its required lifetime bounds
[INFO] [stderr]      |
[INFO] [stderr] help: consider adding an explicit lifetime bound
[INFO] [stderr]      |
[INFO] [stderr] 2141 |     fn as_context_mut(&mut self) -> StoreContextMut<Self::UserState, Self::Engine> where <T as AsContext>::UserState: 'static {
[INFO] [stderr]      |                                                                                    ++++++++++++++++++++++++++++++++++++++++++
[INFO] [stderr] 
[INFO] [stderr] error[E0310]: the parameter type `T` may not live long enough
[INFO] [stderr]     --> src/lib.rs:2151:29
[INFO] [stderr]      |
[INFO] [stderr] 2151 |     fn as_context(&self) -> StoreContext<Self::UserState, Self::Engine> {
[INFO] [stderr]      |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |                             |
[INFO] [stderr]      |                             the parameter type `T` must be valid for the static lifetime...
[INFO] [stderr]      |                             ...so that the type `StoreInner<T, E>` will meet its required lifetime bounds
[INFO] [stderr]      |
[INFO] [stderr] help: consider adding an explicit lifetime bound
[INFO] [stderr]      |
[INFO] [stderr] 2146 | impl<'a, T: 'a + 'static, E: backend::WasmEngine> AsContext for StoreContext<'a, T, E> {
[INFO] [stderr]      |                +++++++++
[INFO] [stderr] 
[INFO] [stderr] error[E0310]: the parameter type `T` may not live long enough
[INFO] [stderr]     --> src/lib.rs:2163:29
[INFO] [stderr]      |
[INFO] [stderr] 2163 |     fn as_context(&self) -> StoreContext<Self::UserState, Self::Engine> {
[INFO] [stderr]      |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |                             |
[INFO] [stderr]      |                             the parameter type `T` must be valid for the static lifetime...
[INFO] [stderr]      |                             ...so that the type `StoreInner<T, E>` will meet its required lifetime bounds
[INFO] [stderr]      |
[INFO] [stderr] help: consider adding an explicit lifetime bound
[INFO] [stderr]      |
[INFO] [stderr] 2158 | impl<'a, T: 'a + 'static, E: backend::WasmEngine> AsContext for StoreContextMut<'a, T, E> {
[INFO] [stderr]      |                +++++++++
[INFO] [stderr] 
[INFO] [stderr] error[E0310]: the parameter type `T` may not live long enough
[INFO] [stderr]     --> src/lib.rs:2171:37
[INFO] [stderr]      |
[INFO] [stderr] 2171 |     fn as_context_mut(&mut self) -> StoreContextMut<Self::UserState, Self::Engine> {
[INFO] [stderr]      |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |                                     |
[INFO] [stderr]      |                                     the parameter type `T` must be valid for the static lifetime...
[INFO] [stderr]      |                                     ...so that the type `StoreInner<T, E>` will meet its required lifetime bounds
[INFO] [stderr]      |
[INFO] [stderr] help: consider adding an explicit lifetime bound
[INFO] [stderr]      |
[INFO] [stderr] 2170 | impl<'a, T: 'a + 'static, E: backend::WasmEngine> AsContextMut for StoreContextMut<'a, T, E> {
[INFO] [stderr]      |                +++++++++
[INFO] [stderr] 
[INFO] [stderr] For more information about this error, try `rustc --explain E0310`.
[INFO] [stderr] warning: `wasm_component_layer` (lib doc) generated 2 warnings
[INFO] [stderr] error: could not document `wasm_component_layer`
[INFO] running `Command { std: "docker" "inspect" "5be36988b061ecf46c3a8fc796ef074ad8b9ca8494e29da2bdd718a45fba87db", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5be36988b061ecf46c3a8fc796ef074ad8b9ca8494e29da2bdd718a45fba87db", kill_on_drop: false }`
[INFO] [stdout] 5be36988b061ecf46c3a8fc796ef074ad8b9ca8494e29da2bdd718a45fba87db