80 lines
2.8 KiB
TOML
80 lines
2.8 KiB
TOML
[package]
|
|
name = "nacre"
|
|
version = "0.4.0"
|
|
edition = "2024"
|
|
rust-version = "1.88"
|
|
description = "Nacre, a web browser built on WebKitGTK"
|
|
license = "MPL-2.0"
|
|
publish = false
|
|
|
|
# webext/: the web process extension (D-036), built with the browser.
|
|
[workspace]
|
|
members = [".", "webext"]
|
|
default-members = [".", "webext"]
|
|
|
|
[[bin]]
|
|
name = "nacre"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# The engine: WebKitGTK 6.0 in a GTK 4 window, Nacre's egui chrome painted over it (D-033, D-035).
|
|
gtk = { package = "gtk4", version = "=0.11.5", features = ["v4_20"] }
|
|
webkit = { package = "webkit6", version = "=0.6.1", features = ["v2_52"] }
|
|
egui = { version = "0.37", default-features = false, features = ["default_fonts"] }
|
|
egui_glow = { version = "0.37", default-features = false }
|
|
glow = "0.17"
|
|
libloading = "0.8"
|
|
# 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"] }
|
|
url = "2.5"
|
|
# Redirect rules (net::rules, shared with webext/)
|
|
regex-lite = "0.1"
|
|
http = "1.4"
|
|
rustls = { version = "0.23", default-features = false, features = ["aws_lc_rs", "std"] }
|
|
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", "content-blocking"] }
|
|
|
|
# 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 also reads other browsers' files for importing)
|
|
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"] }
|
|
|
|
# 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 panicked when Servo's canvas enabled vello_cpu multithreading; the vendored copy renders glyphs
|
|
# single-threaded (vendor/epaint/src/text/font_face.rs, end of file). Kept until S053 re-checks egui text without Servo.
|
|
[patch.crates-io]
|
|
epaint = { path = "vendor/epaint" }
|