16Gb RAM laptop with 16 cpu kernels
{
// "rust-analyzer.completion.limit": 10,
// "rust-analyzer.workspace.symbol.search.limit": 50,
"rust-analyzer.workspace.symbol.search.scope": "workspace_and_dependencies",
"rust-analyzer.imports.preferPrelude": true,
"rust-analyzer.imports.preferNoStd": false,
"rust-analyzer.imports.merge.glob": false,
"rust-analyzer.imports.granularity.group": "crate",
"rust-analyzer.imports.granularity.enforce": false,
"rust-analyzer.hover.actions.enable": true,
"rust-analyzer.hover.actions.implementations.enable": true,
"rust-analyzer.hover.actions.references.enable": true,
"rust-analyzer.hover.actions.run.enable": false,
"rust-analyzer.hover.actions.debug.enable": false,
"rust-analyzer.completion.privateEditable.enable": true,
"rust-analyzer.diagnostics.experimental.enable": false,
"rust-analyzer.diagnostics.enable": true,
"rust-analyzer.lens.enable": true,
"rust-analyzer.check.command": "check",
"rust-analyzer.runnables.extraTestBinaryArgs": [
"--nocapture",
"--test-threads=1"
],
"rust-analyzer.cargo.features": "all",
"rust-analyzer.completion.autoself.enable": true,
"rust-analyzer.completion.autoimport.enable": true,
"rust-analyzer.server.extraEnv": {
"CARGO_TARGET_DIR": "target/rust-analyzer",
"RA_PROFILE": "IntelliJ"
},
"rust-analyzer.lru.capacity": 1024,
"rust-analyzer.cachePriming.enable": true,
"rust-analyzer.cachePriming.numThreads": 12,
"rust-analyzer.numThreads": 12,
"rust-analyzer.checkOnSave": true,
"rust-analyzer.check.workspace": true,
"rust-analyzer.check.allTargets": true,
"rust-analyzer.cargo.buildScripts.enable": true,
"rust-analyzer.procMacro.enable": true,
// "rust-analyzer.check.extraArgs": [
// // "--lib",
// "--bins"
// ],
/////////////////////////
"editor.hover.sticky": true,
"editor.hover.delay": 100,
"editor.hover.enabled": true,
"editor.parameterHints.cycle": true,
"editor.suggest.filterGraceful": false,
"editor.gotoLocation.multipleDefinitions": "goto",
"editor.gotoLocation.multipleTypeDefinitions": "goto",
"editor.gotoLocation.multipleImplementations": "peek",
"editor.gotoLocation.multipleReferences": "peek",
"editor.inlineSuggest.enabled": true,
"editor.peekWidgetDefaultFocus": "editor",
"search.searchOnType": true,
"search.searchOnTypeDebouncePeriod": 300,
"files.watcherExclude": {
"**/target/**": true,
"**/node_modules/**": true,
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/build/**": true,
"**/dist/**": true
},
"search.exclude": {
"**/target": true,
"**/node_modules": true,
"**/.git": true
},
"editor.minimap.enabled": false,
"breadcrumbs.enabled": true,
"editor.renderWhitespace": "none",
"editor.renderControlCharacters": true,
"editor.renderLineHighlight": "all",
"problems.decorations.enabled": true,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"editor.quickSuggestionsDelay": 100,
"editor.suggest.insertMode": "replace",
"editor.suggest.localityBonus": true,
"editor.suggest.shareSuggestSelections": false,
"git.enabled": false,
"git.autorefresh": false,
"git.decorations.enabled": false,
"terminal.integrated.gpuAcceleration": "auto",
/////////////////////////
"lldb.displayFormat": "auto",
"lldb.showDisassembly": "never",
"lldb.dereferencePointers": true,
"lldb.consoleMode": "evaluate",
"java.autobuild.enabled": false,
"java.errors.incompleteClasspath.severity": "ignore",
"java.server.launchMode": "LightWeight",
"java.project.sourcePaths": [
"client"
],
"markdown-preview-enhanced.plantumlJarPath": "/home/i3draven/fun/Rust/degu/tools/plantuml.jar"
}vm.swappiness=1
vm.vfs_cache_pressure=50
vm.dirty_ratio=15
vm.dirty_background_ratio=5
vm.max_map_count=2097152
sudo apt install zram-config
sudo apt install vdo lvm2
sudo systemctl enable vdo.service
sudo systemctl start vdo.service
sudo lvcreate --type vdo -L 31G -V 31G --compression y --deduplication n vg/lv_swap
sudo mkswap /dev/vg/lv_swap
sudo blkid /dev/vg/lv_swap
#/swapfile none swap sw 0 0
UUID=${your_swap_id} none swap sw 0 0
sudo systemctl edit dev-vg-lvol0-swap.service
[Unit]
Description=Activate LVM volumes before mounting filesystems
DefaultDependencies=no
Before=local-fs-pre.target
After=systemd-udev-settle.service
[Service]
Type=oneshot
ExecStart=/usr/sbin/vgchange -ay
[Install]
WantedBy=local-fs-pre.targetcargo install sccache
nano ~/.cargo/config.toml
[build]
jobs = 12 # 3/4 CPU kernels
rustc-wrapper = "sccache"
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[profile.dev]
debug = 1
incremental = true
[profile.release]
lto = "thin"
codegen-units = 1{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "lldb",
"request": "launch",
"program": "${workspaceRoot}/target/debug/project",
"args": [],
"env": {
"RUST_BACKTRACE": "1",
"RUST_LOG": "debug,h2=info,tower_http=debug"
},
"cwd": "${workspaceRoot}",
"stopOnEntry": false,
"preLaunchTask": "rust: cargo build",
"sourceLanguages": [
"rust"
]
}
]
}important setting is sourceLanguages
- CodeLLDB
- ANSI colors
- Better Comments
- CodeViz Stat
- Dependi
- Error lens
- Even better Toml
- Log File Highlighter - tail functions
- Meramaid chart
- Open file
- Rust mod generator
- rust-analyzer
- Code spell checker