110 lines
4 KiB
TOML
110 lines
4 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"
|
|
# The vendored servo-net (see [patch.crates-io]): Nacre sets request headers and third-party cookie blocking
|
|
# through its `nacre` module (S023).
|
|
servo-net = "=0.7.0"
|
|
|
|
# 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"
|
|
# Cookie key in the OS keyring (S025, D-019): Secret Service over libdbus on Linux, Credential Manager on Windows
|
|
keyring = { version = "3.6", features = ["sync-secret-service", "crypto-rust", "windows-native"] }
|
|
|
|
# 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.
|
|
# servo-net 0.7.0 keeps hyper's 16 KiB HTTP/2 header limit, which breaks YouTube; the vendored copy raises it
|
|
# (vendor/servo-net/connector.rs, create_http_client). Drop when Servo sets it. Every servo-net patch is listed in
|
|
# docs/DESIGN.md "Vendored servo-net patches".
|
|
[patch.crates-io]
|
|
epaint = { path = "vendor/epaint" }
|
|
servo-net = { path = "vendor/servo-net" }
|
|
servo-script = { path = "vendor/servo-script" }
|
|
servo-script-bindings = { path = "vendor/servo-script-bindings" }
|
|
servo-media = { path = "vendor/servo-media" }
|
|
servo-media-player = { path = "vendor/servo-media-player" }
|
|
servo-media-gstreamer = { path = "vendor/servo-media-gstreamer" }
|