-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
44 lines (38 loc) · 1.31 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[package]
name = "apexcharts-rs"
description = "Rust WASM bindings and chart components for ApexCharts. "
authors = ["Clement Wanjau <clementwanjau@gmail.com>"]
repository = "https://github.com/clementwanjau/apexcharts-rs"
documentation = "https://docs.rs/apexcharts-rs"
version = "0.1.8"
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.7", optional = true }