frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Why stdx is not on crates.io

https://kerkour.com/stdx-cratesio
31•Keyb0ardWarri0r•1h ago

Comments

cetra3•1h ago
It just looks like stdx has copied stuff from crates and put it in a git repo.

It feels like this is worse than a package manager? As in why would I trust a random git repo to keep things up to date over the officially published channel?

graypegg•1h ago
Yeah that confused me for a second too. I think they're talking about stdx as a single package, even though it contains multiple crates. If you wanted to install a crate from stdx specifically, you'd use this git URL but if you wanted any other package, you'd use another git URL controlled by that project.

So as I understand it, they're not suggesting that we pile many packages into 1 git repo as a sort of pseudo-crates.io, they're just promoting the fact that you can install a package directly from a git URL, rather than using a crate name on a registry.

What seems weird about that model to me is that dependancies will not sync between these individual packages. If package A chooses the canonical git URL for package C, and package B uses a self-hosted version of package C instead, you have two versions of package C.

deeebug•54m ago
Looks like it's that, plus vibe coding (in areas like crypto!) - https://kerkour.com/stdx
FiloSottile•33m ago
Uh, yeah, this is not the writing of someone with the experience to maintain a cryptography toolkit: https://kerkour.com/nist-cryptography-backdoor

(I’m more worried about judgement calls than implementation correctness, it’s not about AI.)

tptacek•18m ago
Hah, length-extension and CBC mode, famous NIST backdoors.
bel8•54m ago
One upside I can think is that it is easier to trust and verify one repo than hundreds.

And the chances of a rogue actor or id theft reduce drastically.

sheept•29m ago
Plus, with forks anyone can publish a commit accessible from the main repo, so one could disguise a malicious version of stdx by forking the repo, pushing their charges, then setting the rev:

    base64 = { git = "https://github.com/rust-stdx/stdx", rev = "<sha1 of malicious commit in fork>" }
testdelacc1•21m ago
This comment needs to be higher up. The author styles themselves as a cybersecurity expert, but makes the fundamental mistake of assuming that they’re trustworthy and we’d trust them no questions asked. Software security isn’t based on blind trust like this. I’m surprised an expert can’t see that.

The other reason I don’t trust them is because this repo is 100% AI slop, even for crypto code. He posted it on /r/rust where every comment was highly negative - https://www.reddit.com/r/rust/s/4I4Xc7x7ec. The thread was removed by a moderator with the note:

Please, stop posting articles from kerkour.com.

The blog has been on a downward spiral for years, it's doomed, let it go.

alphabeta3r56•9m ago
This is hugely problematic behavior of github
tptacek•13m ago
The author is trying to make "stdx" a thing, and content like this (I'm not dunking on it) is what you write when you're trying to reinforce the idea that it's a thing.

The big question about this project isn't its distribution, it's the core question it posed when it was first announced: are Rust developers going to seriously entertain an alternative "standard library" curated by one developer.

sourcegrift•1h ago
More like which stdx?

I appreciate prople's efforts but they are misplaced. If I were passionate about this-- i'd do two things

1) A crates.io alternative which allows namespaces in package names like GitHub or alternatively. Single universal namespace doesn't seem fine (I don't think there would be necessarily changes required on the cargo side if users are willing to use full urls)

2) some kind of trust system so a user can up/down vote a package

3) Take a small one time payment for verifying a package? I don't know how this would work.

krzyk•1h ago
I'm a bit new to rust or npm system.

But I always thought NPM was what the author describes - just a random set of packages with git sources, which I thought was the main issue (leftpad etc.). Isn't that the case?

What about one system that just works and is there for "ages": maven repository?

zdragnar•51m ago
NPM doesn't require any version control, it's just a repository for files. The "main" issue (if one could be called such) around leftpad is that the types of ranges that could be specified for grabbing versions was very loose, and many dependencies of dependencies might just grab whatever is "latest".

Then, when someone throws a fit, they upload a broken version to NPM, and everyone downstream is SOL (or the package is given over to a malicious maintainer, or the maintainer is hacked, etc).

Heck, NPM doesn't (didn't?) require a license either. One of my former employers never let us use Webpack 1.x because it depended on something that depended on something that depended on a package from the very early days of NPM that didn't come with a license (it was by isaacs iirc, so it was meant to be public, but the version specified wasn't licensed). It wasn't until webpack 2.x that the versions were updated enough that all of the dependencies were formally open source.

