Re:Things you can’t do in Rust (and what to do instead)
by galangalalgol on Saturday May 15, 2021 @11:04AM
(#27165819)
I have the opposite problem with rust dependency management, its too easy so you get deep widely branching dependency trees by differing authors with differing licenses. From a corporate use perspective this is a legal nightmare. From a security standpoint, this is a trust nightmare.
[ Parent
| on HN ]
Re:Things you can’t do in Rust (and what to do instead)
by Keyframe on Saturday May 15, 2021 @11:18AM
(#27165980)
For licenses there's cargo-deny https://github.com/EmbarkStudios/cargo-deny
On the security standpoint and a wide net of crates.. that's a problem, same as with npm/yarn/pip/whatever and I agree on that. That one bugs me as well. Difficult to audit.
Re:Things you can’t do in Rust (and what to do instead)
by galangalalgol on Saturday May 15, 2021 @11:23AM
(#27166006)
Cargo-deny is accurate, but it accepts no legal or financial risk if it was in some case wrong and you infected a codebase with gplv3, and thus corporate lawyers everywhere ignore it.
Edit: this post keeps getting up and down voted. I suspects it has to do with the phrase infected by gplv3. I like the license fine, but being realistic many businesses treat it like radioactive waste, so that has to be a consideration
Re:Things you can’t do in Rust (and what to do instead)
by benreesman on Saturday May 15, 2021 @11:14AM
(#27165937)
In fairness, you have those problems no matter how you include other people's code. At least Cargo as far as I'm aware uses a SAT-solver to deliver you a working dep graph unlike `pip` or `npm` or any of that nonesense. (as long as I remember correctly that Carl Lerche wrote that part. Sidebar: wicked smart guy).
Re:Things you can’t do in Rust (and what to do instead)
by galangalalgol on Saturday May 15, 2021 @11:21AM
(#27165998)
You do, but clunky dependency management meant fewer less granular dependencies.