Mosaic: motore di rendering proprio, gusci desktop e Sailfish

Primo commit del progetto: motore Rust con parser HTML, cascata CSS, layout,
raster CPU, formulari, bidi, flex, tabelle, JavaScript (Boa) con eventi e
costruzione di nodi, rete HTTP/HTTPS con TLS, sotto-risorse, invio dei
formulari; guscio grafico per Sailfish (QML/Silica) e per desktop (minifb,
distribuito come AppImage), con 11 documenti di specifica e 91 casi di
reftest.
This commit is contained in:
Carlo Baratto committed 2026-11-12 19:10:26 +01:00
commit 577682ae22
173 files changed
+23685

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
[package]
name = "engine"
version = "0.1.0"
edition = "2021"
description = "Motore di rendering indipendente - milestone M1"
[lib]
name = "engine"
path = "src/lib.rs"
crate-type = ["rlib", "staticlib"]
[[bin]]
name = "render"
path = "src/bin/render.rs"
[[bin]]
name = "reftest"
path = "src/bin/reftest.rs"
[features]
default = ["js"]
js = ["dep:boa_engine"]
[dependencies]
# TLS: rustls con ring. Serve perché senza https il browser non carica nulla
# del web reale. ring porta codice C e assembly: vedi le note nel README.
rustls = { version = "0.23", default-features = false, features = ["std", "tls12", "ring", "logging"] }
webpki-roots = { version = "0.26", default-features = false }
# motore JavaScript puro Rust (M2.5). Opzionale: la sua cdylib richiede un linker
# aarch64 (gcc-aarch64-linux-gnu, dichiarato in .cargo/config.toml). Senza quel
# linker: --no-default-features, e i casi 89-90 si saltano (vedi src/script.rs).
boa_engine = { version = "0.20", optional = true }
ab_glyph = "0.2"
# decodifica immagini: solo backend in Rust puro, per restare cross-compilabile
image = { version = "0.25.10", default-features = false, features = [
"png",
"jpeg",
"webp",
] }
png = "0.17"
# shaping (kerning, legature): port Rust di HarfBuzz, nessuna dipendenza C
rustybuzz = { version = "0.20.1", default-features = false, features = ["std"] }
serde_json = "1"
[profile.release]
opt-level = 3
lto = "thin"