Skip to content

chore: crate organization #1002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 5, 2025
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
175 changes: 6 additions & 169 deletions Cargo.lock

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,12 @@ deploy:
check:
cargo clippy --all-targets --all-features -- -D warnings

.PHONY: libs check libs-arm64 libs-x64 toolchain clean-js release-linux release-darwin release-windows lambda stdlib stdlib-x64 stdlib-arm64 test test-ci run js run-release build release clean flame deploy
check-crates:
cargo metadata --no-deps --format-version 1 --quiet | \
jq -r '.packages[] | select(.manifest_path | contains("modules/")) | .name' | \
while read crate; do \
echo "Checking crate: $$crate"; \
cargo check -p "$$crate"; \
done

.PHONY: libs check check-crates libs-arm64 libs-x64 toolchain clean-js release-linux release-darwin release-windows lambda stdlib stdlib-x64 stdlib-arm64 test test-ci run js run-release build release clean flame deploy
2 changes: 1 addition & 1 deletion libs/llrt_build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name = "llrt_build"
path = "src/lib.rs"

[dependencies]
rustc_version = "0.4"
rustc_version = { version = "0.4", default-features = false }
4 changes: 2 additions & 2 deletions libs/llrt_compression/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ zstd-c = ["zstd"]
zstd-rust = ["zstd"] # No pure rust implementation exists

[dependencies]
brotlic = { version = "0.8", optional = true }
brotli = { version = "8", optional = true }
brotlic = { version = "0.8", default-features = false, optional = true }
brotli = { version = "8", default-features = false, optional = true }
flate2 = { version = "1", default-features = false, optional = true }
zstd = { version = "0.13", default-features = false, optional = true }
3 changes: 1 addition & 2 deletions libs/llrt_context/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ rquickjs = { git = "https://github.com/DelSkayn/rquickjs.git", version = "0.9.0"
], default-features = false }
llrt_utils = { version = "0.5.1-beta", path = "../llrt_utils", default-features = false }
tokio = { version = "1", features = ["sync"], default-features = false }
tracing = "0.1"
tracing = { version = "0.1", default-features = false }

[dev-dependencies]
llrt_test = { version = "0.5.1-beta", path = "../llrt_test" }
tokio = { version = "1", features = ["full"] }

[build-dependencies]
llrt_build = { version = "0.5.1-beta", path = "../llrt_build" }
19 changes: 9 additions & 10 deletions libs/llrt_dns_cache/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@ name = "llrt_dns_cache"
path = "src/lib.rs"

[dependencies]
hyper = { version = "1", features = ["client"] }
hyper-rustls = { version = "0.27", default-features = false, features = [
"webpki-roots",
"webpki-tokio",
"ring",
] }
hyper-util = "0.1"
hyper-util = { version = "0.1", features = [
"client",
"client-legacy",
], default-features = false }
llrt_context = { version = "0.5.1-beta", path = "../llrt_context" }
llrt_utils = { version = "0.5.1-beta", path = "../llrt_utils", default-features = false }
rquickjs = { git = "https://github.com/DelSkayn/rquickjs.git", version = "0.9.0", features = [
"macro",
], default-features = false }
tokio = "1"
tower-service = "0.3.3"
quick_cache = "0.6.12"
tokio = {version = "1", features = [
"net",
], default-features = false }
tower-service = { version = "0.3", default-features = false }
quick_cache = { version = "0.6", default-features = false }
14 changes: 10 additions & 4 deletions libs/llrt_encoding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ license = "Apache-2.0"
repository = "https://github.com/awslabs/llrt"

[dependencies]
base64-simd = "0.8"
hex-simd = "0.8"
phf = { version = "0.11", features = ["macros"] }
memchr = "2"
base64-simd = { version = "0.8", features = [
"alloc",
], default-features = false }
hex-simd = { version = "0.8", features = [
"alloc",
], default-features = false }
phf = { version = "0.11", features = [
"macros",
], default-features = false }
memchr = { version = "2", default-features = false }

