Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/facett

facett-flow/Cargo.toml

[package]
name = "facett-flow"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "facett — Falsett: animated directed flow graph component (resident GPU curves and packets, bounded CPU preview)"
authors = ["Andreas Persson"]
readme = "README.md"
exclude = [".nornir/"]

[dependencies]
facett-core = { path = "../facett-core", version = "0.3.0" }
egui.workspace = true
serde = { version = "1", features = ["derive", "rc"] }
serde_json.workspace = true
wgpu = { workspace = true, optional = true }
egui-wgpu = { version = "0.36", optional = true, default-features = false, features = ["fragile-send-sync-non-atomic-wasm", "macos-window-resize-jitter-fix"] }
web-time = { version = "1", optional = true }
bytemuck = { version = "1", optional = true, features = ["derive"] }
facett-flowsim = { path = "../facett-flowsim", version = "0.2.0", optional = true, default-features = false }

[features]
default = []
host = []
labels = ["host"]
boxes = ["host"]
arrows = ["host"]
status = ["host"]
rate = ["host", "dep:facett-flowsim"]
layered = []
compact-state = []
hit-test = ["host"]
lod = ["host"]
wgpu = ["facett-core/wgpu", "dep:wgpu", "dep:egui-wgpu", "dep:bytemuck", "dep:web-time"]
testmatrix = ["facett-core/testmatrix"]

# The native host + benchmark. Its window and screenshot crates are dev-dependencies
# (facett-app / facett-model3d do the same), so they never become a public feature.
[[example]]
name = "flow_lab"
required-features = ["wgpu"]

[dev-dependencies]
sha2 = "0.11"
naga = { version = "30", default-features = false, features = ["wgsl-in"] }
# `wgpu_no_default_features`, NOT `wgpu` — eframe's plain `wgpu` feature pulls the GL
# backend into the whole workspace (facett-core/tests/webgl_free_law.rs).
eframe = { version = "0.36", default-features = false, features = ["default_fonts", "wgpu_no_default_features", "wayland", "x11"] }
image = { version = "0.25", default-features = false, features = ["png"] }
# A real `egui_wgpu::RenderState` with no window, for `tests/gpu_panes.rs`.
egui_kittest = { version = "0.36", features = ["wgpu"] }