-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
176 lines (164 loc) · 7.77 KB
/
Copy pathCargo.toml
File metadata and controls
176 lines (164 loc) · 7.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
[workspace]
members = [
"core",
"rong_macro",
"quickjs", "quickjs/sys",
"javascriptcore", "javascriptcore/sys",
"arkjs", "arkjs/sys",
"testing/rong_test",
"testing/rong_test_harness",
"testing/rong_test_device",
"examples",
"rong_rt",
"modules/rong_timer",
"modules/rong_cron",
"modules/rong_http", "modules/rong_encoding", "modules/rong_event",
"modules/rong_assert", "modules/rong_exception", "modules/rong_storage",
"modules/rong_abort", "modules/rong_console", "modules/rong_url", "modules/rong_buffer",
"modules/rong_fs", "modules/rong_stream",
"modules/rong_crypto",
"modules/rong_compression",
"modules/rong_command",
"modules/rong_worker",
"modules/rong_redis",
"modules/rong_sqlite",
"modules/rong_s3",
"rong_modules", "rong_cli",
"rong_typegen",
]
exclude = ["testing/harmony/rong_harmony_smoke"]
[workspace.package]
edition = "2024"
license = "MIT OR Apache-2.0"
repository = "https://github.com/LingXia-Dev/Rong"
homepage = "https://github.com/LingXia-Dev/Rong"
rust-version = "1.95"
readme = "README.md"
keywords = ["javascript", "runtime", "embedding"]
categories = ["api-bindings"]
[workspace.dependencies]
# Internal dependencies
rong = { path = ".", default-features = false , version = "0.6.0" }
rong_core = { path = "core" , version = "0.6.1" }
rong_quickjs = { path = "quickjs" , version = "0.6.0" }
rong_quickjs_sys = { path = "quickjs/sys" , version = "0.6.0" }
rong_jscore = { path = "javascriptcore" , version = "0.6.0" }
rong_jscore_sys = { path = "javascriptcore/sys" , version = "0.6.0" }
rong_arkjs = { path = "arkjs" , version = "0.6.0" }
rong_arkjs_sys = { path = "arkjs/sys" , version = "0.6.0" }
rong_macro = { path = "rong_macro" , version = "0.6.0" }
rong_test = { path = "testing/rong_test", default-features = false , version = "0.4.0" }
rong_test_harness = { path = "testing/rong_test_harness" , version = "0.4.0" }
rong_test_device = { path = "testing/rong_test_device" , version = "0.4.0" }
rong_modules = { path = "rong_modules" , version = "0.6.1" }
rong_rt = { path = "rong_rt" , default-features = false , version = "0.6.1" }
rong_typegen = { path = "rong_typegen", default-features = false, version = "0.6.1" }
# Module dependencies
rong_timer = { path = "modules/rong_timer" , default-features = false , version = "0.6.0" }
rong_cron = { path = "modules/rong_cron" , default-features = false , version = "0.6.0" }
rong_console = { path = "modules/rong_console" , default-features = false , version = "0.6.0" }
rong_assert = { path = "modules/rong_assert" , default-features = false , version = "0.6.0" }
rong_fs = { path = "modules/rong_fs" , default-features = false , version = "0.6.0" }
rong_http = { path = "modules/rong_http" , default-features = false , version = "0.6.1" }
rong_encoding = { path = "modules/rong_encoding" , default-features = false , version = "0.6.0" }
rong_event = { path = "modules/rong_event" , default-features = false , version = "0.6.0" }
rong_exception = { path = "modules/rong_exception" , default-features = false , version = "0.6.0" }
rong_abort = { path = "modules/rong_abort" , default-features = false , version = "0.6.1" }
rong_url = { path = "modules/rong_url" , default-features = false , version = "0.6.0" }
rong_buffer = { path = "modules/rong_buffer" , default-features = false , version = "0.6.0" }
rong_stream = { path = "modules/rong_stream" , default-features = false , version = "0.6.0" }
rong_crypto = { path = "modules/rong_crypto" , default-features = false , version = "0.6.1" }
rong_compression = { path = "modules/rong_compression" , default-features = false , version = "0.6.0" }
rong_command = { path = "modules/rong_command" , default-features = false , version = "0.6.1" }
rong_storage = { path = "modules/rong_storage" , default-features = false , version = "0.6.1" }
rong_worker = { path = "modules/rong_worker" , default-features = false , version = "0.6.0" }
rong_redis = { path = "modules/rong_redis" , default-features = false , version = "0.6.0" }
rong_sqlite = { path = "modules/rong_sqlite" , default-features = false , version = "0.6.0" }
rong_s3 = { path = "modules/rong_s3" , version = "0.6.0", default-features = false }
# External dependencies
tokio = { version = "1.52", features = ["rt", "rt-multi-thread", "time", "macros", "sync", "fs", "io-util", "process", "io-std"] }
tokio-cron-scheduler = "0.15.1"
futures = "0.3.32"
thiserror = "2.0.18"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
chrono = { version = "0.4", default-features = false, features = ["std", "clock"] }
croner = "3.0.1"
# Additional common dependencies
http = { package = "http", version = "1.4" }
http-body-util = "0.1.3"
hyper = { version = "1.10.1", features = ["client", "http1"] }
hyper-util = { version = "0.1.20", features = ["client", "http1", "tokio"] }
hyper-rustls = { version = "0.27.9", default-features = false, features = ["webpki-roots", "http1", "tls12"] }
rustls = { version = "0.23", default-features = false }
flate2 = { version = "1.1.9" }
uuid = { version = "1.23.4", features = ["v4"] }
axum = { version = "0.8.9", features = ["http1"] }
nix = { version = "0.31", features = ["user", "fs"] }
syn = { version = "2.0", features = ["full"] }
bytes = "1.12.1"
tokio-stream = "0.1.18"
redis = { version = "1.3", features = ["tokio-comp", "aio"] }
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["fmt", "env-filter"] }
smallvec = "1.15.2"
# Cryptography primitives (RustCrypto) backing `modules/rong_crypto`
sha1 = { version = "0.11.0", default-features = false, features = ["alloc"] }
sha2 = { version = "0.11.0", default-features = false, features = ["alloc"] }
hmac = { version = "0.13.0", default-features = false }
aes = { version = "0.9.2", default-features = false }
aes-gcm = { version = "0.11.0", default-features = false, features = ["aes", "alloc"] }
cbc = { version = "0.2.1", default-features = false, features = ["alloc", "block-padding"] }
pbkdf2 = { version = "0.13.0", default-features = false, features = ["hmac"] }
hkdf = { version = "0.13.0", default-features = false }
getrandom = { version = "0.4.3", default-features = false }
base64 = { version = "0.22.1" }
[package]
name = "rong"
version = "0.6.1"
edition = "2024"
description = "RongJS runtime and embedding API"
license = "MIT OR Apache-2.0"
repository = "https://github.com/LingXia-Dev/Rong"
homepage.workspace = true
rust-version.workspace = true
documentation = "https://docs.rs/rong"
readme = "README.md"
keywords.workspace = true
categories.workspace = true
include = [
"Cargo.toml",
"CHANGELOG.md",
"LICENSE-APACHE",
"LICENSE-MIT",
"README.md",
"src/**",
]
[dependencies]
rong_core = { workspace = true }
rong_rt = { workspace = true }
rong_quickjs = { workspace = true, optional = true }
rong_jscore = { workspace = true, optional = true }
rong_arkjs = { workspace = true, optional = true }
rong_macro = { workspace = true }
tokio = { workspace = true }
futures = { workspace = true }
[features]
# Library consumers must select an engine/TLS backend explicitly.
# The CLI/examples keep desktop-friendly defaults for out-of-the-box runs.
default = []
quickjs = ["dep:rong_quickjs"]
jscore = ["dep:rong_jscore"]
# Source/JSCOnly builds always enable hard interruption in `rong_jscore`.
jscore-source = ["jscore", "rong_jscore/source"]
# Opt in when linking Apple's system framework; source builds do not need this
# extra feature. See rong_jscore's App Store caveat.
jscore-interrupt = ["jscore", "rong_jscore/interrupt-spi"]
arkjs = ["dep:rong_arkjs"]
tls-aws-lc = ["rong_rt/tls-aws-lc"]
tls-ring = ["rong_rt/tls-ring"]
[dev-dependencies]
rong_test = { path = "testing/rong_test" }
bytes = { workspace = true }
[profile.test]
debug = true