Sender | Message | Time |
---|---|---|
30 Aug 2024 | ||
ˈt͡sɛːzaɐ̯ | I'm running rust-analyzer from nixos-unstable on a rust project that is mostly a blank project with cargo add matrix-sdk . And I get 100eds of cargo-auditable processes. | 09:36:17 |
marijan | Can you point me to the relevant code? what do you mean with patching it with placeholder on cargoDeps? | 09:52:17 |
cafkafk | it seems to use olm so makes sense? | 10:46:02 |
cafkafk | or... https://github.com/matrix-org/matrix-rust-sdk/blob/224292ab3e3425600a6ee25aa5df17eb197c3831/crates/matrix-sdk-crypto/Cargo.toml#L85 | 10:47:00 |
cafkafk | In reply to @julius:mtx.liftm.dealso lol wtf | 10:47:38 |
ghpzin | In reply to @marijan:matrix.orgI do not know about it much myself, but buildRustPackage has hooks inside them.One of them vendors dependencies, so I thought for your case it could be possible to somehow postPatch placeholder value that would expand into store path of that vendor dir.https://github.com/NixOS/nixpkgs/blob/e5a5a40ef65f73afb94e63faa046f5e77afb294a/pkgs/build-support/rust/hooks/cargo-setup-hook.sh https://github.com/NixOS/nixpkgs/blob/bb26612729b2e1a54de781572eaef5b5ba04f3e6/pkgs/build-support/rust/fetch-cargo-tarball/default.nix But reading around it, not sure if it is possible. Maybe you can just patch it into relative path ie ../golem-wasm-ast , which may work, because all of the crates should be in that same cargo-vendor-dir | 11:49:54 |
ghpzin | In reply to @julius:mtx.liftm.deIs it just from starting rust-analyzer ?It was the first point here about potential of recursing, maybe something else does it too (that one was resolved with wrapper): https://github.com/rust-secure-code/cargo-auditable/issues/89 | 12:25:27 |
marijan | Do I understand correctly that cargoSetupPostUnpackHook will create a cargo-vendor-dir in the crates source directory?I don't think your latter suggestion works as golem-wasm-ast is only used to find the package by name | 14:22:48 |
marijan | * Do I understand correctly that cargoSetupPostUnpackHook will create a cargo-vendor-dir in the crates source directory?I don't think your latter suggestion works as the string "golem-wasm-ast" is only used to find the package by name | 14:23:08 |
marijan | When I use cntr I can also see that there is obviously no cargo-vendor-dir/cargo-vendor-dir | 14:24:00 |
Ilya Ovsyannikov joined the room. | 15:59:02 | |
zmitchell set a profile picture. | 22:09:29 | |
31 Aug 2024 | ||
ˈt͡sɛːzaɐ̯ | I think I know part of the cause: I have rust-analyzer on path twice, one because I have it in my user packages, and once from a devShell. | 04:54:47 |
ˈt͡sɛːzaɐ̯ | * I think I know part of the cause: I have rust-analyzer on path twice, one because I have it in my ~~user packages~~ home-manager.user.….programs.helix.extraPackages , and once from a devShell. | 05:54:06 |
ˈt͡sɛːzaɐ̯ | * I think I know part of the cause: I have rust-analyzer on path twice, one because I have it in my home-manager.user.….programs.helix.extraPackages , and once from a devShell. | 05:54:20 |
Dennis joined the room. | 08:09:13 | |
Vedant joined the room. | 19:07:34 | |
1 Sep 2024 | ||
tgunnoe joined the room. | 15:28:31 | |
Niklas Korz joined the room. | 18:24:13 | |
marijan | ghpzin: ? | 18:53:24 |
@zzantares:matrix.org removed their display name Hamlet'sPiedPlumber. | 19:19:24 | |
@zzantares:matrix.org left the room. | 19:19:41 | |
2 Sep 2024 | ||
ghpzin | marijan: threads are pretty buggy, so I can't see your mentions half the time. I checked again and even that thing with referring to crates vendor dir probably won't work At least it won't work referring to it as store path, because they are bundled in store as .tar | 06:21:46 |
ghpzin | * marijan: threads are pretty buggy, so I can't see your mentions half the time. I checked again and even that thing with referring to crates vendor dir probably won't work At least it won't work referring to it as store path, because they are bundled in store as .tar I am out of ideas, unless somebody else knows how it can be done. | 06:22:20 |
Ilan Joselevich (Kranzes) | Has anyone managed to get the wild linker working in a devshell? I am struggling with using it with clang, because our clang is wrapped with a bunch of flags cause conflicts, and the unwrapped one is missing some libraries. https://github.com/davidlattimore/wild/?tab=readme-ov-file#linking-rust-code | 15:58:24 |
3 Sep 2024 | ||
tgunnoe | I guess crate2nix wont be able to build with something like this https://github.com/paritytech/polkadot-sdk/blob/master/substrate/utils/wasm-builder/src/builder.rs#L54 that reaches out to the root workspace manifest right? https://github.com/nix-community/crate2nix/commit/14d9c68123ae2d7ee94f91da28f3bf278c5cff0b | 13:42:59 |
K900 | @Alyssa Ross the warnings in https://github.com/NixOS/nixpkgs/pull/339072 are busted | 14:02:05 |
K900 | error: cannot coerce a list to a string: [ "rustcTarget" ] | 14:02:22 |
Alyssa Ross | oh :( | 14:03:11 |
K900 | OK I think it's an easy fix at least | 14:04:38 |