[build-dependencies]
llrt_build = { version = "0.5.1-beta", path = "../llrt_build" }
12 changes: 6 additions & 6 deletions libs/llrt_json/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ name = "llrt_json"
path = "src/lib.rs"

[dependencies]
itoa = "1"
itoa = { version = "1", default-features = false }
llrt_utils = { version = "0.5.1-beta", path = "../llrt_utils", default-features = false }
rquickjs = { git = "https://github.com/DelSkayn/rquickjs.git", version = "0.9.0", default-features = false }
ryu = "1"
simd-json = { version = "0.15", default-features = false, features = [
ryu = { version = "1", default-features = false }
simd-json = { version = "0.15", features = [
"big-int-as-float",
] }
], default-features = false }

[dev-dependencies]
criterion = "0.6"
criterion = { version = "0.6", default-features = false }
llrt_test = { version = "0.5.1-beta", path = "../llrt_test" }
tokio = { version = "1", features = ["full"] }
tokio = { version = "1", features = ["test-util"], default-features = false }

[build-dependencies]
llrt_build = { version = "0.5.1-beta", path = "../llrt_build" }
Expand Down
4 changes: 2 additions & 2 deletions libs/llrt_logging/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name = "llrt_logging"
path = "src/lib.rs"

[dependencies]
itoa = "1"
itoa = { version = "1", default-features = false }
llrt_context = { version = "0.5.1-beta", path = "../llrt_context" }
llrt_encoding = { version = "0.5.1-beta", path = "../llrt_encoding" }
llrt_json = { version = "0.5.1-beta", path = "../llrt_json" }
Expand All @@ -20,4 +20,4 @@ llrt_utils = { version = "0.5.1-beta", path = "../llrt_utils", default-features
rquickjs = { git = "https://github.com/DelSkayn/rquickjs.git", version = "0.9.0", features = [
"macro",
], default-features = false }
ryu = "1"
ryu = { version = "1", default-features = false }
11 changes: 7 additions & 4 deletions libs/llrt_numbers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ name = "llrt_numbers"
path = "src/lib.rs"

[dependencies]
itoa = "1"
itoa = { version = "1", default-features = false }
llrt_utils = { version = "0.5.1-beta", path = "../llrt_utils", default-features = false }
rquickjs = { git = "https://github.com/DelSkayn/rquickjs.git", version = "0.9.0", default-features = false }
rand = "0.8"
ryu = "1"
ryu = { version = "1", default-features = false }

[dev-dependencies]
criterion = "0.6"
criterion = { version = "0.6", default-features = false }
llrt_test = { version = "0.5.1-beta", path = "../llrt_test" }
rand = { version = "0.8", features = [
"alloc",
"getrandom",
], default-features = false }

[[bench]]
name = "numbers"
Expand Down
9 changes: 5 additions & 4 deletions libs/llrt_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ name = "llrt_test"
path = "src/lib.rs"

[dependencies]
nanoid = "0.4.0"
nanoid = { version = "0.4", default-features = false }
rquickjs = { git = "https://github.com/DelSkayn/rquickjs.git", version = "0.9.0", features = [
"futures",
"parallel",
"loader",
"parallel",
], default-features = false }
tokio = { version = "1", features = [
"fs"
], default-features = false }
rand = "0.8.5"
tokio = { version = "1", features = ["full"] }
7 changes: 4 additions & 3 deletions libs/llrt_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ rquickjs = { git = "https://github.com/DelSkayn/rquickjs.git", version = "0.9.0"
"array-buffer",
"macro",
], default-features = false }
tokio = { version = "1", features = ["sync"] }
tracing = "0.1"
tokio = { version = "1", features = [
"sync",
], default-features = false }
tracing = { version = "0.1", default-features = false }

[dev-dependencies]
llrt_test = { version = "0.5.1-beta", path = "../llrt_test" }
tokio = { version = "1", features = ["full"] }

