Skip to content

Commit 4f56575

Browse files
committed
v0.10.0
1 parent 35fa762 commit 4f56575

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v0.10.0 (Oct 25th, 2024)
2+
3+
Changes since v0.10.0-rc.1
4+
5+
- Added `error-send` feature flag (disabled by default) to require `Send + Sync` for `Error`
6+
- Some performance improvements
7+
18
## v0.10.0-rc.1
29

310
- `Lua::scope` is back

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mlua"
3-
version = "0.10.0-rc.1" # remember to update mlua_derive
3+
version = "0.10.0" # remember to update mlua_derive
44
authors = ["Aleksandr Orlenko <[email protected]>", "kyren <[email protected]>"]
55
rust-version = "1.79.0"
66
edition = "2021"
@@ -45,7 +45,7 @@ macros = ["mlua_derive/macros"]
4545
anyhow = ["dep:anyhow", "error-send"]
4646

4747
[dependencies]
48-
mlua_derive = { version = "=0.10.0-rc.1", optional = true, path = "mlua_derive" }
48+
mlua_derive = { version = "=0.10.0", optional = true, path = "mlua_derive" }
4949
bstr = { version = "1.0", features = ["std"], default-features = false }
5050
either = "1.0"
5151
num-traits = { version = "0.2.14" }

README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717
[Benchmarks]: https://github.com/khvzak/script-bench-rs
1818
[FAQ]: FAQ.md
1919

20-
# The main branch is the v0.10, development version of `mlua`. Please see the [v0.9](https://github.com/mlua-rs/mlua/tree/v0.9) branch for the stable versions of `mlua`.
21-
2220
> **Note**
2321
>
24-
> See (upcoming) v0.10 [release notes](https://github.com/khvzak/mlua/blob/main/docs/release_notes/v0.10.md).
22+
> See v0.10 [release notes](https://github.com/khvzak/mlua/blob/main/docs/release_notes/v0.10.md).
2523
2624
`mlua` is bindings to [Lua](https://www.lua.org) programming language for Rust with a goal to provide
2725
_safe_ (as far as it's possible), high level, easy to use, practical and flexible API.
@@ -134,7 +132,7 @@ Add to `Cargo.toml` :
134132

135133
``` toml
136134
[dependencies]
137-
mlua = { version = "0.10.0-rc.1", features = ["lua54", "vendored"] }
135+
mlua = { version = "0.10.0", features = ["lua54", "vendored"] }
138136
```
139137

140138
`main.rs`
@@ -169,7 +167,7 @@ Add to `Cargo.toml` :
169167
crate-type = ["cdylib"]
170168

171169
[dependencies]
172-
mlua = { version = "0.10.0-rc.1", features = ["lua54", "module"] }
170+
mlua = { version = "0.10.0", features = ["lua54", "module"] }
173171
```
174172

175173
`lib.rs` :

docs/release_notes/v0.10.md

+11
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,14 @@ assert_eq!(sum, 15);
121121
```
122122

123123
The `exec_raw` method is longjmp-safe. It's not recommended to move `Drop` types into the closure to avoid possible memory leaks.
124+
125+
#### `anyhow` feature flag
126+
127+
The new `anyhow` feature flag adds `IntoLua` and `Into<mlua::Error>` implementation for the `anyhow::Error` type.
128+
129+
```rust
130+
let f = lua.create_function(|_, ()| {
131+
Err(anyhow!("error message"))?;
132+
Ok(())
133+
})?;
134+
```

mlua_derive/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mlua_derive"
3-
version = "0.10.0-rc.1"
3+
version = "0.10.0"
44
authors = ["Aleksandr Orlenko <[email protected]>"]
55
edition = "2021"
66
description = "Procedural macros for the mlua crate."

0 commit comments

Comments
 (0)