finished the first draft of my 0-dependency rust library to convert HTML to plain text:
(basically just copied a Go library that does the same thing)
an alternative to a library with 43 runtime dependencies and 74 build dependencies: https://github.com/jugglerchris/rust-html2text/
this is for crabmail: https://git.alexwennerberg.com/crabmail
adding that library would have more than doubled the size of the dependency tree
i want to believe lighter-weight rust applications are possible
@aw This looks really awesome! Though there may be something weird about the git setup? I can't seem to clone the repo
@aw > an alternative to a library with 43 runtime dependencies and 74 build dependencies
Every time I try to pick up Rust, I bounce off it's horrifying library ecosystem. It's good to see some pushback there, as the language itself is interesting.
@tfb I think there are a couple of mitigating factors here --
1. rust doesn't have a large standard library, so things like time handling or base64 encoding are in 3rd party crates
2. rust is statically linked -- if you think about the dependencies of a c program that links to open ssl, they are pretty numerous
I do agree though, and I've been working on a collection of some tools which counter this trend -- https://alex.flounder.online/tech/awesome-small-rust.gmi
Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them.