[build-dependencies]
llrt_build = { version = "0.5.1-beta", path = "../llrt_build" }
27 changes: 20 additions & 7 deletions llrt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,29 @@ uncompressed = ["llrt_core/uncompressed"]
bindgen = ["llrt_core/bindgen"]

[dependencies]
chrono = { version = "0.4", default-features = false, features = ["std"] }
constcat = "0.6"
crossterm = { version = "0.29" }
chrono = { version = "0.4", features = [
"std"
], default-features = false }
constcat = { version = "0.6", default-features = false }
crossterm = { version = "0.29", features = [
"events",
"windows",
], default-features = false }
llrt_core = { path = "../llrt_core" }
tokio = { version = "1", features = ["full"] }
tracing = { version = "0.1", features = ["log"] }
tracing-core = "0.1"
tokio = { version = "1", features = [
"macros",
"rt-multi-thread",
], default-features = false }
tracing = { version = "0.1", features = [
"log"
], default-features = false }
tracing-core = { version = "0.1", default-features = false }

[target.'cfg(not(target_os = "windows"))'.dependencies]
snmalloc-rs = { version = "0.3", features = ["lto"] }
snmalloc-rs = { version = "0.3", features = [
"default",
"lto",
], default-features = false }

[dev-dependencies]
llrt_test = { version = "0.5.1-beta", path = "../libs/llrt_test" }
Expand Down
89 changes: 47 additions & 42 deletions llrt_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,77 +13,82 @@ macro = ["rquickjs/macro"]
bindgen = ["rquickjs/bindgen"]

[dependencies]
bytes = "1"
chrono = { version = "0.4", default-features = false, features = ["std"] }
home = "0.5"
http-body-util = "0.1"
hyper = { version = "1", features = ["client", "http1", "http2"] }
hyper-rustls = { version = "0.27", default-features = false, features = [
"http2",
"http1",
"webpki-roots",
"webpki-tokio",
"ring",
] }
hyper-util = "0.1"
itoa = "1"
libc = "0.2"
bytes = { version = "1", default-features = false }
chrono = { version = "0.4", features = [
"std"
], default-features = false }
home = { version = "0.5", default-features = false }
http-body-util = { version = "0.1", default-features = false }
hyper = { version = "1", default-features = false }
itoa = { version = "1", default-features = false }
libc = { version = "0.2", default-features = false }
llrt_context = { path = "../libs/llrt_context" }
llrt_encoding = { path = "../libs/llrt_encoding" }
llrt_json = { path = "../libs/llrt_json" }
llrt_logging = { path = "../libs/llrt_logging" }
llrt_modules = { path = "../llrt_modules" }
llrt_numbers = { path = "../libs/llrt_numbers" }
llrt_utils = { path = "../libs/llrt_utils", features = ["all"] }
once_cell = "1"
phf = "0.11"
quick-xml = "0.37"
ring = "0.17"
once_cell = { version = "1", features = [
"std",
], default-features = false }
phf = {version = "0.11", default-features = false }
quick-xml = { version = "0.37", default-features = false }
ring = { version = "0.17", default-features = false }
rquickjs = { git = "https://github.com/DelSkayn/rquickjs.git", version = "0.9.0", features = [
"full-async",
"parallel",
"rust-alloc",
], default-features = false }
rustls = { version = "0.23", default-features = false, features = [
"tls12",
rustls = { version = "0.23", features = [
"ring",
] }
rustls-pemfile = "2"
ryu = "1"
simd-json = { version = "0.15", default-features = false, features = [
"big-int-as-float",
] }
terminal_size = "0.4"
tokio = { version = "1", features = ["full"] }
tracing = { version = "0.1", features = ["log"] }
url = "=2.5.1"
uuid = { version = "1", default-features = false, features = [
"tls12",
], default-features = false }
rustls-pemfile = { version = "2", features = [
"std",
], default-features = false }
ryu = { version = "1", default-features = false }
simd-json = { version = "0.15", default-features = false }
terminal_size = { version = "0.4", default-features = false }
tokio = { version = "1", features = [
"sync",
"time",
], default-features = false }
tracing = { version = "0.1", features = [
"log"
], default-features = false }
url = { version = "=2.5.1", default-features = false }
uuid = { version = "1", features = [
"fast-rng",
"v1",
"v3",
"v4",
"v5",
"v6",
"v7",
"fast-rng",
] }
uuid-simd = "0.8"
zstd = { version = "0.13", default-features = false, features = [] }
], default-features = false }
uuid-simd = { version = "0.8", features = [
"uuid",
], default-features = false }
zstd = { version = "0.13", default-features = false }

