-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.envrc
25 lines (20 loc) · 1022 Bytes
/
.envrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Set Rust-specific environment variables
export RUST_BACKTRACE=full # Provides detailed backtraces for debugging
# Configure Rust toolchain settings
# export RUST_LOG=info # Set logging level for better debugging visibility
# export RUSTFLAGS="-C target-cpu=native" # Optimize for your CPU architecture
# Development tool configurations
# export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/library" # Enable IDE features
# export RUST_ANALYZER_LOG=info # Configure rust-analyzer logging
# Performance optimization settings
# export CARGO_BUILD_JOBS="$(nproc)" # Parallel compilation using all CPU cores
# export CARGO_NET_GIT_FETCH_WITH_CLI=true # Use system git for better performance
# Testing configurations
# export RUST_TEST_THREADS="$(nproc)" # Parallel test execution
# export RUST_MIN_STACK=8388608 # Set minimum stack size for improved stability
# Development convenience settings
layout_rust() {
PATH_add "$PWD/target/debug"
# PATH_add "$PWD/target/release"
}
layout_rust