rustshop
crane
Our great sponsors
rustshop | crane | |
---|---|---|
8 | 12 | |
72 | 743 | |
- | - | |
6.4 | 9.2 | |
about 2 months ago | 3 days ago | |
Rust | Nix | |
Mozilla Public License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rustshop
-
Projects whose entire stack is in rust?
I was hoping to have https://github.com/rustshop/rustshop be like that, but I've got a Rust dayjob since then, and I have less time for Rust side projects now.
-
Perfect Docker Images for Rust with Nix
Many thanks to u/dpc_pw, whose notes on GitHub were my starting point for the flake definition. (I also just realized I unwittingly gave my article an almost-identical title by the time I was done refining it, so Iām more indebted to them than I thought.)
- Rewrote It In Rust: A Tiny Go Scraper [no code, only context & thoughts]
-
min-sized-rust: How to minimize Rust binary size
Since docker images are mentioned, I'd like to point out that using musl-linked images is often counterproductive, as docker layers with standard library can be shared between different projects and build versions. https://github.com/rustshop/rustshop/discussions/9
- Perfect DX in RustShop (using Rust + Nix, as always)
- Using Rust to not have to touch Yaml in k8s land
-
I'd like to get myself out of the stone age, but don't know how
and here is the project in this area that I'm working on
-
Interested in building cloud-based systems with Nix&Rust? Check out RustShop.
rustshop is an attempt at building a template for developers to help them start their own cloud-based system, without much Ops experience.
crane
- Can rustc generate identical binaries, with the same hash, from the same souce code?
- Transitioning to Rust as a company
-
Help with building a 32bit library with cargo
i would also recommend using crane or naersk since iirc rustPlaform.buildRustPackage can mangle some of these options (or maybe i just did something wrong lol)
-
Better support of Docker layer caching in Cargo
Notably crane is doing what cargo-chef is doing for Nix.
-
20 Years of Nix
I don't think it's very valid to compare the two. It is a little bit just to compare the experiences using them bit they aren't meant to solve the same set of issues. In fact, they are better together in my experience. I use nix to manage my terraform configurations with a lot of success. It reduces my boilerplate and helps me build abstractions on top of HCL.
If you ever decide to take a stab at nix again, consider looking at https://github.com/ipetkov/crane and using flakes. I've got it down to the point that I can get a new rust project set up with nix in about 30 seconds with linting, package building, and test running all in the checks
-
Has anyone packaged Rust programs as nix packages?
Take a look at Crane, though it is squarely aimed at non-beginners. If you want to submit whatever you're packaging to nixpkgs and not just for personal use, you can't use crane, though.
-
Crafting container images without Dockerfiles
To get Rust incremental builds, did you consider using something such as crane https://github.com/ipetkov/crane ?
And regarding OCI images, i built nix2container (https://github.com/nlewo/nix2container) to speed up image build and push times.
-
How to setup devShell for rust development with bevy?
This is the relevant part of my flake (which uses the quick-start template of crane):
-
yarnpnp2nix: More efficient way of packaging NodeJS applications
I imagine/hope you've seen this, but over in Rust-land I do something similar using https://github.com/ipetkov/crane. I've been on the lookout for something precisely like this for a while. I don't know much about the newer versions of yarn but imagined such a thing was possible. I am looking forward to trying this out, especially if the above is eventually addressed.
-
Perfect Docker Images for Rust with Nix
If you haven't already, I recommend checking out crane for building extensible workflows using cargo and Nix (e.g. running clippy, cargo-audit, cargo-nextest, cargo-tarpaulin, etc.)
What are some alternatives?
Examples - Various scripts I've created over the years. Mostly a reference for when I go "How the heck did I do that one thing a year ago?"
naersk - Build Rust projects in Nix - no configuration, no code generation, no IFD, sandbox friendly.
alnoda-workspaces - :fireworks: Flexible and extendable containerized workspaces. Now. with free offline chat GPT!!! ššš
api - š API
min-sized-rust-windows - :crab: 464b rust binary on windows
yarnpnp2nix - A performance focused and space efficient way of packaging NodeJS applications with Nix
yaml-language-server - Language Server for YAML Files
cargo-auditable - Make production Rust binaries auditable
fedimint - Federated E-Cash Mint
dream2nix - Simplified nix packaging for various programming language ecosystems [maintainer=@DavHau]
js-yaml - JavaScript YAML parser and dumper. Very fast.
cargo-quick - (currently vapourware) A cargo subcommand to quickly bootstrap your dependency tree on first build