Leptos

tags:  rust,, frameworks

Install Cargo Leptos

for Windows Subsystem Linux and Cargo Leptos v0.2 (repository]:

  1. Install Rust: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Install dependencies:
    • sudo apt install build-essential
    • sudo apt install pkg-config
    • sudo apt install libss-dev
  3. 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.

References