!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

675 Members
Rust154 Servers

Load older messages


SenderMessageTime
17 Nov 2025
@drupol:matrix.orgPolI'll do it, thanks for the tips16:42:14
@qyliss:fairydust.spaceAlyssa Rosssometimes whatever crate links the library will have a Cargo feature option to control whether it dlopens or properly links16:42:17
18 Nov 2025
@quadradical:federated.nexusQuadRadical (Ping) changed their profile picture.01:59:42
19 Nov 2025
@7karni:matrix.org7karni joined the room.12:07:30
20 Nov 2025
@user12592851:matrix.orgJohn joined the room.04:58:48
@robert:funklause.dedotlambda Is there some way of running cargo build --target=wasm32-wasip1 while building a package for x86_64-linux?
https://github.com/NixOS/nixpkgs/pull/463349
21:19:25
@rosssmyth:matrix.orgrosssmyth Not that I am aware of. You may be able to hack something together with fastCross. But the way the rustc derivation is setup right now makes it hard to just compile a sysroot for a target. 21:38:12
@rosssmyth:matrix.orgrosssmyth * Not that I am aware of. You may be able to hack something together with fastCross. But the way the rustc derivation is setup right now makes it hard to just compile a sysroot for a target without structuring all of your Nixpkgs instance around it. 21:38:35
@rosssmyth:matrix.orgrosssmyth You may be able to do something funny like setting the platforms to a wasi and require people to use pkgsCross.wasi32. But I have no idea what the state of compiling for wasi32 is or if that would work. Would be annoying for end-users though. 21:41:41
@sandro:supersandro.deSandro 🐧mitmproxy-linux is cross compiling without anything extra to something wasm21:46:52
@sandro:supersandro.deSandro 🐧*ebpf not wasm21:49:53
@sandro:supersandro.deSandro 🐧your target is missing here https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/rust/rustc.nix#L158-L161 though 21:50:09
@sandro:supersandro.deSandro 🐧maybe this hint https://github.com/NixOS/nixpkgs/blob/master/lib/systems/default.nix#L504 helps21:51:07
@robert:funklause.dedotlambda I would hope that adding something like pkgsCross.wasi32.buildPackages.rustc does the trick 22:03:08
@rosssmyth:matrix.orgrosssmythProbably will, but that has the downside of instantiating a whole other nixpkgs 22:03:38
@robert:funklause.dedotlambdapkgsCross.wasi32 is also used to build Firefox22:04:06
@robert:funklause.dedotlambda
In reply to @robert:funklause.de
I would hope that adding something like pkgsCross.wasi32.buildPackages.rustc does the trick
Sadly, it fails to build with a complaint about missing a "wasi-root" key in bootstrap.toml
22:09:51
29 Oct 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".19:57:43
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".19:57:43
@grahamc:nixos.org@grahamc:nixos.org changed the room topic to "" from "".19:57:43
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.19:58:21
@voyager:t2bot.ioMatrix Traveler (bot) joined the room.19:59:14
@ralith:ralith.comRalith joined the room.20:00:28
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.20:00:52
@grahamc:nixos.org@grahamc:nixos.org invited @mjolnir:nixos.orgNixOS Moderation Bot.20:01:04
@mjolnir:nixos.orgNixOS Moderation Bot joined the room.20:01:05
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.20:01:08
Room Avatar Renderer.20:02:40
@hexa:lossy.networkhexa joined the room.20:04:36
@kity:kity.wtfproblems joined the room.20:06:27

Show newer messages


Back to Room ListRoom Version: 6