!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

673 Members
Rust154 Servers

Load older messages


SenderMessageTime
11 Aug 2025
@emilazy:matrix.orgemilymy guess is that the v4 timeout fails and that causes an internal fallback to v615:39:49
@emilazy:matrix.orgemily but I haven't read requests code 15:40:00
@emilazy:matrix.orgemilyI agree that async is probably a good idea15:40:09
@tomasajt:matrix.orgTomaand by async you mean?15:40:55
@k900:0upti.meK900asyncio15:41:05
@k900:0upti.meK900Instead of manual threading15:41:10
@tomasajt:matrix.orgTomahow big is asyncio's closure?15:41:35
@tomasajt:matrix.orgTomaog its part of python15:42:00
@tomasajt:matrix.orgToma* oh its part of python15:42:04
@tomasajt:matrix.orgTomanever touched async python and wasn't really planning to15:42:37
@k900:0upti.meK900You'll probably also want httpx as an async HTTP client library15:42:39
@tomasajt:matrix.orgTomamaybe, I don't know15:42:50
@tomasajt:matrix.orgTomaIf someone wants to improve it, go ahead, I don't really write python that much15:43:25
@emilazy:matrix.orgemilycould RIIR :P15:47:18
@tomasajt:matrix.orgTomathe vendoring of the deps of the rust implementation would be interesting...15:49:42
@tomasajt:matrix.orgToma I guess we could use importCargoLock 15:49:55
@tomasajt:matrix.orgTomabut I don't think we should focus on that, we have more pressing issues, I think, e.g. lessening the cache burden, duplicated deps15:51:48
@tomasajt:matrix.orgTomaAlso, interesting sidenote: I encountered this around a month ago: https://github.com/flatpak/flatpak-builder-tools/blob/master/cargo/flatpak-cargo-generator.py Flatpak also has their own custom vendoring script...15:53:28
12 Aug 2025
@emilazy:matrix.orgemilyis it possible to build rustc with only the Cranelift backend, not LLVM?15:46:28
@emilazy:matrix.orgemily(I guess I don't know if it can self-host?)15:46:49
@k900:0upti.meK900Don't think so15:46:52
@rosssmyth:matrix.orgrosssmythhttps://github.com/rust-lang/rust/blob/d9dba3a55476ae2da5d4e5bce8a81b341c675750/bootstrap.example.toml#L75316:56:15
@rosssmyth:matrix.orgrosssmythnope16:56:19
@dramforever:matrix.orgdramforeverin today's edition of "does rust-hypervisor-firmware even work?" https://github.com/NixOS/nixpkgs/pull/43313517:06:15
@emilazy:matrix.orgemilyhmm shouldn't https://github.com/NixOS/nixpkgs/pull/426940 be using some TOML function instead17:38:09
@dramforever:matrix.orgdramforeverprobably but the receiving side is also jank17:40:55
@dramforever:matrix.orgdramforever it's using python shlex with . as word separator 17:41:11
@dramforever:matrix.orgdramforeverhttps://github.com/rust-lang/rust/pull/13263517:43:08
@dramforever:matrix.orgdramforeverif you think that parsing is jank check out this serialization https://github.com/rust-lang/rust/blob/1.89.0/src/bootstrap/configure.py#L621-L62817:48:42
@dramforever:matrix.orgdramforever

and the ominous comment

    for target in configured_targets:
        targets[target] = sections["target"][:]
        # For `.` to be valid TOML, it needs to be quoted. But `bootstrap.py` doesn't use a proper TOML parser and fails to parse the target.
        # Avoid using quotes unless it's necessary.
        targets[target][0] = targets[target][0].replace(
            "x86_64-unknown-linux-gnu",
            "'{}'".format(target) if "." in target else target,
        )
17:49:40

Show newer messages


Back to Room ListRoom Version: 6