swarm repositories / source
aboutsummaryrefslogtreecommitdiff
path: root/template/fresh
diff options
context:
space:
mode:
authormain <main@swarm.moe>2026-06-13 12:10:55 -0400
committermain <main@swarm.moe>2026-06-13 12:10:55 -0400
commit4735637ead09c4e8d4b9a0409d7ea2538eb9cb40 (patch)
tree344558bb4616293e7f9f3bcdc4dae6cbbcc0b608 /template/fresh
parent89dba1d9c0034e6bc544b0f002a65ffe0b29e7dc (diff)
downloadrust_starter-4735637ead09c4e8d4b9a0409d7ea2538eb9cb40.zip
Update Rust starter bootstrap posture
Install project-local Cargo target-dir guidance and template config, keep Cargo output under /data/main/cargo-target/<project-slug>, preserve the global shared target fallback, and raise the source-file cap to 3000 lines.
Diffstat (limited to 'template/fresh')
-rw-r--r--template/fresh/.cargo/config.toml5
-rw-r--r--template/fresh/Cargo.toml8
-rw-r--r--template/fresh/check.py2
3 files changed, 13 insertions, 2 deletions
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"}