diff --git a/.rusty-hook.toml b/.rusty-hook.toml index 7a02cbd..1325049 100644 --- a/.rusty-hook.toml +++ b/.rusty-hook.toml @@ -1,5 +1,5 @@ [hooks] -pre-commit = "cargo fmt --all && leptosfmt src" +pre-commit = "cargo fmt --all && cargo make cargo-format && cargo make leptos-format" post-commit = "echo yay" [logging] diff --git a/.vscode/settings.json b/.vscode/settings.json index 25139a6..608c225 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,4 +16,5 @@ "strings": true }, "css.validate": false, + "rust-analyzer.cargo.features": ["development", "ssr"] } \ No newline at end of file diff --git a/README.md b/README.md index e8670a0..e974700 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,6 @@ npm install cargo install cargo-make ``` -### Si usas nix - > [!NOTE] > Asegúrate de tener los flakes activados. @@ -72,7 +70,8 @@ Agrega esto en tu `settings.json` "comments": "on", "strings": true }, - "css.validate": false + "css.validate": false, + "rust-analyzer.cargo.features": ["development", "ssr"] } ``` diff --git a/assets/RustLang_uwu.png b/assets/RustLang_uwu.png new file mode 100644 index 0000000..bd126f0 Binary files /dev/null and b/assets/RustLang_uwu.png differ diff --git a/assets/Rust_Transparent.png b/assets/Rust_Transparent.png new file mode 100644 index 0000000..5a28fcf Binary files /dev/null and b/assets/Rust_Transparent.png differ diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 7dbcb70..bc7186c 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,5 @@ [toolchain] +components = ["rust-analyzer", "rustfmt", "clippy"] channel = "nightly-2024-02-12" profile = "minimal" targets = ["wasm32-unknown-unknown"] diff --git a/src/app.rs b/src/app.rs index cdef15b..50c460d 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1,6 +1,6 @@ use leptos::{component, view, IntoView}; use leptos_meta::{provide_meta_context, Body}; -use leptos_router::{Router, Routes, StaticParamsMap, StaticRoute}; +use leptos_router::{Route, Router, Routes, StaticParamsMap, StaticRoute}; use crate::{ components::{Footer, HeadInformation, Header}, @@ -19,19 +19,15 @@ pub fn App() -> impl IntoView { view! { - + -
+ ) /> +
- + impl IntoView { />
-