We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Write the Nix package of a Rust project in 2022: an opinionated comparison

Formal Metadata

Title
Write the Nix package of a Rust project in 2022: an opinionated comparison
Title of Series
Number of Parts
28
Author
License
CC Attribution 3.0 Unported:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor.
Identifiers
Publisher
Release Date
Language

Content Metadata

Subject Area
Genre
Abstract
In this talk, we will address the different existing strategies to package an arbitrary Rust crate. Our goals are to try to minimize the amount of Nix code required to quick start, discussing how to deal with overlays, and finally demonstrating why Nix offers a greater cross-compilation developer experience than Cargo. Existing solutions that will be compared are nixpkgs, naersk, crate2nix, cargo2nix and crane (used by dream2nix). We will analyse what are the derivations produced for each of those and inspect how IFDs are used.