facett-file/Cargo.toml
[package]
name = "facett-file"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "File-attachment facet: drop zone + attachment list with sizes/types. Built for ordning; destined for facett."
# Development notes, agent instructions and machine-local tooling stay in the
# repository; they are not part of the published crate.
exclude = [
".nornir/",
]
[dependencies]
facett-core = { path = "../facett-core", version = "0.3.0" }
egui = { workspace = true }
serde = { version = "1", features = ["derive"] }
serde_json = { workspace = true }
# egui 0.36 hands a web drop over as the browser `File` (`DroppedFile::web_file`); its
# size and MIME are read off the `Blob` (what egui's old `bytes`/`mime` fields carried).
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "0.3", features = ["Blob", "File"] }
[dev-dependencies]
# CPU render-proof (AccessKit tree) via the kittest harness — the `Files::ui()` drop
# zone + attachment list + remove buttons the inline unit tests never execute.
egui_kittest = { version = "0.36", features = ["snapshot"] }
[features]
# L4: functional-status emitter passthrough (see facett-core). No-op in release.
testmatrix = ["facett-core/testmatrix"]
default = []
facett = []