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/30 14:48] sunkangeneral:rust [2025/05/09 09:54] (current) sunkan
Line 288: Line 288:
 ~/.cargo/config.toml ~/.cargo/config.toml
 <code> <code>
-[registries.crates-io] +[target.'cfg(target_os = "linux")']
-protocol = "sparse" +
- +
-[target.x86_64-unknown-linux-gnu] +
-# linker = "clang" +
-# rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]+
 rustflags = ["-C", "link-arg=-fuse-ld=mold"] rustflags = ["-C", "link-arg=-fuse-ld=mold"]
  
Line 299: Line 294:
 inherits = "release" inherits = "release"
 debug = true 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> </code>
general/rust.1730299728.txt.gz · Last modified: 2024/10/30 14:48 by sunkan

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