Nix Rust | 652 Members | |
| Rust | 152 Servers |
| Sender | Message | Time |
|---|---|---|
| 5 Nov 2021 | ||
| 08:54:47 | ||
| 18:20:38 | ||
| 23:54:12 | ||
| 6 Nov 2021 | ||
| 09:19:35 | ||
In reply to @ralith:ralith.com I'm a fan of https://github.com/nix-community/naersk but it doesn't build libraries because they don't check in a Cargo.lock which is what it exploits to make builds reproducible. My biggest qualm with the rust support in nix so far is the library integration. Everything is great for building and shipping executables but there is a lack of support for libraries in my opinion. I haven't found a workflow or tool yet that allows me to make cargo "nix aware" e.g. "cargo build" fetches build artifacts from the nix-store. Admittedly, I only understand the rust build system and dependency management at a high level so I don't know how feasible this would be. | 21:11:40 | |
| 21:12:36 | ||
| a lockfile wouldn't really make sense, since it would inevitably be inconsistent with whatever a dependency needs | 21:15:26 | |
buildRustPackage works pretty well toocargoLock.lockFile is really useful outside of nixpkgs | 22:03:30 | |
https://github.com/kolloch/crate2nix or https://github.com/cargo2nix/cargo2nix might be what you want | 22:06:31 | |
or buildRustCrate and carnix | 22:07:31 | |
| figsoda Thanks for pointing out my lack of specification. I was implicitly referring to during development and across machines. One of the great things about using nix for C,C++, and Haskell what I believe the Rust ecosystem is currently lacking, is dependencies are pulled from the nix-store and not recompiled between projects, nix-builds, and development. Does help clarify? | 23:47:26 | |
| 7 Nov 2021 | ||
| Any reason why rust_Packages_1_45 was removed? I ran into a package today that would have needed it, if the fix wouldn’t have been trivial | 01:25:12 | |
| the last package to use it was firefox 78, so when I removed that due to being EOL I also removed rustPackages_1_45 | 01:29:58 | |
| * the last package to use it was firefox 78, so when I removed that due to it being EOL I also removed rustPackages_1_45 | 01:30:09 | |
| Is it off the table to bring it back if needed? | 04:48:02 | |
| legendofmiracles: why is it needed and why does the rust project fail on newer compilers? (I've seen such issues myself but usually the rust community tries to avoid that situation) | 14:48:16 | |
| 18:40:16 | ||
| 8 Nov 2021 | ||
| 13:02:15 | ||
| How does nix handle cargo patches, like here: https://github.com/a-b-street/abstreet/blob/4717c3c8f7072cd0efc6c49403f724b95f8738fe/Cargo.toml#L39 | 16:44:56 | |
| * How does nix handle cargo patches, like here?: https://github.com/a-b-street/abstreet/blob/4717c3c8f7072cd0efc6c49403f724b95f8738fe/Cargo.toml#L39 | 16:45:02 | |