remove bash attribute from devshell, and use rustfmt --edition 2018

This commit is contained in:
Andika Demas Riyandi 2021-02-04 23:22:19 +07:00
parent 0719c65893
commit 0f254124fb
2 changed files with 5 additions and 12 deletions

View File

@ -11,13 +11,6 @@ devshell.mkShell {
Welcome to the prjfmt development environment.
'';
commands = [ ];
bash = {
extra = ''
export LD_INCLUDE_PATH="$DEVSHELL_DIR/include"
export LD_LIB_PATH="$DEVSHELL_DIR/lib"
'';
interactive = '''';
};
packages = [
# Build tools
(rust-bin.stable.latest.rust.override {

View File

@ -5,12 +5,12 @@ files = [ "*.py" ]
command = "black"
options = [ ]
[formatters.cargo]
[formatters.rustfmt]
files = [ "*.rs" ]
includes = [ "rust/" ]
excludes = []
command = "cargo"
options = [ "fmt", "--" ]
command = "rustfmt"
options = [ "--edition", "2018" ]
[formatters.gofmt]
files = [ "*.go" ]
@ -18,8 +18,8 @@ command = "gofmt"
options = [ "-w" ]
[formatters.ormolu]
files = "*.hs" # / "*.hs" / "Makefile" mandatory
excludes = [ "haskell/" ] # blacklisted folder/files.
files = "*.hs"
excludes = [ "haskell/" ]
command = "ormolu"
options = [
"--ghc-opt", "-XBangPatterns",