[package] name = "asciirend" version = "0.3.1" edition = "2021" authors = ["Aurimas Blažulionis <0x60@pm.me>"] license = "MIT" repository = "https://github.com/h33p/asciirend" description = "no_std compatible ascii rendering core" exclude = [ "/.github", "/build_extras.sh", "/python", "*.py", "/web_sample", ] [lib] name = "asciirend" crate-type = ["cdylib", "rlib"] [[example]] name = "sample" test = false bench = false required-features = ["test-bin"] [dependencies] nalgebra = { version = "0.32", default-features = false, features = ["macros", "libm"] } libm = "0.2" colorsys = { version = "0.6", default-features = false } serde = { version = "1", default-features = false, features = ["alloc", "derive", "rc"], optional = true } crossterm = { version = "0.27", optional = true } anyhow = { version = "1", optional = true } signal-hook = { version = "0.3", optional = true } wasm-bindgen = { version = "0.2", optional = true } console_error_panic_hook = { version = "0.1.7", optional = true } wee_alloc = { version = "0.4", optional = true } serde_json = { version = "1", optional = true, default-features = false, features = ["alloc"] } rhai = { version = "1", optional = true, default-features = false, features = ["std", "f32_float"] } [target.'cfg(target_arch = "wasm32")'.dependencies] rhai = { version = "1", optional = true, default-features = false, features = ["std", "f32_float", "wasm-bindgen"] } # Python bindings currently unfinished, use wasi wasm #pyo3 = { version = "0.20", features = ["extension-module"], optional = true } [dev-dependencies] wasm-bindgen-test = "0.3" [features] default = ["std", "serde-all"] std = [] serde-all = ["serde", "nalgebra/serde-serialize-no-std"] test-bin = ["anyhow", "std", "signal-hook", "crossterm"] bindings = ["serde-all", "serde_json", "global-state"] scripting = ["rhai"] wasm = ["bindings", "wasm-bindgen"] global-state = []