Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
[package]
name = "seal"
authors = ["Dev Chrysalis Dalal <dev@deviaze.com>"]
version = "0.0.7-rc.1"
edition = "2024"

[dependencies]
# need to rely on the git version as it contains the most up-to-date luau;
# mlua creates official releases very infrequently but khvzak seems to be updating his `main` very regularly upon Luau releases.
# If this breaks we'll pin to a commit and risk lagging behind Luau
# but mlua's main branch is relatively stable and hasn't broken for us before nor for other projects.
# we need to enable error-send so we can propogate errors across threads in std_thread.rs
# mluau is our custom mlua fork with a greater focus on luau and luau ecosystem
# support, maintained by Midnight Frost and myself (mostly him).
[target.'cfg(not(target_os = "android"))'.dependencies]
mluau = { git = "https://github.com/mluau/mluau.git", features = ["luau", "luau-jit", "serialize", "error-send"] }

[target.'cfg(target_os = "android")'.dependencies]
# luau jit (ncg) compilation is not available on android
mluau = { git = "https://github.com/mluau/mluau.git", features = ["luau", "serialize", "error-send"] }

[dependencies]
regex = "1.11.1"
# needed for seal setup (really useful!)
include_dir = { version = "0.7.4" }
Expand All @@ -28,6 +32,8 @@ serde-xml-rs = "0.5.1"
hex = "0.4.3"
lz4_flex = { version = "0.12" }
flate2 = "1.0"
urlencoding = "2.1.3"
zstd = "0.13.3"
copy_dir = "0.1.3"
# we should switch to a more maintained alternative when possible,
# but as long as ring receives security updates it's not a huge priority
Expand All @@ -36,6 +42,7 @@ rsa = "0.9.8"
rand = "0.8.5"
# simple wrapper lib, might want to switch to a more frequently updated one?
simple_crypt = "0.2.3"
# @std/str lib
unicode-segmentation = "1.12.0"
# used for very fast string pattern searches (str.split*)
aho-corasick = "1.1.3"
Expand All @@ -54,16 +61,18 @@ jiff = "0.2.15"
# manual terminal stuff and manual astrick password
crossterm = "0.29.0"
# determines if we should fallback to stdin handling in @std/io/input and @std/cli
# as well as what happens to output during errors/panics
atty = "0.2.14"
# sane cli input handling in @std/cli
rustyline = "17.0.2"
# hidden password handling so i dont have to implement it myself with crossterm
rpassword = "7.4.0"
zstd = "0.13.3"
# format.hexdump and dp
pretty-hex = "0.4.1"
# websockets
tungstenite = { version = "0.28.0", features = ["native-tls"] }
url = "2.5.7"
urlencoding = "2.1.3"
# needed for .env support in @std/env/vars
dotenvy = "0.15.7"

[profile.dev.package.num-bigint-dig]
Expand Down
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ fn main() -> LuaResult<()> {
}
}

#[cfg_attr(target_os = "android", expect(unused_variables))]
fn set_jit(luau: &Lua) -> bool {
let should_jit = match std::env::var("SEAL_NO_JIT") {
Ok(var) if var.eq_ignore_ascii_case("true") => false,
Expand All @@ -200,7 +201,10 @@ fn set_jit(luau: &Lua) -> bool {
Err(_) => true,
};

luau.enable_jit(should_jit);
#[cfg(not(target_os = "android"))]
{
luau.enable_jit(should_jit);
}

should_jit
}
Expand Down