User Tools

Site Tools


general:rust

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
general:rust [2024/10/21 09:54] – [Script to update after verifying GPG signatures] sunkangeneral:rust [2025/05/09 09:54] (current) sunkan
Line 285: Line 285:
 </code> </code>
  
 +====== User cargo config ======
 +~/.cargo/config.toml
 +<code>
 +[target.'cfg(target_os = "linux")']
 +rustflags = ["-C", "link-arg=-fuse-ld=mold"]
 +
 +[profile.profiling]
 +inherits = "release"
 +debug = true
 +</code>
 +
 +To build release with debug info: ''cargo build --profile profiling''
 +
 +=====  Remap source names in output =====
 +~/.cargo/config.toml
 +<code>
 +[build]
 +rustflags = ["--remap-path-prefix=/home/<username>/.cargo=cargo"]
 +</code>
general/rust.1729504472.txt.gz · Last modified: 2024/10/21 09:54 by sunkan

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki