logoalt Hacker News

giancarlostoroyesterday at 6:07 PM3 repliesview on HN

I'm a little annoyed that for a Rust based tool the recommended installation command is to use npm. Why? Is Cargo not good enough? Cargo seems exceptionally well to me.


Replies

port11today at 9:13 AM

Can't it be packaged as a binary/whatever that would install without either cargo or npm?

show 1 reply
Barathkannayesterday at 6:37 PM

I get the frustration, but I think the npm option actually makes sense here. A lot of users who’d benefit from a fast Rust tool aren’t Rust developers and won’t have Cargo installed. Shipping it through npm lowers the barrier while still giving everyone the performance benefits. It’s not a knock on Cargo, just a way to make the tool more accessible.

show 2 replies
_sinelaw_yesterday at 6:14 PM

I did it because not everybody has cargo installed. I'm using cargo-dist to create this npm package.

show 4 replies