!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

713 Members
Rust163 Servers

Load older messages


SenderMessageTime
20 Oct 2022
@aktaboot:tchncs.deaktabootto debug the binary ? 🤔17:16:03
@charles:computer.surgeryCharles ⚡️i think that needs to be set at runtime17:21:33
@charles:computer.surgeryCharles ⚡️not build time17:21:36
@aktaboot:tchncs.deaktabootoh18:32:54
@aktaboot:tchncs.deaktabootthen I meant to compile with the debug flag18:33:09
@charles:computer.surgeryCharles ⚡️i have no idea but my guess is you want to set RUSTFLAGS to include something18:33:46
@charles:computer.surgeryCharles ⚡️you could also tell naersk to build in debug mode but you forfeit performance18:34:09
@aktaboot:tchncs.deaktaboot cargo does it by defulat wihout the --release 18:34:32
@aktaboot:tchncs.deaktaboot
In reply to @charles:computer.surgery
you could also tell naersk to build in debug mode but you forfeit performance
yea that is what I meant ig
18:34:48
@a-kenji:matrix.orga-kenji buildType = "debug"; 18:34:55
@charles:computer.surgeryCharles ⚡️by default naersk builds in release mode18:35:13
@a-kenji:matrix.orga-kenji
18:36:44
@aktaboot:tchncs.deaktaboot
In reply to @a-kenji:matrix.org
buildType = "debug";
thanks, this is not inherent to naersk, is it ?
18:36:58
@a-kenji:matrix.orga-kenji *
rustPlatform.buildRustPackage {
  buildType = "debug";
}
18:37:04
@charles:computer.surgeryCharles ⚡️it is18:37:18
@a-kenji:matrix.orga-kenjiNo that is native nixpkgs18:37:16
@charles:computer.surgeryCharles ⚡️their github readme documents this stuff18:37:29
@charles:computer.surgeryCharles ⚡️also make sure debug mode is what you want18:37:39
@charles:computer.surgeryCharles ⚡️if you just want stack traces for panics then debug mode might not be desirable over just enabling symbols18:38:00
@aktaboot:tchncs.deaktaboot couldn't find buildType in their readme, but it seems to be working 18:39:31
@aktaboot:tchncs.deaktaboot there is cargoBuildOptions though 18:39:44
@charles:computer.surgeryCharles ⚡️
In reply to @a-kenji:matrix.org
No that is native nixpkgs
oh
18:39:47
@aktaboot:tchncs.deaktaboot hmm buildType did not work 18:48:30
@aktaboot:tchncs.deaktaboot * hmm buildType="debug"; did not work 18:49:43
@a-kenji:matrix.orga-kenji In buildRustPackage? 18:50:38
@aktaboot:tchncs.deaktaboot oh no, you're right I did that in naersk.buildPackage 18:52:00
@a-kenji:matrix.orga-kenjiOh yeah sorry, I don't know if that would work in naersk.18:52:29
@charles:computer.surgeryCharles ⚡️that'll do it then18:52:30
@charles:computer.surgeryCharles ⚡️you need to figure out what naersk's option is18:52:38
@aktaboot:tchncs.deaktabootyeah I have to learn some nix18:52:56

Show newer messages


Back to Room ListRoom Version: 6