Skip to content

Commit de87772

Browse files
committed
Initial commit
0 parents  commit de87772

File tree

425 files changed

+88681
-0
lines changed

Some content is hidden

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

425 files changed

+88681
-0
lines changed

.github/workflows/main.yml

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
name: Build
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
target:
11+
- x86_64-unknown-linux-gnu
12+
- i686-unknown-linux-gnu
13+
- aarch64-unknown-linux-gnu
14+
- x86_64-pc-windows-gnu
15+
- x86_64-pc-windows-msvc
16+
- x86_64-apple-darwin
17+
- aarch64-apple-darwin
18+
include:
19+
- target: x86_64-unknown-linux-gnu
20+
os: ubuntu-latest
21+
- target: i686-unknown-linux-gnu
22+
os: ubuntu-latest
23+
- target: aarch64-unknown-linux-gnu
24+
os: ubuntu-latest
25+
- target: x86_64-pc-windows-gnu
26+
os: ubuntu-latest
27+
- target: x86_64-pc-windows-msvc
28+
os: windows-latest
29+
- target: x86_64-apple-darwin
30+
os: macos-latest
31+
- target: aarch64-apple-darwin
32+
os: macos-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: dtolnay/rust-toolchain@stable
36+
with:
37+
target: ${{ matrix.target }}
38+
- name: Install GCC (i686-unknown-linux-gnu)
39+
if: ${{ matrix.target == 'i686-unknown-linux-gnu' }}
40+
run: |
41+
sudo apt-get update -y
42+
sudo apt-get install -y --no-install-recommends gcc-multilib g++-multilib
43+
shell: bash
44+
- name: Install GCC (aarch64-unknown-linux-gnu)
45+
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
46+
run: |
47+
sudo apt-get update -y
48+
sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev-arm64-cross
49+
shell: bash
50+
- name: Install GCC (x86_64-pc-windows-gnu)
51+
if: ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
52+
run: |
53+
sudo apt-get update -y
54+
sudo apt-get install -y --no-install-recommends gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64
55+
shell: bash
56+
- name: Build
57+
run: |
58+
cargo build -p testcrate --target ${{ matrix.target }}
59+
shell: bash
60+
61+
test:
62+
name: Test
63+
runs-on: ${{ matrix.os }}
64+
needs: build
65+
strategy:
66+
matrix:
67+
os: [ubuntu-latest, macos-latest, windows-latest]
68+
include:
69+
- os: ubuntu-latest
70+
target: x86_64-unknown-linux-gnu
71+
- os: macos-latest
72+
target: x86_64-apple-darwin
73+
- os: windows-latest
74+
target: x86_64-pc-windows-msvc
75+
steps:
76+
- uses: actions/checkout@v4
77+
- uses: dtolnay/rust-toolchain@stable
78+
with:
79+
target: ${{ matrix.target }}
80+
- name: Run tests
81+
run: |
82+
cargo test -p testcrate
83+
shell: bash
84+
85+
rustfmt:
86+
name: Rustfmt
87+
runs-on: ubuntu-latest
88+
steps:
89+
- uses: actions/checkout@v3
90+
- uses: dtolnay/rust-toolchain@stable
91+
with:
92+
components: rustfmt
93+
- run: cargo fmt -- --check

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

Cargo.lock

+49
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "pluto-src"
3+
version = "0.1.0+0.10.4"
4+
authors = ["Aleksandr Orlenko <[email protected]>"]
5+
edition = "2021"
6+
repository = "https://github.com/mlua-rs/pluto-src-rs"
7+
keywords = ["lua", "pluto"]
8+
readme = "README.md"
9+
license = "MIT"
10+
description = """
11+
Sources of Pluto (Lua 5.4 dialect) and logic to build it.
12+
"""
13+
14+
[workspace]
15+
members = ["testcrate"]
16+
17+
[dependencies]
18+
cc = { version = "1.2", features = ["parallel"] }

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Aleksandr Orlenko
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9+
of the Software, and to permit persons to whom the Software is furnished to do
10+
so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# pluto-src
2+
[![Build Status]][github-actions]
3+
4+
[Build Status]: https://github.com/mlua-rs/pluto-src-rs/workflows/CI/badge.svg
5+
[github-actions]: https://github.com/mlua-rs/pluto-src-rs/actions
6+
7+
This crate contains the sources of [Pluto] (Lua 5.4 dialect) and logic to build it.
8+
Intended to be consumed by the [mlua-sys] crate.
9+
10+
[Pluto]: https://github.com/PlutoLang/Pluto
11+
[mlua-sys]: https://crates.io/crates/mlua-sys
12+
13+
# License
14+
15+
This project is licensed under [MIT license](http://opensource.org/licenses/MIT)

pluto/LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (C) 2022-2025 PlutoLang.org, Ryan Starrett, Sainan.
4+
Copyright (C) 1994-2024 Lua.org, PUC-Rio.
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

0 commit comments

Comments
 (0)