i ran through the rust “getting started” page (https://www.rust-lang.org/learn/get-started). it's a hello-world project that has the rust crab mascot say hello, and consists of 10 lines of code actually written.
it results in pulling in 25 separate dependencies totalling up to 97 megabytes.
for reference the entire cowsay source is 168 lines/4 kilobytes of perl.
@nytpu They could have created that library without importing any dependencies. But the website is just demonstrating how to import a crate and use it.
@nytpu My experience, as a person that's been writing Rust since 2015, is that most Rust crates aren't importing other crates for no reason at all.
The reason ferris-says imports so many dependencies is that it's importing the clap crate. The clap crate is only used by command line applications wanting to have a professional command line argument parser. My guess is that the library also contains a binary target which is using clap, but you get to fetch clap too since it's not separated.
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.