-
-
Notifications
You must be signed in to change notification settings - Fork 174
/
Cargo.toml
111 lines (96 loc) · 3.78 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
[package]
name = "gosub_engine"
version = "0.1.1"
edition = "2021"
rust-version = "1.80"
authors = ["Gosub Community <info@gosub.io>"]
description = "Gosub Browser Engine"
license = "MIT"
repository = "https://github.com/gosub-io/gosub-engine"
readme = "README.md"
keywords = ["html5", "parser", "browser", "Rust", "DOM"]
[workspace]
members = [
"crates/*"
]
[[example]]
name = "html5-parser"
[[example]]
name = "gtk-renderer"
path = "examples/gtk-renderer/main.rs"
[[example]]
name = "vello-renderer"
path = "examples/vello-renderer/main.rs"
[[bench]]
name = "tree_iterator"
harness = false
[[bench]]
name = "bytestream"
harness = false
[dependencies]
gosub_interface = { version = "0.1.1", path = "./crates/gosub_interface", features = [], registry = "gosub" }
gosub_shared = { version = "0.1.1", path = "./crates/gosub_shared", features = [], registry = "gosub" }
gosub_config = { version = "0.1.1", path = "./crates/gosub_config", features = [], registry = "gosub" }
gosub_html5 = { version = "0.1.1", path = "./crates/gosub_html5", features = [], registry = "gosub" }
gosub_css3 = { version = "0.1.1", path = "./crates/gosub_css3", features = [], registry = "gosub" }
gosub_jsapi = { version = "0.1.1", path = "./crates/gosub_jsapi", features = [], registry = "gosub" }
gosub_rendering = { version = "0.1.1", path = "crates/gosub_rendering", features = [], registry = "gosub" }
gosub_renderer = { version = "0.1.1", path = "./crates/gosub_renderer", features = [], registry = "gosub" }
gosub_vello = { version = "0.1.1", path = "./crates/gosub_vello", features = [], registry = "gosub" }
gosub_cairo = { version = "0.1.1", path = "./crates/gosub_cairo", features = [], registry = "gosub" }
gosub_taffy = { version = "0.1.1", path = "./crates/gosub_taffy", features = [], registry = "gosub" }
gosub_net = { version = "0.1.1", path = "./crates/gosub_net", features = [], registry = "gosub" }
gosub_instance = { version = "0.1.0", path = "./crates/gosub_instance", features = [], registry = "gosub" }
# Dependencies are needed for gosub_engine itself, and some of the binaries in src/bin.
cookie = { version = "0.18.1", features = ["secure", "private"] }
url = "2.5.4"
clap = { version = "4.5.21", features = ["derive"] }
anyhow = "1.0.94"
derive_more = "1.0.0"
simple_logger = "5.0.0"
log = "0.4.22"
walkdir = "2.5.0"
# Dependencies for testing and development. Also used for some of the examples (like the gtk/vello renderer).
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
test-case = "3.3.1"
gtk4 = "0.9.5"
winit = "0.30.7"
cookie = { version = "0.18.1", features = ["secure", "private"] }
url = "2.5.4"
clap = { version = "4.5.21", features = ["derive"] }
simple_logger = "5.0.0"
log = "0.4.22"
anyhow = "1.0.94"
image = "0.25.5"
slotmap = "1.0.7"
[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.47"
getrandom = { version = "0.2.15", features = ["js"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
gosub_v8 = { version = "0.1.1", path = "./crates/gosub_v8", features = [], registry = "gosub" }
gosub_webexecutor = { version = "0.1.1", path = "./crates/gosub_webexecutor", features = [], registry = "gosub" }
ureq = "2.12.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