Nacre/Cargo.toml
astar76 7b7e0cec7f S015: Material You foundation: M3 schemes, Outfit, icons, springs, widgets, gallery
Fixes R1-01 (icon glyphs) and R1-02 (clock contrast).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 19:36:53 -06:00

96 lines
3 KiB
TOML

[package]
name = "nacre"
version = "0.4.0"
edition = "2024"
rust-version = "1.88"
description = "Nacre, a web browser built on Servo"
license = "MPL-2.0"
publish = false
[[bin]]
name = "nacre"
path = "src/main.rs"
[features]
default = ["media"]
# Audio and video through GStreamer. Without it pages load but <video>/<audio> stay silent.
media = ["servo/media-gstreamer"]
[dependencies]
# The engine. Trimmed: no webxr, webgpu, multiprocess, vello.
servo = { version = "=0.7.0", default-features = false, features = [
"bundled_freetype",
"clipboard",
"js_jit",
"webgl",
"webcrypto",
"brotli-compression-stream",
"gamepad",
"bluetooth",
"native-bluetooth",
] }
# Window, GL and UI. Versions follow what Servo 0.7 and egui 0.37 use so the types are shared.
winit = { version = "0.30.13", default-features = false, features = ["rwh_06", "x11", "wayland", "wayland-csd-adwaita"] }
egui = { version = "0.37", default-features = false, features = ["default_fonts"] }
egui_glow = { version = "0.37", default-features = false, features = ["winit", "x11", "wayland", "clipboard"] }
glow = "0.17"
# Material You colour schemes (HCT, tonal palettes). 0.4.2: 0.5 needs Rust 1.97 (D-009).
material-colors = { version = "=0.4.2", default-features = false, features = ["std"] }
euclid = "0.22"
dpi = "0.1"
raw-window-handle = "0.6"
keyboard-types = "0.8.3"
url = "2.5"
http = "1.4"
rustls = { version = "0.23", default-features = false, features = ["aws_lc_rs", "std"] }
content-security-policy = "0.9"
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "ico", "webp", "gif", "bmp"] }
log = "0.4"
# Ad blocking
adblock = { version = "0.13.5", default-features = false, features = ["embedded-domain-resolver", "full-regex-handling"] }
# Nacre's own HTTP (downloads, filter lists, updates, DoH)
ureq = { version = "3.5", default-features = false, features = ["rustls-no-provider", "rustls-webpki-roots", "gzip", "brotli"] }
# Storage and formats (rusqlite: the same version Servo uses, for importing other browsers)
serde = { version = "1", features = ["derive"] }
serde_json = "1"
dirs = "6"
rusqlite = { version = "0.38", features = ["bundled"] }
base64 = "0.22"
# Password vault
chacha20poly1305 = "0.10"
argon2 = "0.5"
getrandom = "0.3"
# Gamepads (Servo gets gamepad input from the embedder)
gilrs = "0.11"
# Small features
rfd = { version = "0.17", default-features = false, features = ["xdg-portal", "pollster"] }
qrcode = { version = "0.14", default-features = false }
spellbook = "0.4"
arboard = { version = "3.6", default-features = false, features = ["wayland-data-control"] }
[target.'cfg(unix)'.dependencies]
libc = "0.2"
[profile.release]
opt-level = 3
debug = false
strip = true
codegen-units = 16
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 2
# epaint 0.37.0 panics when Servo's canvas enables vello_cpu/multithreading; the vendored copy renders glyphs
# single-threaded (vendor/epaint/src/text/font_face.rs, end of file). Drop when egui ships a fix.
[patch.crates-io]
epaint = { path = "vendor/epaint" }