Skip to content

ci(rust): bump mlua from 0.11.6 to 0.12.0#50

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/mlua-0.12.0
Open

ci(rust): bump mlua from 0.11.6 to 0.12.0#50
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/mlua-0.12.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 6, 2026

Copy link
Copy Markdown

Bumps mlua from 0.11.6 to 0.12.0.

Release notes

Sourced from mlua's releases.

v0.12.0

Highlights

More ergonomic UserData building blocks

  • Declaratively implement UserData with #[derive(UserData)] and register methods/fields with the new #[mlua::userdata_impl] attribute macro.
  • UserDataOwned<T> wrapper takes ownership of userdata and implements FromLua
  • UserDataMethods::add_method_once/add_async_method_once
  • __todebugstring metamethod for pretty-printing userdata when debugging
  • MaybeSync trait for userdata under the send feature

Reorganized public API

Types are now grouped into focused modules: chunk, debug, error, function, table, string, state, thread, userdata and luau.

Thread lifecycle callbacks

Hook into coroutine create/resume/yield events across all Lua versions (when using mlua API).

Luau improvements

Latest Luau with extended require-by-string support and JIT options.

Garbage-collector interface refactor

Lua::gc_inc / Lua::gc_gen are replaced by a Lua::gc_set_mode, with GcIncParams/GcGenParams for fine-grained tuning.

What's Changed (since v0.12.0-rc.2)

  • Crate root re-exports are refactored (only essentials are re-exported, the rest is in the new submodules)
  • Added ThreadStatus::Normal and Thread::is_normal (mimic coroutine.status)
  • Added Lua::set_jit_options with support of Luau JIT inliner (Luau)
  • Added Value::as_vector/Value::is_vector (Luau)
  • Added Table::remove
  • serde: tables with the array metatable are always encoded as arrays (incl. detect_mixed_tables option)
  • impl Hash for BorrowedStr/BorrowedBytes
  • Lua::current_thread resolves implicit async threads to their root owner (#706)
  • Bugfixes and improvements

Full Changelog: mlua-rs/mlua@v0.11.6...v0.12.0

v0.12.0-rc.2

The new stable version is almost ready and will be released after some testing

What's Changed

  • Add #[derive(UserData)] and #[userdata_impl] macros
  • Support thread create/resume/yield callbacks for all Lua versions (including Luau)
  • Support to_alias_override/to_alias_fallback in Require trait (Luau)
  • Prevent XRc overflow when dropping RawLua with foreign Lua state

... (truncated)

Changelog

Sourced from mlua's changelog.

v0.12.0 (Jul 05, 2026)

Changes since v0.12.0-rc.2

  • Create root re-exports are refactored (only essentials are re-exported, the rest is in the new submodules)
  • Added ThreadStatus::Normal and Thread::is_normal (mimic coroutine.status)
  • Added Lua::set_jit_options with support of Luau JIT inliner (Luau)
  • Added Value::as_vector/Value::is_vector (Luau)
  • Added Table::remove
  • serde: tables with the array metatable are always encoded as arrays (incl. detect_mixed_tables option)
  • impl Hash for BorrowedStr/BorrowedBytes
  • Lua::current_thread resolves implicit async threads to their root owner (#706)
  • Bugfixes and improvements

v0.12.0-rc.2 (Jun 06, 2026)

  • Add #[derive(UserData)] and #[mlua::userdata_impl] macros
  • Support thread create/resume/yield callbacks for all Lua versions (including Luau)
  • Support to_alias_override/to_alias_fallback in Require trait (Luau)
  • Prevent XRc overflow when dropping RawLua with foreign Lua state
  • implement Not for StdLib (#699)
  • Fix String::to_pointer return NULL in Lua <5.4

v0.12.0-rc.1 (Apr 21, 2026)

  • Rust 2024 edition
  • Removed Error::ToLuaConversionError variant as it was unused (and not practically useful)
  • New modules to group data types: chunk, debug, error, function, table, string, state, thread, userdata, luau
  • Support __todebugstring metamethod for pretty formatting userdata value (for debugging)
  • New MaybeSync trait that is required for userdata types
  • Removed lifetime from BorrowedStr and BorrowedBytes
  • New Thread methods: is_resumable, is_running, is_finished, is_error
  • Added Thread::state to get raw Lua state pointer
  • Luau TextRequirer is renamed to FsRequirer
  • GC interface refactor: Lua::gc_inc/Lua::gc_gen is replaced with gc_set_mode
  • Added GcIncParams and GcGenParams for GC tuning
  • New UserDataMethods::add_method_once and UserDataMethods::add_async_method_once
  • Initial Luau integer64 type support
  • Changed interface of Function::wrap/wrap_mut/wrap_async to support any Error type
  • Changed AnyUserData::type_name to return LuaString instead
  • Added UserDataOwned<T> wrapper to take ownership of userdata T and implements FromLua
Commits
  • 8eddf85 v0.12.0
  • 46d3783 Update CHANGELOG
  • 7ddcdc1 Add Table::remove
  • 6b19eeb Make VmState as non_exhaustive
  • b64da48 Make NavigateError as non_exhaustive (Luau)
  • cddbcc5 Refactor crate-root re-exports and drop hidden backward-compat aliases
  • 1af17ec Various doc updates and refinement
  • eef5985 Rename LuaJitOptions to LuauJitOptions in prelude
  • 9099d5f Rename JitOptions::set_inliner to JitOptions::inliner for consistency
  • 34825d6 Fix Lua::gc_set_mode panic when GC is internally stopped (Lua 5.4/5.5)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mlua](https://github.com/mlua-rs/mlua) from 0.11.6 to 0.12.0.
- [Release notes](https://github.com/mlua-rs/mlua/releases)
- [Changelog](https://github.com/mlua-rs/mlua/blob/main/CHANGELOG.md)
- [Commits](mlua-rs/mlua@v0.11.6...v0.12.0)

---
updated-dependencies:
- dependency-name: mlua
  dependency-version: 0.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Jul 6, 2026

Copy link
Copy Markdown
Author

Labels

The following labels could not be found: rust. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants