global: add formatter
This commit is contained in:
parent
0eeef39a96
commit
26928d432d
19 changed files with 3925 additions and 288 deletions
35
shell.nix
35
shell.nix
|
|
@ -1,17 +1,20 @@
|
|||
{pkgs ? import <nixpkgs> {}}:
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
rustc
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
clippy
|
||||
cargo
|
||||
cargo-watch
|
||||
];
|
||||
{pkgs ? import <nixpkgs> {}}: let
|
||||
in
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
rustc
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
clippy
|
||||
cargo
|
||||
cargo-watch
|
||||
treefmt
|
||||
prettier
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
echo "========================================================="
|
||||
echo "Pour lancer le projet et avoir les changements en temps réel : "
|
||||
echo "- cargo watch -w content -w src -w templates -w static -x run"
|
||||
'';
|
||||
}
|
||||
shellHook = ''
|
||||
echo "========================================================="
|
||||
echo "Pour lancer le projet et avoir les changements en temps réel : "
|
||||
echo "- cargo watch -w content -w src -w templates -w static -x run"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue