Skip to content

Commit d40e595

Browse files
authored
Merge pull request #297 from mlua-rs/transition_0.20.0
Draft: Transition 0.20.0
2 parents e47db6a + 6d7462a commit d40e595

File tree

323 files changed

+226
-125832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

323 files changed

+226
-125832
lines changed

.circleci/config.yml

+4-75
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@ orbs:
66
jobs:
77
build-default:
88
docker:
9-
- image: cimg/rust:1.70.0
9+
- image: cimg/rust:1.75.0
1010
steps:
1111
- checkout
12-
- run:
13-
name: Install libclang for bindgen
14-
command: |
15-
sudo apt-get update
16-
sudo apt-get install libclang-dev clang
1712
- run:
1813
name: Version information
1914
command: rustc --version; cargo --version; rustup --version
@@ -29,12 +24,6 @@ jobs:
2924
- run:
3025
name: Run all tests
3126
command: cargo test --all
32-
- run:
33-
name: Check bindgen
34-
command: |
35-
cargo install bindgen-cli
36-
scripts/update-bindgen.sh
37-
git diff --exit-code || true
3827
- run:
3928
name: Check Formatting
4029
command: |
@@ -48,48 +37,11 @@ jobs:
4837
- target/debug/build
4938
- target/debug/deps
5039
key: cargo-cache-{{ arch }}-{{ checksum "Cargo.lock" }}
51-
build-no-oslib:
52-
docker:
53-
- image: cimg/rust:1.70.0
54-
steps:
55-
- checkout
56-
- run:
57-
name: Install libclang for bindgen
58-
command: |
59-
sudo apt-get update
60-
sudo apt-get install libclang-dev clang
61-
- run:
62-
name: Version information
63-
command: rustc --version; cargo --version; rustup --version
64-
- run:
65-
name: Calculate dependencies
66-
command: cargo generate-lockfile
67-
- restore_cache:
68-
keys:
69-
- cargo-cache-no-oslib-{{ arch }}-{{ checksum "Cargo.lock" }}
70-
- run:
71-
name: Build all targets
72-
command: cargo build --features=lua-no-oslib --all --all-targets
73-
- run:
74-
name: Run all tests
75-
command: cargo test --features=lua-no-oslib --all
76-
- save_cache:
77-
paths:
78-
- /usr/local/cargo/registry
79-
- target/debug/.fingerprint
80-
- target/debug/build
81-
- target/debug/deps
82-
key: cargo-cache-no-oslib-{{ arch }}-{{ checksum "Cargo.lock" }}
8340
build-lua53:
8441
docker:
85-
- image: cimg/rust:1.70.0
42+
- image: cimg/rust:1.75.0
8643
steps:
8744
- checkout
88-
- run:
89-
name: Install libclang for bindgen
90-
command: |
91-
sudo apt-get update
92-
sudo apt-get install libclang-dev clang
9345
- run:
9446
name: Version information
9547
command: rustc --version; cargo --version; rustup --version
@@ -105,12 +57,6 @@ jobs:
10557
- run:
10658
name: Run all tests
10759
command: cargo test --no-default-features --features=builtin-lua53 --all
108-
- run:
109-
name: Check bindgen
110-
command: |
111-
cargo install bindgen-cli
112-
scripts/update-bindgen.sh
113-
git diff --exit-code || true
11460
- run:
11561
name: Check Formatting
11662
command: |
@@ -126,14 +72,9 @@ jobs:
12672
key: cargo-cache-lua53-{{ arch }}-{{ checksum "Cargo.lock" }}
12773
build-lua51:
12874
docker:
129-
- image: cimg/rust:1.70.0
75+
- image: cimg/rust:1.75.0
13076
steps:
13177
- checkout
132-
- run:
133-
name: Install libclang for bindgen
134-
command: |
135-
sudo apt-get update
136-
sudo apt-get install libclang-dev clang
13778
- run:
13879
name: Install Lua
13980
command: |
@@ -155,12 +96,6 @@ jobs:
15596
- run:
15697
name: Run all tests
15798
command: cargo test --no-default-features --features=system-lua51 --all
158-
- run:
159-
name: Check bindgen
160-
command: |
161-
cargo install bindgen-cli
162-
scripts/update-bindgen.sh
163-
git diff --exit-code || true
16499
- run:
165100
name: Check Formatting
166101
command: |
@@ -176,14 +111,9 @@ jobs:
176111
key: cargo-cache-lua51-{{ arch }}-{{ checksum "Cargo.lock" }}
177112
build-luajit:
178113
docker:
179-
- image: cimg/rust:1.70.0
114+
- image: cimg/rust:1.75.0
180115
steps:
181116
- checkout
182-
- run:
183-
name: Install libclang for bindgen
184-
command: |
185-
sudo apt-get update
186-
sudo apt-get install libclang-dev clang
187117
- run:
188118
name: Install Lua
189119
command: |
@@ -257,4 +187,3 @@ workflows:
257187
- "build-lua51"
258188
- "build-luajit"
259189
- "build-windows"
260-
- "build-no-oslib"

