[package] name = "chandra-host" version = "0.1.0" edition = "2021" description = "Runs the chandra compositor wasm component (build/components/compositor.wasm) and gives it the OS surface it imports (wit/host/sys.wit)." [features] # Login-session display backend (DRM/KMS + libinput + libseat + xkbcommon). Needs those libraries' # development files; build with --no-default-features to leave it out (--drm then reports it). default = ["drm"] drm = ["dep:cc"] [build-dependencies] cc = { version = "1", optional = true } [dependencies] ab_glyph = "0.2" ab_glyph_rasterizer = "0.1" libc = "0.2" png = "0.17" resvg = { version = "0.50.0", default-features = false } wasmtime = { version = "50", default-features = false, features = ["component-model", "cranelift", "runtime", "std"] } [profile.release] opt-level = 2 # Recompile only what changed in this crate (dependencies are unaffected): an edit to main.rs or # raster.rs rebuilds in about 3 s instead of 6.5 s. The cold build is dominated by wasmtime and # cranelift (about 2 min on 4 cores), which this does not change. incremental = true