forked from DelSkayn/rquickjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
165 lines (129 loc) · 4.46 KB
/
Cargo.toml
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
[package]
name = "rquickjs"
version = "0.1.7"
authors = ["Mees Delzenne <[email protected]>", "K. <[email protected]>"]
edition = "2018"
license = "MIT"
readme = "README.md"
description = "High level bindings to the QuickJS javascript engine"
keywords = ["quickjs", "ecmascript", "javascript", "es6", "es2020"]
categories = ["api-bindings"]
repository = "https://github.com/DelSkayn/rquickjs.git"
[dependencies.rquickjs-core]
version = "0.1.7"
path = "core"
[dependencies.rquickjs-macro]
version = "0.1.7"
path = "macro"
optional = true
[dependencies.async-std-rs]
package = "async-std"
version = "1"
optional = true
default-features = false
features = ["default", "unstable"]
[dependencies.tokio-rs]
package = "tokio"
version = "1"
optional = true
default-features = false
features = ["rt"]
[dependencies.smol-rs]
package = "smol"
version = "1"
optional = true
[dependencies.indexmap-rs]
package = "indexmap"
version = "1"
optional = true
[dependencies.either-rs]
package = "either"
version = "1"
optional = true
[workspace]
members = [
"sys",
"core",
"macro",
"examples/native-module",
"examples/module-loader",
]
[features]
default = ["exports", "classes", "properties"]
# Almost all features excluding "parallel" and support for async runtimes
full = ["chrono", "exports", "loader", "allocator", "dyn-load", "either", "indexmap", "registery", "classes", "properties", "array-buffer", "macro", "phf"]
# Almost all features excluding "parallel"
full-async = ["full", "async-std", "tokio", "smol"]
# Chrono support.
chrono = ["rquickjs-core/chrono"]
# Enable support for Either type
either = ["rquickjs-core/either", "either-rs"]
# Enable support for IndexMap and IndexSet types type
indexmap = ["rquickjs-core/indexmap", "indexmap-rs"]
# Enable support for perfect hash maps
phf = ["rquickjs-core/phf", "rquickjs-macro/phf"]
# Use bindgen to generate bindings at compile-type
# otherwise bundled bindings will be used
bindgen = ["rquickjs-core/bindgen"]
# Enable support of parallel execution
parallel = ["rquickjs-core/parallel"]
# Enable runtime registery
registery = ["rquickjs-core/registery"]
# Enable support of reading module exports
exports = ["rquickjs-core/exports"]
# Enable user-defined module loader support
loader = ["rquickjs-core/loader"]
# Enable native module loading support
dyn-load = ["rquickjs-core/dyn-load"]
# Enable user-defined allocator support
allocator = ["rquickjs-core/allocator"]
# Use Rust global allocator by default
# otherwise libc allocator will be used
rust-alloc = ["rquickjs-core/rust-alloc"]
# Enable user-defined classes support
classes = ["rquickjs-core/classes"]
# Enable user-defined properties support
properties = ["rquickjs-core/properties"]
# Enable ArrayBuffer and TypedArray support
array-buffer = ["rquickjs-core/array-buffer"]
# Enable helper macros
macro = ["rquickjs-macro"]
# Enable interop between Rust futures and JS Promises
futures = ["rquickjs-core/futures"]
# Enable Tokio async runtime support
tokio = ["rquickjs-core/tokio", "tokio-rs"]
# Enable Async-std runtime support
async-std = ["rquickjs-core/async-std", "async-std-rs"]
# Enable Smol async runtime support
smol = ["rquickjs-core/smol", "smol-rs"]
# Max number of function args
max-args-7 = ["rquickjs-core/max-args-7"]
max-args-8 = ["rquickjs-core/max-args-7"]
max-args-9 = ["rquickjs-core/max-args-8"]
max-args-10 = ["rquickjs-core/max-args-9"]
max-args-11 = ["rquickjs-core/max-args-10"]
max-args-12 = ["rquickjs-core/max-args-11"]
max-args-13 = ["rquickjs-core/max-args-12"]
max-args-14 = ["rquickjs-core/max-args-13"]
max-args-15 = ["rquickjs-core/max-args-14"]
max-args-16 = ["rquickjs-core/max-args-15"]
# Enable QuickJS dumps for debug
dump-bytecode = ["rquickjs-core/dump-bytecode"]
dump-gc = ["rquickjs-core/dump-gc"]
dump-gc-free = ["rquickjs-core/dump-gc-free"]
dump-free = ["rquickjs-core/dump-free"]
# Dump JS values which still alive when runtime is freed
dump-leaks = ["rquickjs-core/dump-leaks"]
dump-mem = ["rquickjs-core/dump-mem"]
dump-objects = ["rquickjs-core/dump-objects"]
dump-atoms = ["rquickjs-core/dump-atoms"]
dump-shapes = ["rquickjs-core/dump-shapes"]
dump-module-resolve = ["rquickjs-core/dump-module-resolve"]
dump-promise = ["rquickjs-core/dump-promise"]
dump-read-object = ["rquickjs-core/dump-read-object"]
# Enable compilation tests
compile-tests = ["rquickjs-core/compile-tests"]
# Enable unstable doc-cfg feature (for docs.rs)
doc-cfg = ["rquickjs-core/doc-cfg"]
[package.metadata.docs.rs]
features = ["full-async", "parallel", "doc-cfg"]