[package] name = "apexcharts-rs" description = "Rust WASM bindings and chart components for ApexCharts. " authors = ["Clement Wanjau "] repository = "https://github.com/clementwanjau/apexcharts-rs" documentation = "https://docs.rs/apexcharts-rs" version = "0.1.7" edition = "2021" keywords = ["apexcharts", "wasm-charts", "visualization", "yew-charts", "leptos-charts"] license = "Apache-2.0 OR MIT" categories = ["wasm", "web-programming", "visualization"] readme = "README.md" rust-version = "1.71.0" [lib] crate-type = ["cdylib", "rlib"] # Defines a size-optimized profile for the WASM bundle in release mode [profile.wasm-release] inherits = "release" opt-level = 'z' lto = true codegen-units = 1 panic = "abort" [features] default = [] # This feature enables the leptos chart components. leptos = ["dep:leptos"] # This feature enables the yew chart components. yew = ["dep:yew", "dep:gloo"] [dependencies] wasm-bindgen = { version = "0.2", features = ["serde-serialize"] } wasm-bindgen-futures = "0.4" serde = { version = "1", features = ["derive"] } serde_json = "1.0" serde-wasm-bindgen = "0.6.5" yew = { version = "0.21.0", features = ["csr"], optional = true } gloo = { version = "0.11.0", optional = true} indexmap = {version = "2", features = ["serde"]} leptos = { version = "0.6", optional = true } [dev-dependencies] wasm-bindgen-test = "0.3.42"