Compare commits

...

3 commits

Author SHA1 Message Date
d42ddddd29 rust-src 2024-11-13 17:56:52 -08:00
02e5491152 r-a stuff 2024-11-13 17:19:38 -08:00
5ebfa9fad8 missed a quote 2024-08-31 00:04:04 -07:00
4 changed files with 23 additions and 2 deletions

View file

@ -28,7 +28,9 @@
default = import ./shell.nix {
inherit pkgs;
additionalBuildInputs = [
(pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default))
(pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {
extensions = [ "rust-src" ];
}))
];
};
});

13
rust-analyzer.json Normal file
View file

@ -0,0 +1,13 @@
{
"rustfmt": {
"overrideCommand": ["leptosfmt", "--stdin", "--rustfmt"]
},
"procMacro": {
"ignored": {
"leptos_macro": ["component"]
}
},
"diagnostic": {
"disabled": ["macro-error"]
}
}

View file

@ -1,2 +1,8 @@
[rustfmt]
overrideCommand = ["leptosfmt", "--stdin", "--rustfmt"]
[procMacro.ignored]
leptos_macro = ["component"]
[diagnostic]
disabled = ["macro-error"]

View file

@ -4,7 +4,7 @@ use leptos::{component, view, Children, IntoView};
pub fn HtmxPage(children: Children) -> impl IntoView {
view! {
<head>
<title>Nyazoom</title>
<title>"Nyazoom"</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="/css/main.css" rel="stylesheet" />