mirror of
https://github.com/lune-org/lune.git
synced 2025-04-10 13:30:53 +01:00
Set up workspace manifest and move lune crate into crates dir
This commit is contained in:
parent
3f53fc983c
commit
91fd9d92a9
130 changed files with 165 additions and 131 deletions
157
Cargo.toml
157
Cargo.toml
|
@ -1,42 +1,7 @@
|
||||||
[package]
|
[workspace]
|
||||||
name = "lune"
|
resolver = "2"
|
||||||
version = "0.8.3"
|
default-members = ["crates/lune"]
|
||||||
edition = "2021"
|
members = ["crates/lune"]
|
||||||
license = "MPL-2.0"
|
|
||||||
repository = "https://github.com/lune-org/lune"
|
|
||||||
description = "A standalone Luau runtime"
|
|
||||||
readme = "README.md"
|
|
||||||
keywords = ["cli", "lua", "luau", "runtime"]
|
|
||||||
categories = ["command-line-interface"]
|
|
||||||
|
|
||||||
[[bin]]
|
|
||||||
name = "lune"
|
|
||||||
path = "src/main.rs"
|
|
||||||
|
|
||||||
[lib]
|
|
||||||
name = "lune"
|
|
||||||
path = "src/lib.rs"
|
|
||||||
|
|
||||||
[features]
|
|
||||||
default = ["cli", "roblox"]
|
|
||||||
cli = [
|
|
||||||
"dep:anyhow",
|
|
||||||
"dep:env_logger",
|
|
||||||
"dep:clap",
|
|
||||||
"dep:include_dir",
|
|
||||||
"dep:rustyline",
|
|
||||||
"dep:zip_next",
|
|
||||||
]
|
|
||||||
roblox = [
|
|
||||||
"dep:glam",
|
|
||||||
"dep:rand",
|
|
||||||
"dep:rbx_cookie",
|
|
||||||
"dep:rbx_binary",
|
|
||||||
"dep:rbx_dom_weak",
|
|
||||||
"dep:rbx_reflection",
|
|
||||||
"dep:rbx_reflection_database",
|
|
||||||
"dep:rbx_xml",
|
|
||||||
]
|
|
||||||
|
|
||||||
# Profile for building the release binary, with the following options set:
|
# Profile for building the release binary, with the following options set:
|
||||||
#
|
#
|
||||||
|
@ -53,99 +18,29 @@ opt-level = "z"
|
||||||
strip = true
|
strip = true
|
||||||
lto = true
|
lto = true
|
||||||
|
|
||||||
# All of the dependencies for Lune.
|
# Lints for all crates in the workspace
|
||||||
#
|
#
|
||||||
# Dependencies are categorized as following:
|
# 1. Error on all lints by default, then make cargo + clippy pedantic lints just warn
|
||||||
#
|
# 2. Selectively allow some lints that are _too_ pedantic, such as:
|
||||||
# 1. General dependencies with no specific features set
|
# - Casts between number types
|
||||||
# 2. Large / core dependencies that have many different crates and / or features set
|
# - Module naming conventions
|
||||||
# 3. Dependencies for specific features of Lune, eg. the CLI or massive Roblox builtin library
|
# - Imports and multiple dependency versions
|
||||||
#
|
[workspace.lints.clippy]
|
||||||
[dependencies]
|
all = { level = "deny", priority = -3 }
|
||||||
console = "0.15"
|
cargo = { level = "warn", priority = -2 }
|
||||||
directories = "5.0"
|
pedantic = { level = "warn", priority = -1 }
|
||||||
futures-util = "0.3"
|
|
||||||
once_cell = "1.17"
|
|
||||||
thiserror = "1.0"
|
|
||||||
async-trait = "0.1"
|
|
||||||
dialoguer = "0.11"
|
|
||||||
dunce = "1.0"
|
|
||||||
lz4_flex = "0.11"
|
|
||||||
path-clean = "1.0"
|
|
||||||
pathdiff = "0.2"
|
|
||||||
pin-project = "1.0"
|
|
||||||
urlencoding = "2.1"
|
|
||||||
bstr = "1.9"
|
|
||||||
regex = "1.10"
|
|
||||||
self_cell = "1.0"
|
|
||||||
|
|
||||||
### RUNTIME
|
cast_lossless = { level = "allow", priority = 1 }
|
||||||
|
cast_possible_truncation = { level = "allow", priority = 1 }
|
||||||
|
cast_possible_wrap = { level = "allow", priority = 1 }
|
||||||
|
cast_precision_loss = { level = "allow", priority = 1 }
|
||||||
|
cast_sign_loss = { level = "allow", priority = 1 }
|
||||||
|
|
||||||
blocking = "1.5"
|
unreadable_literal = { level = "allow", priority = 1 }
|
||||||
tracing = "0.1"
|
unnested_or_patterns = { level = "allow", priority = 1 }
|
||||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
||||||
tokio = { version = "1.24", features = ["full", "tracing"] }
|
|
||||||
os_str_bytes = { version = "7.0", features = ["conversions"] }
|
|
||||||
|
|
||||||
mlua-luau-scheduler = { version = "0.0.2" }
|
multiple_crate_versions = { level = "allow", priority = 1 }
|
||||||
mlua = { version = "0.9.7", features = [
|
module_inception = { level = "allow", priority = 1 }
|
||||||
"luau",
|
module_name_repetitions = { level = "allow", priority = 1 }
|
||||||
"luau-jit",
|
needless_pass_by_value = { level = "allow", priority = 1 }
|
||||||
"async",
|
wildcard_imports = { level = "allow", priority = 1 }
|
||||||
"serialize",
|
|
||||||
] }
|
|
||||||
|
|
||||||
### SERDE
|
|
||||||
|
|
||||||
async-compression = { version = "0.4", features = [
|
|
||||||
"tokio",
|
|
||||||
"brotli",
|
|
||||||
"deflate",
|
|
||||||
"gzip",
|
|
||||||
"zlib",
|
|
||||||
] }
|
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
|
||||||
serde_json = { version = "1.0", features = ["preserve_order"] }
|
|
||||||
serde_yaml = "0.9"
|
|
||||||
toml = { version = "0.8", features = ["preserve_order"] }
|
|
||||||
|
|
||||||
### NET
|
|
||||||
|
|
||||||
hyper = { version = "1.1", features = ["full"] }
|
|
||||||
hyper-util = { version = "0.1", features = ["full"] }
|
|
||||||
http = "1.0"
|
|
||||||
http-body-util = { version = "0.1" }
|
|
||||||
hyper-tungstenite = { version = "0.13" }
|
|
||||||
|
|
||||||
reqwest = { version = "0.11", default-features = false, features = [
|
|
||||||
"rustls-tls",
|
|
||||||
] }
|
|
||||||
|
|
||||||
tokio-tungstenite = { version = "0.21", features = ["rustls-tls-webpki-roots"] }
|
|
||||||
|
|
||||||
### DATETIME
|
|
||||||
chrono = "=0.4.34" # NOTE: 0.4.35 does not compile with chrono_lc
|
|
||||||
chrono_lc = "0.1"
|
|
||||||
|
|
||||||
### CLI
|
|
||||||
|
|
||||||
anyhow = { optional = true, version = "1.0" }
|
|
||||||
env_logger = { optional = true, version = "0.11" }
|
|
||||||
itertools = "0.12"
|
|
||||||
clap = { optional = true, version = "4.1", features = ["derive"] }
|
|
||||||
include_dir = { optional = true, version = "0.7", features = ["glob"] }
|
|
||||||
rustyline = { optional = true, version = "14.0" }
|
|
||||||
zip_next = { optional = true, version = "1.1" }
|
|
||||||
|
|
||||||
### ROBLOX
|
|
||||||
|
|
||||||
glam = { optional = true, version = "0.27" }
|
|
||||||
rand = { optional = true, version = "0.8" }
|
|
||||||
|
|
||||||
rbx_cookie = { optional = true, version = "0.1.4", default-features = false }
|
|
||||||
|
|
||||||
rbx_binary = { optional = true, version = "0.7.3" }
|
|
||||||
rbx_dom_weak = { optional = true, version = "2.6.0" }
|
|
||||||
rbx_reflection = { optional = true, version = "4.4.0" }
|
|
||||||
rbx_reflection_database = { optional = true, version = "0.2.9" }
|
|
||||||
rbx_xml = { optional = true, version = "0.13.2" }
|
|
||||||
|
|
139
crates/lune/Cargo.toml
Normal file
139
crates/lune/Cargo.toml
Normal file
|
@ -0,0 +1,139 @@
|
||||||
|
[package]
|
||||||
|
name = "lune"
|
||||||
|
version = "0.8.3"
|
||||||
|
edition = "2021"
|
||||||
|
license = "MPL-2.0"
|
||||||
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
description = "A standalone Luau runtime"
|
||||||
|
readme = "README.md"
|
||||||
|
keywords = ["cli", "lua", "luau", "runtime"]
|
||||||
|
categories = ["command-line-interface"]
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "lune"
|
||||||
|
path = "src/main.rs"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
name = "lune"
|
||||||
|
path = "src/lib.rs"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = ["cli", "roblox"]
|
||||||
|
cli = [
|
||||||
|
"dep:anyhow",
|
||||||
|
"dep:env_logger",
|
||||||
|
"dep:clap",
|
||||||
|
"dep:include_dir",
|
||||||
|
"dep:rustyline",
|
||||||
|
"dep:zip_next",
|
||||||
|
]
|
||||||
|
roblox = [
|
||||||
|
"dep:glam",
|
||||||
|
"dep:rand",
|
||||||
|
"dep:rbx_cookie",
|
||||||
|
"dep:rbx_binary",
|
||||||
|
"dep:rbx_dom_weak",
|
||||||
|
"dep:rbx_reflection",
|
||||||
|
"dep:rbx_reflection_database",
|
||||||
|
"dep:rbx_xml",
|
||||||
|
]
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
||||||
|
# All of the dependencies for Lune.
|
||||||
|
#
|
||||||
|
# Dependencies are categorized as following:
|
||||||
|
#
|
||||||
|
# 1. General dependencies with no specific features set
|
||||||
|
# 2. Large / core dependencies that have many different crates and / or features set
|
||||||
|
# 3. Dependencies for specific features of Lune, eg. the CLI or massive Roblox builtin library
|
||||||
|
#
|
||||||
|
[dependencies]
|
||||||
|
console = "0.15"
|
||||||
|
directories = "5.0"
|
||||||
|
futures-util = "0.3"
|
||||||
|
once_cell = "1.17"
|
||||||
|
thiserror = "1.0"
|
||||||
|
async-trait = "0.1"
|
||||||
|
dialoguer = "0.11"
|
||||||
|
dunce = "1.0"
|
||||||
|
lz4_flex = "0.11"
|
||||||
|
path-clean = "1.0"
|
||||||
|
pathdiff = "0.2"
|
||||||
|
pin-project = "1.0"
|
||||||
|
urlencoding = "2.1"
|
||||||
|
bstr = "1.9"
|
||||||
|
regex = "1.10"
|
||||||
|
self_cell = "1.0"
|
||||||
|
|
||||||
|
### RUNTIME
|
||||||
|
|
||||||
|
blocking = "1.5"
|
||||||
|
tracing = "0.1"
|
||||||
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||||
|
tokio = { version = "1.24", features = ["full", "tracing"] }
|
||||||
|
os_str_bytes = { version = "7.0", features = ["conversions"] }
|
||||||
|
|
||||||
|
mlua-luau-scheduler = { version = "0.0.2" }
|
||||||
|
mlua = { version = "0.9.7", features = [
|
||||||
|
"luau",
|
||||||
|
"luau-jit",
|
||||||
|
"async",
|
||||||
|
"serialize",
|
||||||
|
] }
|
||||||
|
|
||||||
|
### SERDE
|
||||||
|
|
||||||
|
async-compression = { version = "0.4", features = [
|
||||||
|
"tokio",
|
||||||
|
"brotli",
|
||||||
|
"deflate",
|
||||||
|
"gzip",
|
||||||
|
"zlib",
|
||||||
|
] }
|
||||||
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
serde_json = { version = "1.0", features = ["preserve_order"] }
|
||||||
|
serde_yaml = "0.9"
|
||||||
|
toml = { version = "0.8", features = ["preserve_order"] }
|
||||||
|
|
||||||
|
### NET
|
||||||
|
|
||||||
|
hyper = { version = "1.1", features = ["full"] }
|
||||||
|
hyper-util = { version = "0.1", features = ["full"] }
|
||||||
|
http = "1.0"
|
||||||
|
http-body-util = { version = "0.1" }
|
||||||
|
hyper-tungstenite = { version = "0.13" }
|
||||||
|
|
||||||
|
reqwest = { version = "0.11", default-features = false, features = [
|
||||||
|
"rustls-tls",
|
||||||
|
] }
|
||||||
|
|
||||||
|
tokio-tungstenite = { version = "0.21", features = ["rustls-tls-webpki-roots"] }
|
||||||
|
|
||||||
|
### DATETIME
|
||||||
|
chrono = "=0.4.34" # NOTE: 0.4.35 does not compile with chrono_lc
|
||||||
|
chrono_lc = "0.1"
|
||||||
|
|
||||||
|
### CLI
|
||||||
|
|
||||||
|
anyhow = { optional = true, version = "1.0" }
|
||||||
|
env_logger = { optional = true, version = "0.11" }
|
||||||
|
itertools = "0.12"
|
||||||
|
clap = { optional = true, version = "4.1", features = ["derive"] }
|
||||||
|
include_dir = { optional = true, version = "0.7", features = ["glob"] }
|
||||||
|
rustyline = { optional = true, version = "14.0" }
|
||||||
|
zip_next = { optional = true, version = "1.1" }
|
||||||
|
|
||||||
|
### ROBLOX
|
||||||
|
|
||||||
|
glam = { optional = true, version = "0.27" }
|
||||||
|
rand = { optional = true, version = "0.8" }
|
||||||
|
|
||||||
|
rbx_cookie = { optional = true, version = "0.1.4", default-features = false }
|
||||||
|
|
||||||
|
rbx_binary = { optional = true, version = "0.7.3" }
|
||||||
|
rbx_dom_weak = { optional = true, version = "2.6.0" }
|
||||||
|
rbx_reflection = { optional = true, version = "4.4.0" }
|
||||||
|
rbx_reflection_database = { optional = true, version = "0.2.9" }
|
||||||
|
rbx_xml = { optional = true, version = "0.13.2" }
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue