logoalt Hacker News

GitHub shouldn't be a dependency for publishing Rust on crates.io

118 pointsby speckxtoday at 7:40 PM41 commentsview on HN

Comments

vsgherzitoday at 10:33 PM

I agree and so does the rust project. The main problem is that it's alot of work and it's hard.

https://www.youtube.com/watch?v=zGS-HqcAvA4 Here's a long video from jon gjengset that shows how it works and some of the effort already done to de-couple from github.

Crates is widely used so it's a rebuilding the track while the train is driving kind of problem.

It's just not a priority for the project right now, but I would also definitely like to see the issue done. It might be good for the rust project to vote on things like this during surveys so they know where to focus work!

epagetoday at 8:46 PM

An RFC was recently merged to unblock this: https://github.com/rust-lang/rfcs/pull/3963

The implementation on this has started.

Something to keep in mind is https://blog.m-ou.se/rust-is-not-a-company/. Rust is mostly driven by volunteers working on what they find interesting. Boring/uninteresting tasks depend on funding, a warm body to accept the funding, and a reviewer.

show 1 reply
ameliaquiningtoday at 8:39 PM

See the official project issue on this: https://github.com/rust-lang/crates.io/issues/326

TL;DR: They want to fix this, it's a lot of work that no one's being paid to do, there's a roadmap with specific tasks that need doing, volunteer contributions are welcome.

show 2 replies
mikey_ptoday at 9:36 PM

The longer I go the more I have actually come to appreciate the way Packagist works for the PHP community, there are lots of cool things it does that I wish NPM or other registries did by default, like forcing you to package from a source repository, so that you can't upload a different artifact from what you keep in source control.

show 2 replies
dborehamtoday at 10:55 PM

My take: publishing Rust crates shouldn't depend on any single internet property, including crates.io.

lorecoretoday at 10:53 PM

Go handles this well, kind of. It's super easy (in fact, transparent) to import from GitHub urls. You can self-host your Go packages, but it involves making and hosting some manifest files. Not as seamless as using GitHub, but still totally doable.

Animatstoday at 8:24 PM

Sadly, that's probably correct. No outside single point of failure that can cancel users at will can be allowed to gatekeep open source projects.

sscaryterrytoday at 8:38 PM

Especially not now, what if they're down? ;)

show 1 reply
jauntywundrkindtoday at 9:38 PM

The teams support may be a bit trickier/less clear to move on, but generally: this feels like a great place where atproto / bluesky support would slot in well.

show 1 reply
androiddrewtoday at 9:57 PM

Welcome to Golang packaging problems. Hope you get it sorted out

show 3 replies
righthandtoday at 8:45 PM

Aka one of the many Rust reasons why I chose to learn C.

show 2 replies