rdtsc•44m ago
> Also, you can only create a crates.io account with a GitHub account

Oh is that true? They tied themselves to Microsoft it seems. What about people who won't or can't use GitHub.

weinzierl•26m ago
Yes, unfortunately it is true. Sad, but I could live with that.

What in my opinion is unacceptable is that it requires you to give permission to "read your organization and team membership and private Projects".

I made a separate GitHub account (weinzierl-trusted-publisher) for crates.io which is far from ideal, because it works completely against the idea to build trust for a single unified identity online, but ¯\(ツ)/¯.

simonask•18m ago
As far as I understand, this is purely a result of lack of maintainer resources. Apparently, nobody has been bothered enough by this to contribute the relevant changes.

Keep in mind that all of rustc and libs development takes place on Github.

jitl•44m ago
going where the people aren’t, a well understood strategy
foresterre•39m ago
> stdx is a monorepo of, as of today, 64 crates

It's quite an, ahem, interesting mix of libraries, including three csv libraries, hyper_utils (but not hyper itself), and a ton of copied crates from other maintainers.

I hope the author has a good way of updating these with upstream fixes (some look out-of-date already), otherwise you may replace one security issue with another.

And the name stdx has been taken on crates.io, more than 11 years ago which can also be equally confusing.

jcgrillo•38m ago
I don't get it, maybe my brain isn't wrinkly enough. Two things:

1. What problem does stdx actually solve?

2. Ok, it's a git dep, seems fine? Why is the choice to publish or not publish in crates.io a big deal either way?

weinzierl•10m ago
stdx is not the best example. The most popular package that is not on crates.io is probably embassy.

Also Debian tries to build and distribute independently from crates.io.

So crates.io is important but is not the (Rust) world.

jamesmunns•8m ago
There's no single "embassy" crate, but all the components (HALs, executor, usb, net, etc.) are all on crates up and have been for a long time.
weinzierl•4m ago
Oh, good to know, thanks!
maeln•9m ago
"The solution to rust's supply chain woes is me stealing some code and vibe coding the rest" is truly one of the take of all time.

