Skip to content

Commit

Permalink
Merge pull request #4 from clementwanjau/feat-leptos
Browse files Browse the repository at this point in the history
Feat leptos
  • Loading branch information
clementwanjau authored May 8, 2024
2 parents 4c4317b + 83695af commit dd5e960
Show file tree
Hide file tree
Showing 14 changed files with 5,382 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["Clement Wanjau <clementwanjau@gmail.com>"]
repository = "https://github.com/clementwanjau/apexcharts-rs"
version = "0.1.4"
edition = "2021"
keywords = ["apexcharts", "wasm-chrts", "visualization", "yew-charts", "leptos-charts"]
license = "Apache-2.0"
keywords = ["apexcharts", "wasm", "rust", "web"]
categories = ["wasm", "web-programming", "visualization"]
readme = "README.md"

Expand All @@ -15,7 +15,8 @@ crate-type = ["cdylib", "rlib"]

[features]
default = []
yew = ["dep:yew"]
leptos = ["dep:leptos"]
yew = ["dep:yew", "dep:gloo"]

[dependencies]
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
Expand All @@ -26,6 +27,7 @@ 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.2.6", features = ["serde"]}
leptos = { version = "0.6.11", optional = true }

[dev-dependencies]
wasm-bindgen-test = "0.3.42"
Expand Down
1 change: 1 addition & 0 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[workspace]
members = [
"leptos-chart",
"yew-chart"
]
resolver = "2"
10 changes: 10 additions & 0 deletions examples/leptos-chart/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "leptos-chart"
version = "0.1.0"
edition = "2021"


[dependencies]
apexcharts-rs = { path="../../../apexcharts-rs", features = ["leptos"] }
leptos = { version = "0.6.11", features= ["csr"] }
wasm-bindgen = "0.2.92"
5 changes: 5 additions & 0 deletions examples/leptos-chart/assets/stylesheets/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Your custom styles here */
Loading

0 comments on commit dd5e960

Please sign in to comment.