u/AffectionateBag4519
hpke-ng: Faster, Smaller, Harder HPKE for Rust
not my work! read this on lobsters and wanted to share it here.
Not the author. Found this on lobste.rs and didn't see it posted here yet.
I have been using bazel extensively with rust at my day job (working in a massive embedded monorepo). I am actually very happy with bazel for this so far. Lately when I start a new personal / weekend project I am tempted to reach for bazel with buildbuddy (dumb easy to setup and I probably wont ever need more than what the free offers) HOWEVER, bazel can be so complex and I feel like the rust bazel story is close to working for me but just kinda off. (for example cross compiling from linux to windows using rules_rust is shockingly difficult since rules rust assumes MSVC when targeting windows. rules_rs fixes this but then rules_rs doesnt REALLY work with rust-analyzer as well as rules_rust). My question is for people who want remote build exec and remote caching, similar to what you can setup with bazel, but who just want to use cargo as the build system are there any high quality options. I read the cargo book, I am aware of sccache. my issues with sccache are basically every single one of the caveats in listed in the sccache readme apply to me so I end up paying more than I save by using it. I saw an advertisement post on here from 4 months ago for something that kinda addresses what I want (its just remote caching not remote building) but A. this project just seems sus to me B. I tried using it on a hello world and that didnt work and C. If I am gonna do remote shared cache without remote exec, differences in the build environments across laptops are likely to screw things up. Lastly I know there are specific solutions for this in CI, depo namespace.so ect, but I am more looking for something that matches the bazel-remote experience where a regular cargo build / run / check would push the work to a remote. Thanks for reading sorry if this was overlong.