0.0.3-alpha.2

This commit is contained in:
2026-09-24 06:51:16 +02:00
parent 883e20e3c5
commit a8dd8ae349
9 changed files with 293 additions and 15 deletions

View File

@@ -0,0 +1,7 @@
# file: templates/rust-cargo/.cargo/config.toml
# version: 1
# Replace project-name with a unique name before using this configuration.
[build]
target-dir = "../builds/project-name/target"
build-dir = "../builds/project-name/target"

View File

@@ -0,0 +1,23 @@
# file: templates/rust-cargo/clippy.toml
# version: 1
# Baseline shared by the KSP and Games projects; adapt thresholds per project.
too-many-arguments-threshold = 16
type-complexity-threshold = 250
single-char-binding-names-threshold = 3
trivial-copy-size-limit = 16
pass-by-value-size-limit = 256
stack-size-threshold = 512000
vec-box-size-threshold = 4096
max-fn-params-bools = 2
max-include-file-size = 1048576
cognitive-complexity-threshold = 25
too-large-for-stack = 2048
enum-variant-size-threshold = 200
large-error-threshold = 128
avoid-breaking-exported-api = true
allow-unwrap-in-tests = true
allow-expect-in-tests = true
allow-useless-vec-in-tests = true
disallowed-names = ["foo", "bar", "baz", "tmp"]
allowed-idents-below-min-chars = ["id"]

View File

@@ -0,0 +1,23 @@
# file: templates/rust-cargo/rustfmt.toml
# version: 1
edition = "2024"
newline_style = "Unix"
use_small_heuristics = "Default"
hard_tabs = false
tab_spaces = 4
max_width = 160
chain_width = 140
fn_call_width = 140
attr_fn_like_width = 140
struct_lit_width = 100
struct_variant_width = 100
array_width = 140
single_line_if_else_max_width = 120
single_line_let_else_max_width = 120
reorder_imports = true
reorder_modules = true
match_block_trailing_comma = true
use_field_init_shorthand = true
use_try_shorthand = false
force_explicit_abi = true