mlua-extras 11.6.0

Extra helpers and functionality built on top of mlua for embedded lua development
Build #2871338 2026-02-03 23:41:09

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.95.0-nightly (f60a0f1bc 2026-02-02)

# docs.rs version docsrs 0.1.0 (db72ef84 2026-01-29 )

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/mlua-extras-11.6.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/mlua-extras-11.6.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--features" "mlua lua54 send async derive vendored" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260202-1.95.0-nightly-f60a0f1bc\", \"--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] 618c13ceaf597fb7e1e285615f036f2d6b67a852c732698cf81c6d257e9c81d1 [INFO] running `Command { std: "docker" "start" "-a" "618c13ceaf597fb7e1e285615f036f2d6b67a852c732698cf81c6d257e9c81d1", kill_on_drop: false }` [INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: function_signatures, macros, module, path, require, typed, typed_v2 [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 mlua-extras v11.6.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0053]: method `add_async_method` has an incompatible type for trait [INFO] [stderr] --> src/typed/class/wrapped.rs:188:83 [INFO] [stderr] | [INFO] [stderr] 188 | fn add_async_method<'s, S: ?Sized + AsRef<str>, A, R, M, MR>(&mut self, name: &S, method: M) [INFO] [stderr] | - expected this type parameter ^^ expected type parameter `S`, found `&S` [INFO] [stderr] | [INFO] [stderr] note: type in trait [INFO] [stderr] --> src/typed/class/mod.rs:85:76 [INFO] [stderr] | [INFO] [stderr] 85 | fn add_async_method<'s, S: Into<String>, A, R, M, MR>(&mut self, name: S, method: M) [INFO] [stderr] | ^ [INFO] [stderr] = note: expected signature `fn(&mut typed::class::wrapped::WrappedBuilder<'_, _>, _, _)` [INFO] [stderr] found signature `fn(&mut typed::class::wrapped::WrappedBuilder<'_, _>, &_, _)` [INFO] [stderr] help: change the parameter type to match the trait [INFO] [stderr] | [INFO] [stderr] 188 - fn add_async_method<'s, S: ?Sized + AsRef<str>, A, R, M, MR>(&mut self, name: &S, method: M) [INFO] [stderr] 188 + fn add_async_method<'s, S: ?Sized + AsRef<str>, A, R, M, MR>(&mut self, name: S, method: M) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0053]: method `add_async_method_with` has an incompatible type for trait [INFO] [stderr] --> src/typed/class/wrapped.rs:200:91 [INFO] [stderr] | [INFO] [stderr] 200 | fn add_async_method_with<'s, S: ?Sized + AsRef<str>, A, R, M, MR, G>(&mut self, name: &S, method: M, _generator: G) [INFO] [stderr] | - expected this type parameter ^^ expected type parameter `S`, found `&S` [INFO] [stderr] | [INFO] [stderr] note: type in trait [INFO] [stderr] --> src/typed/class/mod.rs:98:84 [INFO] [stderr] | [INFO] [stderr] 98 | fn add_async_method_with<'s, S: Into<String>, A, R, M, MR, G>(&mut self, name: S, method: M, generator: G) [INFO] [stderr] | ^ [INFO] [stderr] = note: expected signature `fn(&mut typed::class::wrapped::WrappedBuilder<'_, _>, _, _, _)` [INFO] [stderr] found signature `fn(&mut typed::class::wrapped::WrappedBuilder<'_, _>, &_, _, _)` [INFO] [stderr] help: change the parameter type to match the trait [INFO] [stderr] | [INFO] [stderr] 200 - fn add_async_method_with<'s, S: ?Sized + AsRef<str>, A, R, M, MR, G>(&mut self, name: &S, method: M, _generator: G) [INFO] [stderr] 200 + fn add_async_method_with<'s, S: ?Sized + AsRef<str>, A, R, M, MR, G>(&mut self, name: S, method: M, _generator: G) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0053]: method `add_async_method_mut` has an incompatible type for trait [INFO] [stderr] --> src/typed/class/wrapped.rs:212:87 [INFO] [stderr] | [INFO] [stderr] 212 | fn add_async_method_mut<'s, S: ?Sized + AsRef<str>, A, R, M, MR>(&mut self, name: &S, method: M) [INFO] [stderr] | - expected this type parameter ^^ expected type parameter `S`, found `&S` [INFO] [stderr] | [INFO] [stderr] note: type in trait [INFO] [stderr] --> src/typed/class/mod.rs:109:80 [INFO] [stderr] | [INFO] [stderr] 109 | fn add_async_method_mut<'s, S: Into<String>, A, R, M, MR>(&mut self, name: S, method: M) [INFO] [stderr] | ^ [INFO] [stderr] = note: expected signature `fn(&mut typed::class::wrapped::WrappedBuilder<'_, _>, _, _)` [INFO] [stderr] found signature `fn(&mut typed::class::wrapped::WrappedBuilder<'_, _>, &_, _)` [INFO] [stderr] help: change the parameter type to match the trait [INFO] [stderr] | [INFO] [stderr] 212 - fn add_async_method_mut<'s, S: ?Sized + AsRef<str>, A, R, M, MR>(&mut self, name: &S, method: M) [INFO] [stderr] 212 + fn add_async_method_mut<'s, S: ?Sized + AsRef<str>, A, R, M, MR>(&mut self, name: S, method: M) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0053]: method `add_async_method_mut_with` has an incompatible type for trait [INFO] [stderr] --> src/typed/class/wrapped.rs:224:95 [INFO] [stderr] | [INFO] [stderr] 224 | fn add_async_method_mut_with<'s, S: ?Sized + AsRef<str>, A, R, M, MR, G>(&mut self, name: &S, method: M, _generator: G) [INFO] [stderr] | - expected this type parameter ^^ expected type parameter `S`, found `&S` [INFO] [stderr] | [INFO] [stderr] note: type in trait [INFO] [stderr] --> src/typed/class/mod.rs:122:88 [INFO] [stderr] | [INFO] [stderr] 122 | fn add_async_method_mut_with<'s, S: Into<String>, A, R, M, MR, G>(&mut self, name: S, method: M, generator: G) [INFO] [stderr] | ^ [INFO] [stderr] = note: expected signature `fn(&mut typed::class::wrapped::WrappedBuilder<'_, _>, _, _, _)` [INFO] [stderr] found signature `fn(&mut typed::class::wrapped::WrappedBuilder<'_, _>, &_, _, _)` [INFO] [stderr] help: change the parameter type to match the trait [INFO] [stderr] | [INFO] [stderr] 224 - fn add_async_method_mut_with<'s, S: ?Sized + AsRef<str>, A, R, M, MR, G>(&mut self, name: &S, method: M, _generator: G) [INFO] [stderr] 224 + fn add_async_method_mut_with<'s, S: ?Sized + AsRef<str>, A, R, M, MR, G>(&mut self, name: S, method: M, _generator: G) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0053]: method `add_async_function` has an incompatible type for trait [INFO] [stderr] --> src/typed/class/wrapped.rs:274:68 [INFO] [stderr] | [INFO] [stderr] 274 | fn add_async_function<S: ?Sized, A, R, F, FR>(&mut self, name: &S, function: F) [INFO] [stderr] | - expected this type parameter ^^ expected type parameter `S`, found `&S` [INFO] [stderr] | [INFO] [stderr] note: type in trait [INFO] [stderr] --> src/typed/class/mod.rs:173:60 [INFO] [stderr] | [INFO] [stderr] 173 | fn add_async_function<S, A, R, F, FR>(&mut self, name: S, function: F) [INFO] [stderr] | ^ [INFO] [stderr] = note: expected signature `fn(&mut typed::class::wrapped::WrappedBuilder<'_, _>, _, _)` [INFO] [stderr] found signature `fn(&mut typed::class::wrapped::WrappedBuilder<'_, _>, &_, _)` [INFO] [stderr] help: change the parameter type to match the trait [INFO] [stderr] | [INFO] [stderr] 274 - fn add_async_function<S: ?Sized, A, R, F, FR>(&mut self, name: &S, function: F) [INFO] [stderr] 274 + fn add_async_function<S: ?Sized, A, R, F, FR>(&mut self, name: S, function: F) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0053]: method `add_async_function_with` has an incompatible type for trait [INFO] [stderr] --> src/typed/class/wrapped.rs:286:76 [INFO] [stderr] | [INFO] [stderr] 286 | fn add_async_function_with<S: ?Sized, A, R, F, FR, G>(&mut self, name: &S, function: F, _generator: G) [INFO] [stderr] | - expected this type parameter ^^ expected type parameter `S`, found `&S` [INFO] [stderr] | [INFO] [stderr] note: type in trait [INFO] [stderr] --> src/typed/class/mod.rs:186:68 [INFO] [stderr] | [INFO] [stderr] 186 | fn add_async_function_with<S, A, R, F, FR, G>(&mut self, name: S, function: F, generator: G) [INFO] [stderr] | ^ [INFO] [stderr] = note: expected signature `fn(&mut typed::class::wrapped::WrappedBuilder<'_, _>, _, _, _)` [INFO] [stderr] found signature `fn(&mut typed::class::wrapped::WrappedBuilder<'_, _>, &_, _, _)` [INFO] [stderr] help: change the parameter type to match the trait [INFO] [stderr] | [INFO] [stderr] 286 - fn add_async_function_with<S: ?Sized, A, R, F, FR, G>(&mut self, name: &S, function: F, _generator: G) [INFO] [stderr] 286 + fn add_async_function_with<S: ?Sized, A, R, F, FR, G>(&mut self, name: S, function: F, _generator: G) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0276]: impl has stricter requirements than trait [INFO] [stderr] --> src/typed/class/standard.rs:657:41 [INFO] [stderr] | [INFO] [stderr] 657 | fn add_async_method<'s, S: ?Sized + AsRef<str>, A, R, M, MR>(&mut self, name: S, _: M) [INFO] [stderr] | ^^^^^^^^^^ impl has extra requirement `S: std::convert::AsRef<str>` [INFO] [stderr] | [INFO] [stderr] ::: src/typed/class/mod.rs:85:5 [INFO] [stderr] | [INFO] [stderr] 85 | / fn add_async_method<'s, S: Into<String>, A, R, M, MR>(&mut self, name: S, method: M) [INFO] [stderr] 86 | | where [INFO] [stderr] 87 | | T: 'static, [INFO] [stderr] 88 | | M: Fn(&Lua, &'s T, A) -> MR + MaybeSend + 'static, [INFO] [stderr] 89 | | A: FromLuaMulti + TypedMultiValue, [INFO] [stderr] 90 | | MR: std::future::Future<Output = mlua::Result<R>> + 's, [INFO] [stderr] 91 | | R: IntoLuaMulti + TypedMultiValue; [INFO] [stderr] | |__________________________________________- definition of `add_async_method` from trait [INFO] [stderr] [INFO] [stderr] error[E0276]: impl has stricter requirements than trait [INFO] [stderr] --> src/typed/class/standard.rs:677:46 [INFO] [stderr] | [INFO] [stderr] 677 | fn add_async_method_with<'s, S: ?Sized + AsRef<str>, A, R, M, MR, G>(&mut self, name: S, _method: M, generator: G) [INFO] [stderr] | ^^^^^^^^^^ impl has extra requirement `S: std::convert::AsRef<str>` [INFO] [stderr] | [INFO] [stderr] ::: src/typed/class/mod.rs:98:5 [INFO] [stderr] | [INFO] [stderr] 98 | / fn add_async_method_with<'s, S: Into<String>, A, R, M, MR, G>(&mut self, name: S, method: M, generator: G) [INFO] [stderr] 99 | | where [INFO] [stderr] 100 | | T: 'static, [INFO] [stderr] 101 | | M: Fn(&Lua, &'s T, A) -> MR + MaybeSend + 'static, [INFO] [stderr] ... | [INFO] [stderr] 104 | | R: IntoLuaMulti + TypedMultiValue, [INFO] [stderr] 105 | | G: Fn(&mut FunctionBuilder<A, R>); [INFO] [stderr] | |__________________________________________- definition of `add_async_method_with` from trait [INFO] [stderr] [INFO] [stderr] error[E0276]: impl has stricter requirements than trait [INFO] [stderr] --> src/typed/class/standard.rs:701:45 [INFO] [stderr] | [INFO] [stderr] 701 | fn add_async_method_mut<'s, S: ?Sized + AsRef<str>, A, R, M, MR>(&mut self, name: S, method: M) [INFO] [stderr] | ^^^^^^^^^^ impl has extra requirement `S: std::convert::AsRef<str>` [INFO] [stderr] | [INFO] [stderr] ::: src/typed/class/mod.rs:109:5 [INFO] [stderr] | [INFO] [stderr] 109 | / fn add_async_method_mut<'s, S: Into<String>, A, R, M, MR>(&mut self, name: S, method: M) [INFO] [stderr] 110 | | where [INFO] [stderr] 111 | | T: 'static, [INFO] [stderr] 112 | | M: Fn(&Lua, &'s mut T, A) -> MR + MaybeSend + 'static, [INFO] [stderr] 113 | | A: FromLuaMulti + TypedMultiValue, [INFO] [stderr] 114 | | MR: std::future::Future<Output = mlua::Result<R>> + 's, [INFO] [stderr] 115 | | R: IntoLuaMulti + TypedMultiValue; [INFO] [stderr] | |__________________________________________- definition of `add_async_method_mut` from trait [INFO] [stderr] [INFO] [stderr] error[E0276]: impl has stricter requirements than trait [INFO] [stderr] --> src/typed/class/standard.rs:721:50 [INFO] [stderr] | [INFO] [stderr] 721 | fn add_async_method_mut_with<'s, S: ?Sized + AsRef<str>, A, R, M, MR, G>(&mut self, name: S, _method: M, generator: G) [INFO] [stderr] | ^^^^^^^^^^ impl has extra requirement `S: std::convert::AsRef<str>` [INFO] [stderr] | [INFO] [stderr] ::: src/typed/class/mod.rs:122:5 [INFO] [stderr] | [INFO] [stderr] 122 | / fn add_async_method_mut_with<'s, S: Into<String>, A, R, M, MR, G>(&mut self, name: S, method: M, generator: G) [INFO] [stderr] 123 | | where [INFO] [stderr] 124 | | T: 'static, [INFO] [stderr] 125 | | M: Fn(&Lua, &'s mut T, A) -> MR + MaybeSend + 'static, [INFO] [stderr] ... | [INFO] [stderr] 128 | | R: IntoLuaMulti + TypedMultiValue, [INFO] [stderr] 129 | | G: Fn(&mut FunctionBuilder<A, R>); [INFO] [stderr] | |__________________________________________- definition of `add_async_method_mut_with` from trait [INFO] [stderr] [INFO] [stderr] error[E0276]: impl has stricter requirements than trait [INFO] [stderr] --> src/typed/class/standard.rs:825:12 [INFO] [stderr] | [INFO] [stderr] 825 | S: AsRef<str>, [INFO] [stderr] | ^^^^^^^^^^ impl has extra requirement `S: std::convert::AsRef<str>` [INFO] [stderr] | [INFO] [stderr] ::: src/typed/class/mod.rs:173:5 [INFO] [stderr] | [INFO] [stderr] 173 | / fn add_async_function<S, A, R, F, FR>(&mut self, name: S, function: F) [INFO] [stderr] 174 | | where [INFO] [stderr] 175 | | S: Into<String>, [INFO] [stderr] 176 | | A: FromLuaMulti + TypedMultiValue, [INFO] [stderr] 177 | | R: IntoLuaMulti + TypedMultiValue, [INFO] [stderr] 178 | | F: 'static + MaybeSend + Fn(&Lua, A) -> FR, [INFO] [stderr] 179 | | FR: std::future::Future<Output = mlua::Result<R>>; [INFO] [stderr] | |__________________________________________________________- definition of `add_async_function` from trait [INFO] [stderr] [INFO] [stderr] error[E0276]: impl has stricter requirements than trait [INFO] [stderr] --> src/typed/class/standard.rs:845:16 [INFO] [stderr] | [INFO] [stderr] 845 | S: AsRef<str>, [INFO] [stderr] | ^^^^^^^^^^ impl has extra requirement `S: std::convert::AsRef<str>` [INFO] [stderr] | [INFO] [stderr] ::: src/typed/class/mod.rs:186:5 [INFO] [stderr] | [INFO] [stderr] 186 | / fn add_async_function_with<S, A, R, F, FR, G>(&mut self, name: S, function: F, generator: G) [INFO] [stderr] 187 | | where [INFO] [stderr] 188 | | S: Into<String>, [INFO] [stderr] 189 | | A: FromLuaMulti + TypedMultiValue, [INFO] [stderr] ... | [INFO] [stderr] 192 | | FR: std::future::Future<Output = mlua::Result<R>>, [INFO] [stderr] 193 | | G: Fn(&mut FunctionBuilder<A, R>); [INFO] [stderr] | |__________________________________________- definition of `add_async_function_with` from trait [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0053, E0276. [INFO] [stderr] For more information about an error, try `rustc --explain E0053`. [INFO] [stderr] error: could not document `mlua-extras` [INFO] running `Command { std: "docker" "inspect" "618c13ceaf597fb7e1e285615f036f2d6b67a852c732698cf81c6d257e9c81d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "618c13ceaf597fb7e1e285615f036f2d6b67a852c732698cf81c6d257e9c81d1", kill_on_drop: false }` [INFO] [stdout] 618c13ceaf597fb7e1e285615f036f2d6b67a852c732698cf81c6d257e9c81d1