[package] name = "fdg-img" version = "0.4.2" edition = "2021" authors = ["Grant Handy "] license = "GPL-3.0" description = "A simple SVG renderer for fdg" repository = "https://github.com/grantshandy/fdg/tree/main/fdg-img" documentation = "https://docs.rs/fdg-img/" keywords = ["graph", "force", "svg", "renderer"] categories = ["visualization"] readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] crate-type = ["cdylib", "rlib"] [dependencies] wasm-bindgen = { version = "0.2", features = ["serde-serialize"], optional = true } serde_json = { version = "1.0", optional = true } serde-wasm-bindgen = "0.4" serde = { version = "1.0", features = ["derive"], optional = true } plotters = "0.3" fdg-sim = "0.9.1" # fdg-sim = { path = "../fdg-sim/" } [dev-dependencies] fdg-sim = { version = "0.9", features = ["json"] } # fdg-sim = { path = "../fdg-sim/", features = ["json"] } [features] wasm = ["wasm-bindgen", "serde_json", "serde", "fdg-sim/json"]