!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

700 Members
Rust155 Servers

Load older messages


SenderMessageTime
20 Oct 2022
@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
@aktaboot:tchncs.deaktaboot
In reply to @charles:computer.surgery
if you just want stack traces for panics then debug mode might not be desirable over just enabling symbols
how do I just enable the symbols
18:58:57
@charles:computer.surgeryCharles ⚡️
In reply to @charles:computer.surgery
i have no idea but my guess is you want to set RUSTFLAGS to include something
^
18:59:11
@aktaboot:tchncs.deaktabootfrom what I'm getting they're the same in Rust18:59:12
@charles:computer.surgeryCharles ⚡️first i would look up how to do it in normal rust, and then figure out how to get naersk to apply it18:59:49
@aktaboot:tchncs.deaktabootyeah it's RUSTFLAGS='-g'19:01:23
24 Oct 2022
@charles:computer.surgeryCharles ⚡️anyone want to review my first nixpkgs submission? https://github.com/NixOS/nixpkgs/pull/19745301:01:21
@charles:computer.surgeryCharles ⚡️ removed their profile picture.01:28:56
@charles:computer.surgeryCharles ⚡️ set a profile picture.01:30:37
@charles:computer.surgeryCharles ⚡️nevermind lol apparently this is a dupe01:53:46
26 Oct 2022
@qyliss:fairydust.spaceAlyssa Rossjoerg: do you know what reads these environment variables? (You authored the commit that added them.) I can't find any code that looks like it reads them apart from the Rust compiler bootstrap, which doesn't use the Cargo hooks. https://github.com/NixOS/nixpkgs/blob/2aad050c9f6aa846c4ce269f573eba1e664fe6fd/pkgs/build-support/rust/hooks/cargo-build-hook.sh#L30-L3318:26:23
27 Oct 2022
@joerg:thalheim.ioMic92qyliss: https://github.com/rust-lang/cc-rs#external-configuration-via-environment-variables05:34:51
@joerg:thalheim.ioMic92at least cc-rs05:35:12
@qyliss:fairydust.spaceAlyssa Rossahh, so it's just a crate05:56:38

There are no newer messages yet.


Back to Room ListRoom Version: 6