-
Notifications
You must be signed in to change notification settings - Fork 419
Expand file tree
/
Copy pathCargo.toml
More file actions
173 lines (160 loc) · 4.28 KB
/
Copy pathCargo.toml
File metadata and controls
173 lines (160 loc) · 4.28 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
[package]
name = "v8"
version = "152.2.0"
description = "Rust bindings to V8"
readme = "README.md"
authors = ["the Deno authors"]
license = "MIT"
edition = "2024"
repository = "https://github.com/denoland/rusty_v8"
exclude = [
# To keep the package under the 10mb limit imposed by crates.io we exclude
# a lot of files that are not needed for the build.
"*.css",
"*.gyp",
"*.gypi",
"*.html",
"*.m4",
"*.md",
"*.settings",
"*.txt",
"*OWNERS*",
".*",
"AUTHORS",
"Doxyfile*",
"LICENSE*",
"Makefile*",
"README*",
"build/android/",
"build/chromeos/",
"build/fuchsia/",
"buildtools/checkdeps/",
"buildtools/clang_format/",
"third_party/dragonbox/src/cmake/",
"third_party/dragonbox/src/other_files/",
"third_party/dragonbox/src/subproject/",
"third_party/libc++/src/benchmarks/",
"third_party/libc++/src/docs/",
"third_party/libc++/src/lib/",
"third_party/libc++/src/test/",
"third_party/libc++/src/utils/",
"third_party/libc++/src/www/",
"third_party/libc++abi/src/test/",
"third_party/llvm-libc/src/benchmarks/",
"third_party/llvm-libc/src/docs/",
"third_party/llvm-libc/src/fuzzing/",
"third_party/llvm-libc/src/test/",
"third_party/llvm-libc/src/utils/docgen",
"third_party/icu/android/",
"third_party/icu/android_small/",
"third_party/icu/cast/",
"third_party/icu/chromeos/",
"third_party/icu/common/icudtl.dat",
"third_party/icu/common/icudtb.dat",
"third_party/icu/flutter/",
"third_party/icu/ios/",
"third_party/icu/patches/",
"third_party/icu/source/config/",
"third_party/icu/source/data/",
"third_party/icu/source/extra/",
"third_party/icu/source/io/",
"third_party/icu/source/python/",
"third_party/icu/source/samples/",
"third_party/icu/source/test/",
"third_party/icu/source/tools/",
"third_party/icu/tzres/",
"third_party/abseil-cpp/*.def",
"third_party/abseil-cpp/absl/time/internal/cctz/testdata",
"third_party/highway/src/hwy/tests",
"third_party/highway/src/docs",
"third_party/highway/src/g3doc",
"third_party/fp16/src/test",
"third_party/fast_float/src/tests",
"tools/clang",
"tools/win",
"v8/ChangeLog",
"v8/benchmarks/",
"v8/docs/",
"v8/samples/",
"v8/test/",
"v8/tools/",
# These files are required for the build.
"!.gn",
"!BUILD.gn",
"!build/rust/known-target-triples.txt",
"!tools/clang/scripts/update.py",
"!tools/win/DebugVisualizers",
"!v8/test/torque/test-torque.tq",
"!v8/tools/gen-postmortem-metadata.py",
"!v8/tools/gen-v8-gn.py",
"!v8/tools/js2c.py",
"!v8/tools/run.py",
"!v8/tools/snapshot/asm_to_inline_asm.py",
"!v8/tools/testrunner/utils/dump_build_config.py",
]
[profile.dev]
# rusty_v8 may miscompile at opt-level=0.
# https://github.com/rust-lang/rust/issues/87215
# https://github.com/rust-lang/rust/issues/75839
# https://github.com/rust-lang/rust/issues/121028
opt-level = 1
[features]
default = ["use_custom_libcxx"]
use_custom_libcxx = []
# Deprecated no-op: simdutf is always built in. Kept so that downstream
# crates passing `--features simdutf` continue to build; remove at the next
# major version.
simdutf = []
v8_enable_pointer_compression = []
# Builds pointer compression in multi-cage mode, which is what
# `v8::IsolateGroup::create()` needs. No prebuilt libraries are published for
# this configuration, so it requires `V8_FROM_SOURCE=1`. Mutually exclusive
# with `v8_enable_sandbox`.
v8_enable_multi_cage = ["v8_enable_pointer_compression"]
v8_enable_sandbox = ["v8_enable_pointer_compression"]
v8_enable_v8_checks = []
[dependencies]
bitflags = "2.5"
paste = "1.0"
temporal_capi = { version = "0.2.3", features = ["zoneinfo64"] }
[build-dependencies]
miniz_oxide = "0.8.8"
gzip-header = "1.0.0"
fslock = "0.2"
which = "6"
home = "0"
bindgen = "0.72"
[dev-dependencies]
miniz_oxide = "0.8.8"
gzip-header = "1.0.0"
bytes = "1"
align-data = "0.1.0"
fslock = "0.2"
trybuild = "1.0.96"
which = "6"
home = "0"
rustversion = "1"
bindgen = "0.72"
[[example]]
name = "hello_world"
[[example]]
name = "shell"
[[example]]
name = "process"
[[test]]
name = "build"
path = "build.rs"
[[bench]]
name = "function"
path = "benches/function.rs"
harness = false
[[bench]]
name = "string_read"
path = "benches/string_read.rs"
harness = false
[[bench]]
name = "string_encode"
path = "benches/string_encode.rs"
harness = false
[workspace]
members = ["examples/android"]