Warning! Social engineering attacks for supply-chain in rust crates

a month ago by Alex to c/rust

Empowering everyone to build reliable and efficient software.
Eggymatrix -1 points a month ago

Imo the package manager is one of the things in rust that it is holding back the most. Cargo, like npm is something that rapidly causes loss of control over dependency management, because your dependencies find it too easy to pull in more shit. That is an OS job, not a first class citizen of a language

path: 0 25906419, hotness: undefined, score: -1, children: 4
stsquad 3 points a month ago

Broadly I agree but I think the cargo tooling is one of the strengths of rust. The dependency downloading probably had to exist while rust was establishing itself and maturing as an ecosystem.

FWIW I wouldn't touch npm with a barge pole.

path: 0 25906419 25906557, hotness: undefined, score: 3, children: 3
Eggymatrix 3 points a month ago

What are the differences between cargo and npm that make you approve of the former and disapprove the latter?

path: 0 25906419 25906557 25914476, hotness: undefined, score: 3, children: 2
stsquad 1 point 24 days ago

It's a fair question. Personally for me crates.io seems to exercise good taste in what it adds and unlike npm doesn't (yet) have a long history of exploits. Also npm seems more prone to dependency explosion (leftpad,is even etc). Also I feel as though I have a fighting chance understanding the rust source should I need to delve into it.

path: 0 25906419 25906557 25914476 25947338, hotness: undefined, score: 1, children: 1
Eggymatrix 1 point 24 days ago

I think you are right, but IMO the reason is just a difference in numbers. If crate.io ever gets as much users as npm the problems will become exactly the same.

As soon as there is a situation where one dependency can decide tomorrow to pull in another one everybody is screwed. You might be comfortable with understanding the code, but if you don't have the time to fix it you are screwed either way. The customer always says "it worked yesterday, what do you mean you need to fix something? Work on this new feature instead". One year of this any you cannot manage your dependencies anymore and you have hundreds, welcome to npm.

path: 0 25906419 25906557 25914476 25947338 25962382, hotness: undefined, score: 1, children: 0
rust
rust

@lemmy.ml

login for more options
9402
398
129

go to feed...