[target.'cfg(target_os = "windows")'.dependencies]
md-5 = { version = "0.10" }
md-5 = { version = "0.10", default-features = false }
[target.'cfg(not(target_os = "windows"))'.dependencies]
md-5 = { version = "0.10", features = ["asm"] }
md-5 = { version = "0.10", features = [
"asm",
], default-features = false }

[build-dependencies]
rquickjs = { git = "https://github.com/DelSkayn/rquickjs.git", version = "0.9.0", features = [
"full-async",
"rust-alloc",
], default-features = false }
phf_codegen = "0.11"
jwalk = "0.8"
nanoid = "0.4"
phf_codegen = { version = "0.11", default-features = false }
jwalk = { version = "0.8", default-features = false }
nanoid = { version = "0.4", default-features = false }
llrt_build = { path = "../libs/llrt_build" }

[dev-dependencies]
wiremock = "0.6"
wiremock = { version = "0.6", default-features = false }
llrt_test = { path = "../libs/llrt_test" }
2 changes: 1 addition & 1 deletion llrt_modules/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ llrt_fetch = { version = "0.5.1-beta", path = "../modules/llrt_fetch", optional
llrt_fs = { version = "0.5.1-beta", path = "../modules/llrt_fs", optional = true }
llrt_navigator = { version = "0.5.1-beta", path = "../modules/llrt_navigator", optional = true }
llrt_net = { version = "0.5.1-beta", path = "../modules/llrt_net", optional = true }
llrt_os = { version = "0.5.1-beta", path = "../modules/llrt_os", optional = true }
llrt_os = { version = "0.5.1-beta", path = "../modules/llrt_os", default-features = false, optional = true }
llrt_path = { version = "0.5.1-beta", path = "../modules/llrt_path", optional = true }
llrt_process = { version = "0.5.1-beta", path = "../modules/llrt_process", optional = true }
llrt_perf_hooks = { version = "0.5.1-beta", path = "../modules/llrt_perf_hooks", optional = true }
Expand Down
8 changes: 6 additions & 2 deletions modules/llrt_abort/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ llrt_utils = { version = "0.5.1-beta", path = "../../libs/llrt_utils", default-f
rquickjs = { git = "https://github.com/DelSkayn/rquickjs.git", version = "0.9.0", features = [
"macro",
], default-features = false }
tokio = { version = "1", features = ["time"], optional = true }
tokio = { version = "1", features = [
"time",
], default-features = false, optional = true }

[dev-dependencies]
llrt_test = { path = "../../libs/llrt_test" }
tokio = { version = "1", features = ["full"] }
tokio = { version = "1", features = [
"test-util"
], default-features = false }
1 change: 0 additions & 1 deletion modules/llrt_assert/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ rquickjs = { git = "https://github.com/DelSkayn/rquickjs.git", version = "0.9.0"

[dev-dependencies]
llrt_test = { path = "../../libs/llrt_test" }
tokio = { version = "1", features = ["full"] }
4 changes: 3 additions & 1 deletion modules/llrt_buffer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ rquickjs = { git = "https://github.com/DelSkayn/rquickjs.git", version = "0.9.0"

[dev-dependencies]
llrt_test = { path = "../../libs/llrt_test" }
tokio = { version = "1", features = ["full"] }
tokio = { version = "1", features = [
"test-util"
], default-features = false }
Loading
Loading