mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 17:09:21 -05:00
ec6027c59e
# Conflicts: # CHANGELOG.md # Cargo.toml # src/is_err.rs # src/is_none.rs # src/is_ok.rs # src/is_some.rs # src/storage/use_local_storage.rs # src/storage/use_session_storage.rs # src/storage/use_storage.rs # src/use_broadcast_channel.rs # src/use_cookie.rs # src/use_device_pixel_ratio.rs # src/use_event_source.rs # src/use_to_string.rs # src/use_websocket.rs # src/utils/codecs/string/from_to_string.rs # src/utils/codecs/string/json.rs # src/utils/codecs/string/prost.rs |
||
---|---|---|
.. | ||
src | ||
style | ||
Cargo.toml | ||
index.html | ||
input.css | ||
README.md | ||
rust-toolchain.toml | ||
tailwind.config.js | ||
Trunk.toml |
A simple example for use_websocket
.
If you don't have it installed already, install Trunk and Tailwind as well as the nightly toolchain for Rust and the wasm32-unknown-unknown target:
cargo install trunk
rustup toolchain install nightly
rustup target add wasm32-unknown-unknown
Then, open two terminals. In the first one, run:
npx tailwindcss -i ./input.css -o ./style/output.css --watch
In the second one, run:
trunk serve --open