Cargo.toml

+17-29
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,40 @@
11
[package]
22
name = "rlua"
3-
version = "0.19.8"
3+
version = "0.20.0"
44
authors = ["kyren <[email protected]>"]
55
edition = "2018"
66
description = "High level bindings to Lua 5.x"
7-
repository = "https://github.com/amethyst/rlua"
7+
repository = "https://github.com/mlua-rs/rlua"
88
documentation = "https://docs.rs/rlua"
99
readme = "README.md"
1010
keywords = ["lua"]
1111
license = "MIT"
1212
categories = [ "api-bindings", "development-tools::ffi" ]
13+
rust-version = "1.75"
1314

1415
[badges]
15-
circle-ci = { repository = "amethyst/rlua", branch = "master" }
16+
circle-ci = { repository = "mlua-rs/rlua", branch = "master" }
17+
18+
[dependencies]
19+
mlua = { version = "0.9.5", features = ["macros"] }
1620

1721
[features]
1822
default=["builtin-lua54"]
19-
builtin-lua54=["rlua-lua54-sys"]
20-
builtin-lua53=["rlua-lua53-sys"]
21-
builtin-lua51=["rlua-lua51-sys"]
23+
builtin-lua54=["mlua/lua54", "mlua/vendored"]
24+
builtin-lua53=["mlua/lua53", "mlua/vendored"]
25+
builtin-lua51=["mlua/lua51", "mlua/vendored"]
2226

23-
system-lua54=["rlua-lua54-sys", "rlua-lua54-sys/lua54-pkg-config"]
24-
system-lua53=["rlua-lua53-sys", "rlua-lua53-sys/lua53-pkg-config"]
25-
system-lua51=["rlua-lua51-sys", "rlua-lua51-sys/lua51-pkg-config"]
26-
system-luajit=["rlua-lua51-sys", "rlua-lua51-sys/luajit-pkg-config"]
27+
system-lua54=["mlua/lua54"]
28+
system-lua53=["mlua/lua53"]
29+
system-lua51=["mlua/lua51"]
30+
system-luajit=["mlua/luajit"]
2731

2832
# Remove Lua's os lib
29-
lua-no-oslib=["rlua-lua54-sys/lua-no-oslib","rlua-lua53-sys/lua-no-oslib","rlua-lua51-sys/lua-no-oslib"]
33+
#lua-no-oslib=["rlua-lua54-sys/lua-no-oslib","rlua-lua53-sys/lua-no-oslib","rlua-lua51-sys/lua-no-oslib"]
3034

3135
# Enabled functions from the math module that have been deprecated
32-
lua-compat-mathlib = []
33-
34-
35-
[dependencies]
36-
libc = { version = "0.2" }
37-
num-traits = { version = "0.2.14" }
38-
bitflags = { version = "2.4" }
39-
bstr = {version = "1.9", features = ["std"], default_features = false }
40-
rlua-lua54-sys = { version = "0.1.6", optional = true }
41-
rlua-lua53-sys = { version = "0.1.6", optional = true }
42-
rlua-lua51-sys = { version = "0.1.6", optional = true }
43-
36+
#lua-compat-mathlib = []
4437

4538
[dev-dependencies]
4639
rustyline = "13.0"
47-
criterion = "0.5.1"
48-
compiletest_rs = { version = "0.10.2", features = ["stable"] }
49-
50-
[[bench]]
51-
name = "benchmark"
52-
harness = false
40+
bstr = "1.9.0"

0 commit comments

Comments
 (0)