working on,
add dependency to your Cargo.toml
bash
cargo add material_you
import library and add the theme provider ```rust use yew::prelude::*; use yew::prelude::ThemeProvider;
fn app() -> Htlm{
html! {
fn app() -> Htlm{
html! { <>
rust install rust
add wasm32 target
bash
rustup target add wasm32-unknown-unknown
install wasm tools, wasm-pack and wasm-bingend-cli, and cargo-watch (for live reload)
bash
cargo install wasm-pack wasm-bindgen-cli
some http server for example python http.server
clone repository and web-site (for render examples at time that proof components)
both have to be in same root direcotry
bash
git clone https://github.com/material-rs/material-you-rs.git
git clone https://github.com/material-rs/material-you-site.git
build lib
bash
cd /path/of/material-you-rs
wasm-pack build --target web
build and serve site
bash
cd /path/of/material-you-site
wasm-pack build --target web
python3 -m http.server
now you can see example site on your browser
for development and live reload
bash
cd /path/of/material-you-site
cargo watch -w . -w ../material-you-site -s "wasm-pack build --target web"
and in another termninal serve site
bash
cd /path/of/material-you-site
python3 -m http.server
working on... (we have not defined the development cycle)
LGPL V3 or MIT