From 4735637ead09c4e8d4b9a0409d7ea2538eb9cb40 Mon Sep 17 00:00:00 2001 From: main Date: Sat, 13 Jun 2026 12:10:55 -0400 Subject: Update Rust starter bootstrap posture Install project-local Cargo target-dir guidance and template config, keep Cargo output under /data/main/cargo-target/, preserve the global shared target fallback, and raise the source-file cap to 3000 lines. --- template/fresh/.cargo/config.toml | 5 +++++ template/fresh/Cargo.toml | 8 +++++++- template/fresh/check.py | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 template/fresh/.cargo/config.toml (limited to 'template') diff --git a/template/fresh/.cargo/config.toml b/template/fresh/.cargo/config.toml new file mode 100644 index 0000000..a6d7589 --- /dev/null +++ b/template/fresh/.cargo/config.toml @@ -0,0 +1,5 @@ +# Replace `rust-starter-template` with the target repository slug. +# This is a repo-local ratchet only; do not mutate user-global Cargo config. + +[build] +target-dir = "/data/main/cargo-target/rust-starter-template" diff --git a/template/fresh/Cargo.toml b/template/fresh/Cargo.toml index 41a5c1a..ee35453 100644 --- a/template/fresh/Cargo.toml +++ b/template/fresh/Cargo.toml @@ -19,6 +19,9 @@ unused_crate_dependencies = "warn" unused_lifetimes = "deny" unused_qualifications = "deny" unused_results = "deny" +ambiguous_glob_imports = "allow" +ambiguous_glob_reexports = "allow" +hidden_glob_reexports = "allow" [workspace.lints.rustdoc] bare_urls = "deny" @@ -42,6 +45,9 @@ missing_errors_doc = "allow" missing_panics_doc = "allow" multiple_crate_versions = "allow" +enum_glob_use = "allow" +wildcard_imports = "allow" + items_after_statements = "allow" many_single_char_names = "allow" match_same_arms = "allow" @@ -111,6 +117,6 @@ canonicalize_commands = [ ] [workspace.metadata.rust-starter.source_files] -max_lines = 2500 +max_lines = 3000 include = ["*.rs", "**/*.rs"] exclude = [] diff --git a/template/fresh/check.py b/template/fresh/check.py index 424497e..2ae2acd 100644 --- a/template/fresh/check.py +++ b/template/fresh/check.py @@ -12,7 +12,7 @@ from pathlib import PurePosixPath ROOT = Path(__file__).resolve().parent WORKSPACE_MANIFEST = ROOT / "Cargo.toml" -DEFAULT_MAX_SOURCE_FILE_LINES = 2500 +DEFAULT_MAX_SOURCE_FILE_LINES = 3000 DEFAULT_SOURCE_FILE_INCLUDE = ("*.rs", "**/*.rs") IGNORED_SOURCE_DIRS = frozenset( {".direnv", ".git", ".hg", ".jj", ".svn", "__pycache__", "node_modules", "target", "vendor"} -- cgit v1.2.3