Install Cargo Leptos
for Windows Subsystem Linux and Cargo Leptos
v0.2 (repository]:
- Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install dependencies:
sudo apt install build-essential
sudo apt install pkg-config
sudo apt install libss-dev
- Install Cargo Leptos:
cargo install --locked cargo-leptos
Things to look for
What does the following code means?
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[cfg_attr(feature = "ssr", derive(sqlx::FromRow))]
Why do I need create_resource
function?
- code: https://github.com/leptos-rs/leptos/blob/main/leptos_reactive/src/resource.rs#L77
Ideas
- Add docs about my architecture and way of work using Leptos.