-
-
Notifications
You must be signed in to change notification settings - Fork 172
/
Cargo.toml
100 lines (84 loc) · 2.82 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
[package]
name = "gosub_engine"
version = "0.1.0"
edition = "2021"
rust-version = "1.79"
authors = ["Gosub Community <info@gosub.io>"]
description = "An HTML5 browser engine written in Rust."
license = "MIT"
repository = "https://github.com/gosub-browser/gosub-engine"
readme = "README.md"
keywords = ["html5", "parser", "browser", "Rust", "DOM"]
[workspace]
members = [
"crates/*"
]
[[example]]
name = "html5-parser"
[[bench]]
name = "tree_iterator"
harness = false
[[bench]]
name = "bytestream"
harness = false
[dependencies]
gosub_shared = { path = "./crates/gosub_shared", features = [] }
gosub_config = { path = "./crates/gosub_config", features = [] }
gosub_html5 = { path = "./crates/gosub_html5", features = [] }
gosub_css3 = { path = "./crates/gosub_css3", features = [] }
gosub_jsapi = { path = "./crates/gosub_jsapi", features = [] }
gosub_testing = { path = "./crates/gosub_testing", features = [] }
gosub_rendering = { path = "crates/gosub_render_utils", features = [] }
gosub_renderer = { path = "./crates/gosub_renderer", features = [] }
gosub_render_backend = { path = "./crates/gosub_render_backend", features = [] }
gosub_vello = { path = "./crates/gosub_vello", features = [] }
gosub_useragent = { path = "./crates/gosub_useragent", features = [] }
gosub_taffy = { path = "./crates/gosub_taffy", features = [] }
gosub_net = { path = "./crates/gosub_net", features = [] }
serde = { version = "1.0", features = ["derive"] }
serde_derive = "1.0"
derive_more = { version = "1", features = ["from"] }
lazy_static = "1.5"
regex = "1"
anyhow = "1.0.93"
walkdir = "2.5"
clap = { version = "4.5.21", features = ["derive"] }
simple_logger = "5.0.0"
cookie = { version = "0.18.1", features = ["secure", "private"] }
url = "2.5.4"
nom = "7.1.3"
nom-trace = "0.2.1"
log = "0.4.22"
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
test-case = "3.3.1"
[features]
# Enables extended debugging information during parsing.
debug_parser = []
debug_parser_verbose = []
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = "0.3.72"
js-sys = "0.3.70"
console_log = "1.0.0"
console_error_panic_hook = "0.1.7"
wasm-bindgen = "0.2.93"
wasm-bindgen-futures = "0.4.42"
getrandom = { version = "0.2.15", features = ["js"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
gosub_v8 = { path = "./crates/gosub_v8", features = [] }
gosub_webexecutor = { path = "./crates/gosub_webexecutor", features = [] }
ureq = "2.10.1"
futures = "0.3.31"
[profile.release]
lto = "fat"
opt-level = 3
codegen-units = 1
#rustflags = ["-C", "target-cpu=native"] # Currently unstable and it can cause problems on older CPUs (don't have newer CPU instructions).
[profile.bench]
lto = "fat"
opt-level = 3
codegen-units = 1
[lib]
crate-type = ["staticlib", "cdylib", "rlib"]
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
dwarf-debug-info = true