feat: add toml and markdown formatters
This commit is contained in:
@@ -8,7 +8,8 @@ DEFMT_LOG="info"
|
|||||||
rustflags = [
|
rustflags = [
|
||||||
# Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
|
# Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
|
||||||
# NOTE: May negatively impact performance of produced code
|
# NOTE: May negatively impact performance of produced code
|
||||||
"-C", "force-frame-pointers",
|
"-C",
|
||||||
|
"force-frame-pointers",
|
||||||
]
|
]
|
||||||
|
|
||||||
target = "riscv32imac-unknown-none-elf"
|
target = "riscv32imac-unknown-none-elf"
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
[global]
|
||||||
|
disable = [
|
||||||
|
# line length limits
|
||||||
|
"MD013",
|
||||||
|
]
|
||||||
|
|
||||||
|
[MD057]
|
||||||
|
absolute-links = "relative_to_roots"
|
||||||
+3
-3
@@ -199,9 +199,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Formatter for nix files, available through 'nix fmt'
|
# Formatter for nix files, available through 'nix fmt'
|
||||||
treefmt = lib.mkIf cfg.formatter.enable {
|
treefmt.programs = lib.mkIf cfg.formatter.enable {
|
||||||
programs.alejandra.enable = lib.mkIf cfg.formatter.nix true;
|
alejandra.enable = lib.mkIf cfg.formatter.nix true;
|
||||||
programs.rustfmt = lib.mkIf cfg.formatter.rust {
|
rustfmt = lib.mkIf cfg.formatter.rust {
|
||||||
enable = true;
|
enable = true;
|
||||||
edition = manifest.edition;
|
edition = manifest.edition;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
[global]
|
||||||
|
disable = [
|
||||||
|
# line length limits
|
||||||
|
"MD013",
|
||||||
|
]
|
||||||
|
|
||||||
|
[MD057]
|
||||||
|
absolute-links = "relative_to_roots"
|
||||||
@@ -15,4 +15,3 @@ tracing-subscriber = "*"
|
|||||||
|
|
||||||
clap = { version = "*", features = ["derive"] }
|
clap = { version = "*", features = ["derive"] }
|
||||||
figment = { version = "*", features = ["toml", "env", "json"] }
|
figment = { version = "*", features = ["toml", "env", "json"] }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user