4 ms·
> with cargo you praise the absences: there’s no gotchas, no footguns, no lore you have to learn in anger, no weirdness, no environment variables Suppose the a
by ratmice 1y ago
> with cargo you praise the absences: there’s no gotchas, no footguns, no lore you have to learn in anger, no weirdness, no environment variables
Suppose the author doesn't use build.rs, which appears to have been composed of the listed things almost entirely.
- rcxdude 1y agobuild.rs is a useful escape hatch for if you need to do something more complicated, but the nice thing about cargo is that for the most part the defaults work. Generally build.rs only comes in if you have to deal with C, C++ or some other external ecosystem. A pure rust crate basically never needs to touch it, across multiple platforms and build configurations.
- ratmice 1y agoGenerally yes, but there are things like lalrpop which are pure rust, I personally fall within the pure rust build.rs user purview...
- dhruvrajvanshi 1y agoWell I wouldn't call lalrpop "Pure rust". It's a separate language that gets compiled to rust. It's within the rust ecosystem though. Perhaps cargo could expose a simpler way to use code generators.
- meltyness 1y agoNice to have when you still refuse to make learn