(no title)
thecrm | 3 years ago
Edit: for things like the kernel, vendoring dependencies is still probably not a bad idea, of course
thecrm | 3 years ago
Edit: for things like the kernel, vendoring dependencies is still probably not a bad idea, of course
humanrebar|3 years ago
What happens when a given dependency adds new kernel-inappropriate features? Are kernel devs going to act like distro maintainers and decide between forking, maintaining patch sets, etc.?
roca|3 years ago
A dependency veering off in a direction you don't like is one of the risks of using someone else's code instead of writing it yourself. Cargo makes it easy to use forked dependencies, and forking a dependency is almost always less work than if you'd never used it and written the code yourself from the beginning. (And to be clear this is only a problem for future evolution; a crate author cannot remove or modify an already-published version of their crate.)
sanderjd|3 years ago
To the second set of questions, how is this any different than any other dependency the kernel has? If the answer is "the kernel has no dependencies" then yeah, I'm very sympathetic to the argument that bringing in rust libraries is not a good reason to start having dependencies when none previously existed at all, but is that the case?
yw3410|3 years ago
unknown|3 years ago
[deleted]
CraigJPerry|3 years ago
You must specify --locked to get that behaviour
heftig|3 years ago
duckerude|3 years ago
goodpoint|3 years ago
That's exactly what it does. The developer is not really expected to thoroughly review the codebase of every dependency.
Just like javascript, all sort of supply chain attacks are made possible.
A single malicious library can sneak into large ecosystems easily.