!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

651 Members
Rust147 Servers

Load older messages


SenderMessageTime
13 Jul 2025
@rosssmyth:matrix.orgrosssmythYou can always try this thingy I made a few weeks ago https://github.com/RossSmyth/nur/tree/main/msvc-rust I need to put some more work into it probably.02:40:57
@rosssmyth:matrix.orgrosssmythSome of the situation with Windows would be eased if nixpkgs switched to the ucrt as it is not quite as cursed02:41:41
@andrew15_5:matrix.orgAndrew
In reply to @rosssmyth:matrix.org
You can always try this thingy I made a few weeks ago
https://github.com/RossSmyth/nur/tree/main/msvc-rust

I need to put some more work into it probably.
This is just rustc. I don't see it uses and of the msvc libraries or linker.
07:07:35
@andrew15_5:matrix.orgAndrewRight now, I'm still using the container as I don't have time for more side quests. I'm already on one.07:08:37
@k900:0upti.meK900I had a similar thing set up with https://gitlab.com/K900/rust-cross-windows07:08:43
@k900:0upti.meK900But again this only handles pure Rust07:09:14
@k900:0upti.meK900You need to bring your own native deps built for MSVC07:09:23
@k900:0upti.meK900And that's where the fun starts07:09:27
@k900:0upti.meK900Or ends, depending on your definition of fun07:09:39
@k900:0upti.meK900 @rosssmyth you may be interested for your own stuff though 07:10:13
@k900:0upti.meK900It's significantly less janky07:10:17
@k900:0upti.meK900At least at a glance07:10:23
@andrew15_5:matrix.orgAndrew I just added slightly patched dx, and dependences: pkg-config, python3, nsis, libssl-dev. The image is 5.8 GiB though... I mount my cargo registry and project dir, which helps. The quick rebundle takes about 40 seconds. 07:12:05
@andrew15_5:matrix.orgAndrew
In reply to @k900:0upti.me
But again this only handles pure Rust
Well, it has xwin, winsdk and the toolchain. The only thing missing from container is wine, I guess.
07:16:30
@k900:0upti.meK900The problem is that you have native deps07:17:12
@k900:0upti.meK900Presumably07:17:13
@k900:0upti.meK900As in, deps that need to be built for Windows that are not Rust07:17:25
@andrew15_5:matrix.orgAndrewFor now, I only have dependencies on weview207:17:45
@andrew15_5:matrix.orgAndrewMaybe openssl too, but I don't know if/how msvc uses it07:18:15
@andrew15_5:matrix.orgAndrewI do remember that several programs including mine depend on redistributable C++ runtime stuff.07:19:15
@andrew15_5:matrix.orgAndrewBut that's it.07:19:21
@andrew15_5:matrix.orgAndrew
In reply to @k900:0upti.me
As in, deps that need to be built for Windows that are not Rust
Oh, I though pure rustc. Okay. But why no wine? Is it not needed?
07:20:59
@andrew15_5:matrix.orgAndrewTheoretically this should work for my app.07:21:24
@k900:0upti.meK900Why do you need wine?07:21:36
@andrew15_5:matrix.orgAndrewOh, I guess it's only for native tests...07:24:31
@andrew15_5:matrix.orgAndrewI guess I should try creating a separate image without it. should be a hell of a lot smaller.07:26:43
@hatimthayyil:matrix.orgHatim joined the room.09:31:37
@audiotrope:matrix.org@audiotrope:matrix.org left the room.15:13:33
@timschumi:matrix.orgtimschumi joined the room.18:28:49
@marie:marie.cologneMarie changed their profile picture.20:11:54

Show newer messages


Back to Room ListRoom Version: 6