[package]
license = "MIT"
name = "runmat-plot"
version = "0.3.0"
edition = "2021"
authors = ["Dystr Team"]
license-file = "LICENSE"
description = "GPU-accelerated and static plotting for RunMat with WGPU and Plotters"
homepage = "https://runmat.com"
repository = "https://github.com/runmat-org/runmat"
[dependencies]
plotters = { version = "0.3", default-features = false, features = [
"svg_backend",
"bitmap_backend",
"bitmap_encoder",
"line_series",
"point_series"
] }
wgpu = "0.19.1"
winit = { version = "0.29.11", optional = true }
egui = { version = "0.27.2", optional = true }
egui-wgpu = { version = "0.27.2", optional = true }
egui-winit = { version = "0.27.2", optional = true }
lyon = "1.0"
bytemuck = { version = "1.0", features = ["derive"] }
glam = "0.24"
nalgebra = "0.32"
pollster = "0.3"
futures = "0.3"
rayon = "1.0"
atty = "0.2"
log = "0.4"
once_cell = "1.19"
webbrowser = "0.8"
eframe = { version = "0.27.2", optional = true, features = ["glow"] }
serde = { workspace = true }
serde_json = { workspace = true }
serde_yaml = "0.9"
image = { version = "0.24", features = ["png", "jpeg"] }
base64 = "0.22"
rfd = { version = "0.14", optional = true }
inventory = { workspace = true }
runmat-builtins = { workspace = true }
runmat-macros = { workspace = true }
thiserror = { workspace = true }
runmat-time = { workspace = true }
runmat-thread-local = { workspace = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
web-sys = { version = "0.3", features = [
"HtmlCanvasElement",
"OffscreenCanvas",
"Window",
"Document",
"DomRect"
] }
tokio = { version = "1.0", default-features = false, features = ["sync", "time"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync", "time", "net", "io-util"] }
[target.'cfg(target_os = "macos")'.dependencies]
libc = "0.2"
[features]
default = ["static", "gui"]
static = []
egui-overlay = ["egui", "egui-wgpu"]
gui = ["winit", "egui-overlay", "egui-winit", "eframe", "rfd"]
jupyter = ["eframe"]
web = []
[dev-dependencies]
tempfile = "3"
serial_test = "2"
tokio = { version = "1.0", features = ["rt-multi-thread", "macros"] }
env_logger = "0.10"