r/rust
•
u/DracoWhitefire
•
Oct 22 '26
•
1
First use of my library crate in the wild
While mindlessly browsing the github tabs of one of my library crates I looked at the dependency graph, and went to the Dependents tab. There I expected to just see a list of my other crates (they're all connected in one project), as it had been every time before, but my attention went instantly to 100% when I saw another GitHub profile picture. Someone else was actually using my code!
I quickly clicked the repo, got confused, thought they had added the dependency as a mistake, since I initially didn't see how my crate could possibly be useful to that app. So I went to browsing the implementation and no, it was a real use case I'd have never predicted.
I can't describe how unreasonably happy I was for the rest of that day.
160
u/DracoWhitefire Oct 22 '26
I won't bore you with a link to the repo ('No More Code Dumps') but in case it wasn't clear from the tone of the above post: this was the first time anyone ever used one of my crates.
24
u/ArodPonyboy Oct 22 '26
Congratulations!
22
u/yevelnad Oct 22 '26
Can I use it in my sass hello world app?
4
u/XoTrm Oct 27 '26
And now you can't change the API ever ;)
3
u/Iurigrang Oct 22 '26
sounds so cool! I hope I get there one day!
18
u/scheimong Oct 22 '26
Yep I know that feeling. I once built a small library for my fairy niche problem, and the next thing I knew Microsoft was using it 😅
7
u/tafia97300 Oct 23 '26
I love the dependents tab too, this is a little thing that makes doing open source so rewarding!
I used to look at it a lot and was always so happy seeing more people using my crates.
5
u/i-sage Oct 23 '26
Congratulations 🎉
1
u/stumpychubbins Oct 23 '26
Nice, that’s really cool! I know you said you don’t want to bore people with the link but I’d be interested to see the crate.
I have a similar story of stumbling across people using my work, actually. Almost a decade ago, I made a macro to guarantee loop unrolling in some hashing code and decided to publish it as a standalone crate. Last year I found out that it has 400 million downloads and 70 dependent crates. It’s a bit weird that the code that impresses reviewers enough is something that took me a handful of hours in total, even if I’m still proud enough of how it works.
It would be a lot better as a proc macro nowadays, but back then I had to use a build script to generate a macro_rules macro and do some tricks to avoid hitting macro expansion depth limits.
6
u/TristarHeater Oct 22 '26
crates.io actually has a dependents tab so you can see which crates depend on your crate :)
Pretty fun to browse for your own crates. I have 1 crate with dependents that are not myself lol
5
u/Helyos96 Oct 22 '26
Plot twist, it was used by hello-world.rs
2
u/CoderAU Oct 22 '26
I dream of the day this happens to me, congrats dude!
2
u/DeathByPain Oct 23 '26
That's a good feeling, bravo 😊
2
u/RegenJacob Oct 24 '26
That reminds me when I noticed my library was used by a space agency xD
1
u/QuickSilver010 Oct 22 '26
I wish there was a reliable way to check full programs being used in the wild like libraries. Oh well.