And in general, people pointing at Rust "limited" stdlib (it's only limited compared to Python) as one of the big issue and risk with rust are, in my opinion, misguided. You will never make an stdlib big enough to remove the need for external dependencies. It also creates a bunch of other problems. Actually, to take Python as an example, some functionality being in the stdlib have created a bunch of issue over the years since you can't just introduce breaking changes in an stdlib as easily. Look at urllib2/3 or xml in python. In the end, almost everyone ends up using requests and lxml instead. There are many issues that need to be dealt with to mitigate supply chain attacks. A bigger stdlib or an "stdlib-extended" a la Boost, is not one of them.

Also, specifically for Rust, many people run in a no-std environment (anything sized constraint for the most part). So another stdlib would do nothing for them.

LLM benchmarks are answering someone else's question

https://danlevy.net/llm-evals-are-broken/
1•justsml•22s ago•0 comments

The Orange Pi 6 is a new SBC with 12-core CPU, 45 TOPS of AI power, 24GB RAM

https://www.hackster.io/news/the-new-orange-pi-6-is-way-more-powerful-than-your-current-sbc-42744...
1•mikalauskas•55s ago•0 comments

Phone-Thing, Self-Thing

https://mlsu.io/posts/phone-thing-self-thing/
1•mlsu•1m ago•0 comments

Show HN: Zkit – Go libraries for building agents, not a framework

https://zarldev.github.io/zarlmono/
1•zarldev•1m ago•0 comments

Why Porsche Added a Fake Gearbox to Its New $111,900 Electric Vehicle

https://www.inc.com/connor-jewiss/why-porsche-added-an-illusion-to-its-new-111900-electric-vehicl...
1•connorjewiss•1m ago•0 comments

We Liked Remote Work. and Then We Looked at Data

https://www.nytimes.com/2026/06/17/opinion/remote-work-depression.html
1•achow•1m ago•0 comments

ServiceNow Security Breach Exposes Enterprise Customer Data

https://www.cpomagazine.com/cyber-security/servicenow-security-breach-exposes-enterprise-customer...
1•mooreds•2m ago•0 comments

I built an AI crypto trading bot, then proved it had no edge

https://github.com/blitzcrieg1/sentinel-trader-research
1•blitzcrieg•2m ago•0 comments

The AI era is pulling FP64 hardware away from scientific HPC

https://fortran-lang.discourse.group/t/the-ai-era-is-pulling-fp64-hardware-away-from-scientific-h...
1•Bostonian•2m ago•0 comments

Show HN: Bacon – an ad network that pays developers while their Claude works

https://geturbacon.dev
1•mrc_ord•3m ago•0 comments

US holds off blacklisting DeepSeek and more than 100 firms deemed security risks

https://finance.yahoo.com/news/exclusive-us-holds-off-blacklisting-000212827.html
1•theanonymousone•3m ago•0 comments

Ask HN: How's your experience with the YC Cofounder Matching platform been?

1•mmarian•3m ago•0 comments

Death rate in ICE immigrant detention centers more than doubles under Trump

https://www.reuters.com/legal/government/death-rate-ice-immigrant-detention-centers-more-than-dou...
1•tartoran•4m ago•0 comments

'Dangerous' AI Models Are Coming No Matter What

https://www.wired.com/story/dangerous-ai-models-are-coming-no-matter-what/
1•kordlessagain•5m ago•0 comments

Python dev saved from disaster by intuition and AI

https://www.theregister.com/ai-and-ml/2026/06/16/python-dev-saved-from-disaster-by-intuition-and-...
1•kens•5m ago•0 comments

Show HN: Smooth.video – animate your content, slide by slide, free

https://smooth.video/
1•elbazia•5m ago•0 comments

High degree of quantum entanglement detected in a metal crystal

https://www.techexplorist.com/high-degree-quantum-entanglement-detected-centimeter-sized-strange-...
1•SVI•7m ago•0 comments

Zero-Day 'RoguePlanet' in Microsoft Defender Grants System-Level Control

https://cyber.netsecops.io/articles/rogueplanet-zero-day-in-microsoft-defender-allows-full-system...
2•jaybode•7m ago•0 comments

Some Data Should Be Code

https://borretti.me/article/some-data-should-be-code
1•tosh•8m ago•0 comments

Data Visualization from the Comfort of Your Terminal

https://github.com/medialab/xan/blob/master/docs/cookbook/dataviz.md
2•Yomguithereal•8m ago•0 comments

The Doom Trolling Needs to Stop

https://www.nytimes.com/2026/06/17/opinion/ai-dangerous-openai-anthropic.html
1•kordlessagain•8m ago•0 comments

"You Killed the Car"

https://www.chicagomag.com/chicago-magazine/june-july-2026/inside-ferris-buellers-iconic-ferrari-...
1•speckx•9m ago•0 comments

Trump and world leaders joined by OpenAI, Anthropic, Google at G7

https://www.cnbc.com/2026/06/17/g7-trump-ai-tech-leaders-openai-anthropic-google.html
1•kordlessagain•9m ago•0 comments

Kotoba: Generate personalized vocabulary cards for language learning for free

https://github.com/yufengliu15/kotoba
1•rookiecookie•9m ago•0 comments

Just Send Me the Prompt (2025)

https://blog.gpkb.org/posts/just-send-me-the-prompt/
1•mooreds•10m ago•0 comments

What I've Learned From Selling 500k Books

https://fortelabs.com/blog/what-ive-learned-from-selling-500000-books/
1•jslakro•11m ago•0 comments

Allbirds rebrands as Smartbird in AI pivot, hires former AWS executive as CEO

https://www.reuters.com/business/retail-consumer/allbirds-rebrands-smartbird-ai-pivot-hires-forme...
1•fckgw•11m ago•0 comments

Neural Cellular Automata with WebGPU

https://ivanludvig.dev/tech/neural-ca-webgpu
2•IvanLudvig•12m ago•0 comments

Show HN: Project Huginn – cheaper AI training on idle GPUs

https://www.projecthuginn.com
1•mlbenchdev•13m ago•1 comments

PHP Attributes Changed the Way I Write Livewire

https://bert.gent/articles/2026-05-24/how-php-attributes-changed-the-way-i-write-livewire
1•speckx•13m ago•0 comments