Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
193 lines (180 loc) · 5.16 KB
/
Copy pathCargo.toml
File metadata and controls
193 lines (180 loc) · 5.16 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
[workspace]
members = ["crates/*"]
# Make bare `cargo test`/`build` in the root cover the library crates too.
#
# gib-testkit and browser-tests are deliberately absent: `trunk build` builds the
# default members for wasm32, and both shell out to subprocesses and use
# unix-only APIs, so neither can be built for that target. gib-testkit is still
# covered by `cargo test --workspace`, and every crate that needs it takes it as
# a dev-dependency. browser-tests is reached by `cargo test --workspace` too, but
# its only target is gated behind a `browser` feature that is off by default —
# see crates/browser-tests/Cargo.toml.
default-members = [
".",
"crates/gib",
"crates/gib-archive",
"crates/gib-attributes",
"crates/gib-blame",
"crates/gib-bundle",
"crates/gib-commitgraph",
"crates/gib-diff-delta",
"crates/gib-diff",
"crates/gib-fs",
"crates/gib-hash",
"crates/gib-log",
"crates/gib-mailmap",
"crates/gib-object",
"crates/gib-odb",
"crates/gib-pack",
"crates/gib-parse",
"crates/gib-patch",
"crates/gib-ref",
"crates/gib-xdiff",
]
[workspace.package]
license = "GPL-2.0-or-later"
[workspace.lints.clippy]
all = { level = "deny", priority = -1 }
[workspace.dependencies]
anyhow = "1"
cc = "1.2"
comrak = { version = "0.54.0", default-features = false }
console_error_panic_hook = "0.1"
fantoccini = "0.22.1"
futures = { version = "0.3.32", default-features = false }
gib = { path = "crates/gib" }
gib-archive = { path = "crates/gib-archive" }
gib-attributes = { path = "crates/gib-attributes" }
gib-blame = { path = "crates/gib-blame" }
gib-bundle = { path = "crates/gib-bundle" }
gib-commitgraph = { path = "crates/gib-commitgraph" }
gib-diff-delta = { path = "crates/gib-diff-delta" }
gib-diff = { path = "crates/gib-diff" }
gib-fs = { path = "crates/gib-fs" }
gib-hash = { path = "crates/gib-hash" }
gib-log = { path = "crates/gib-log" }
gib-mailmap = { path = "crates/gib-mailmap" }
gib-object = { path = "crates/gib-object" }
gib-odb = { path = "crates/gib-odb" }
gib-pack = { path = "crates/gib-pack" }
gib-parse = { path = "crates/gib-parse" }
gib-patch = { path = "crates/gib-patch" }
gib-ref = { path = "crates/gib-ref" }
gib-xdiff = { path = "crates/gib-xdiff" }
giallo = { git = "https://github.com/legoktm/giallo", branch = "webgit-render_lines", features = ["dump"] }
gib-testkit = { path = "crates/gib-testkit" }
git-version = "0.3.9"
hex = { version = "0.4.3", default-features = false, features = [] }
hex-literal = "1.1.0"
insta = "1"
jiff = { version = "0.2.35", default-features = false, features = ["alloc"] }
js-sys = "0.3"
memchr = "2"
miniz_oxide = "0.9.1"
nom = { version = "8.0.0", default-features = false, features = ["alloc"] }
rand_core = "0.10.0"
rand_pcg = "0.10.1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha1 = { version = "0.10.7", default-features = false }
tar = { version = "0.4.46", default-features = false }
tempfile = "3.27.0"
tokio = "1.53.1"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
web-sys = { version = "0.3", features = [
"Window",
"Location",
"History",
"Document",
"Element",
"Blob",
"BlobPropertyBag",
"Url",
"HtmlAnchorElement",
"HtmlIFrameElement",
"NodeList",
"DomParser",
"SupportedType",
"Event",
"EventTarget",
"File",
"FileList",
"HtmlInputElement",
"ReadableStream",
"ResponseInit",
"ReadableStreamDefaultReader",
"WritableStream",
"WritableStreamDefaultWriter",
"Request",
"RequestCache",
"RequestInit",
"RequestMode",
"Response",
"Headers",
"console",
"IdbCursor",
"IdbCursorWithValue",
"IdbDatabase",
"IdbFactory",
"IdbKeyRange",
"IdbObjectStore",
"IdbObjectStoreParameters",
"IdbOpenDbRequest",
"IdbRequest",
"IdbTransaction",
"IdbTransactionMode",
"IdbVersionChangeEvent",
] }
yew = "0.23"
[package]
name = "webgit"
version = "0.2.2"
edition = "2024"
license.workspace = true
[lints]
workspace = true
[lib]
crate-type = ["cdylib"]
[dependencies]
anyhow.workspace = true
futures = { workspace = true, features = ["alloc", "async-await"] }
gib.workspace = true
gib-archive.workspace = true
gib-blame.workspace = true
gib-bundle.workspace = true
gib-log.workspace = true
gib-mailmap.workspace = true
gib-patch.workspace = true
wasm-bindgen.workspace = true
wasm-bindgen-futures.workspace = true
js-sys.workspace = true
web-sys.workspace = true
console_error_panic_hook.workspace = true
serde.workspace = true
serde_json.workspace = true
yew = { workspace = true, features = ["csr"] }
git-version.workspace = true
comrak.workspace = true
giallo.workspace = true
jiff.workspace = true
[dev-dependencies]
insta.workspace = true
futures = { workspace = true, features = ["async-await", "executor"] }
yew = { workspace = true, features = ["ssr"] }
[build-dependencies]
camino = "1.2.6"
cargo_metadata = "0.23.1"
giallo.workspace = true
glob = "0.3.4"
# optimize for download bundle size
[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
strip = true
# except these are on the hot path, optimize for performance.
[profile.release.package.miniz_oxide]
opt-level = 3
[profile.release.package.sha1]
opt-level = 3