-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
53 lines (47 loc) · 1.98 KB
/
Copy pathCargo.toml
File metadata and controls
53 lines (47 loc) · 1.98 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
[workspace]
members = ["xtask"]
[package]
name = "gloam"
version = "0.6.0"
edition = "2024"
description = "Loader generator for Vulkan, OpenGL, OpenGL ES, EGL, GLX, and WGL"
license = "MIT OR Apache-2.0"
repository = "https://github.com/tycho/gloam"
rust-version = "1.95"
[[bin]]
name = "gloam"
path = "src/main.rs"
[features]
default = ["fetch"]
fetch = ["dep:ureq", "dep:base64", "dep:rusqlite", "dep:directories"]
[dependencies]
anyhow = "1"
base64 = { version = "0.23", optional = true }
clap = { version = "4", features = ["derive"] }
directories = { version = "6", optional = true }
# Inflates the DEFLATE-compressed bundled specs/headers embedded by build.rs
# (always needed — the XML is embedded in every build, fetch or not). The
# zlib-rs backend is the fastest pure-Rust codec (no aws-lc, no C); it also
# unifies ureq's own gzip flate2 onto zlib-rs instead of its default
# miniz_oxide.
flate2 = { version = "1", default-features = false, features = ["zlib-rs"] }
indexmap = { version = "2", features = ["serde"] }
minijinja = "2"
roxmltree = "0.21"
rusqlite = { version = "0.40", features = ["bundled"], optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha1 = "0.11"
# Blocking HTTPS for --fetch: rustls + ring (no aws-lc) and gzip, no async
# runtime. Replaces reqwest (which dragged in tokio/hyper/aws-lc-sys).
ureq = { version = "3", default-features = false, features = ["rustls", "gzip"], optional = true }
xxhash-rust = { version = "0.8", features = ["xxh3"] }
[build-dependencies]
# Compresses the bundled specs/headers into OUT_DIR blobs at build time.
# Same backend as the runtime dep so both ends agree on raw DEFLATE.
flate2 = { version = "1", default-features = false, features = ["zlib-rs"] }
[dev-dependencies]
assert_cmd = "2"
cc = "1"
predicates = "3"
tempfile = "3"