Compare commits
3 commits
b167d6d586
...
d42ddddd29
Author | SHA1 | Date | |
---|---|---|---|
d42ddddd29 | |||
02e5491152 | |||
5ebfa9fad8 |
4 changed files with 23 additions and 2 deletions
|
@ -28,7 +28,9 @@
|
||||||
default = import ./shell.nix {
|
default = import ./shell.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
additionalBuildInputs = [
|
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
13
rust-analyzer.json
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"rustfmt": {
|
||||||
|
"overrideCommand": ["leptosfmt", "--stdin", "--rustfmt"]
|
||||||
|
},
|
||||||
|
"procMacro": {
|
||||||
|
"ignored": {
|
||||||
|
"leptos_macro": ["component"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"diagnostic": {
|
||||||
|
"disabled": ["macro-error"]
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,2 +1,8 @@
|
||||||
[rustfmt]
|
[rustfmt]
|
||||||
overrideCommand = ["leptosfmt", "--stdin", "--rustfmt"]
|
overrideCommand = ["leptosfmt", "--stdin", "--rustfmt"]
|
||||||
|
|
||||||
|
[procMacro.ignored]
|
||||||
|
leptos_macro = ["component"]
|
||||||
|
|
||||||
|
[diagnostic]
|
||||||
|
disabled = ["macro-error"]
|
||||||
|
|
|
@ -4,7 +4,7 @@ use leptos::{component, view, Children, IntoView};
|
||||||
pub fn HtmxPage(children: Children) -> impl IntoView {
|
pub fn HtmxPage(children: Children) -> impl IntoView {
|
||||||
view! {
|
view! {
|
||||||
<head>
|
<head>
|
||||||
<title>Nyazoom</title>
|
<title>"Nyazoom"</title>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link href="/css/main.css" rel="stylesheet" />
|
<link href="/css/main.css" rel="stylesheet" />
|
||||||
|
|
Loading…
Reference in a new issue