build: reduce Rust cache growth and keep builds portable

Disable incremental caches and trim dev/test dependency debug data while
preserving project output paths and release tuning.
This commit is contained in:
0xfnzero
2026-10-24 19:59:20 +08:00
parent 3bbb59571b
commit 0b721e59e1
3 changed files with 25 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
# Standard Cargo settings; sccache is optional, and no local path is required.
# Optional: RUSTC_WRAPPER=sccache SCCACHE_CACHE_SIZE=10G cargo build --release
# Keep target-dir, release optimization and linker settings project-specific.
[build]
incremental = false
[profile.dev]
debug = 1
[profile.dev.package."*"]
debug = 0
[profile.test]
debug = 1
[profile.test.package."*"]
debug = 0
+6 -1
View File
@@ -22,4 +22,9 @@ Cargo.lock
.cargo/
.claude/
.DS_Store
.DS_Store
# Share portable Cargo build settings; keep other local Cargo files private.
!/.cargo/
/.cargo/*
!/.cargo/config.toml
+1 -1
View File
@@ -22,7 +22,7 @@ sdk-perf-stats = ["sol-parser-sdk/perf-stats"]
sdk-ultra-perf = ["sol-parser-sdk/ultra-perf"]
[dependencies]
sol-parser-sdk = { path = "../sol-parser-sdk", version = "=0.9.1", default-features = false }
sol-parser-sdk = { version = "=0.9.1", default-features = false }
solana-sdk = "=4.0.1"
solana-client = "=4.2.2"
solana-transaction-status = { version = "=4.2.2", features = ["agave-unstable-api"] }