3 ms·
Similarly being unhappy with pulling dependencies without using a system package manager, in part because it seemed tricky to make them work with a compiler ver
by defanor 3y ago
Similarly being unhappy with pulling dependencies without using a system package manager, in part because it seemed tricky to make them work with a compiler version from system repositories, this is something I wanted to try as well, and finally tried now. After having rustc installed, had to install 157 more packages in order to get argument parsing (librust-clap-dev), but it is still faster than cargo updating its package index, and then it actually builds!
Would be even better if the dependency tree for a basic package was more modest, about 157 times smaller.
- defanor 3y agoFWIW, I noticed that librust-argparse-dev is also packaged for Debian, and it comes without additional dependencies. It also builds fine when pulled from crates.io directly, while using rustc version from Debian repositories, unlike clap. So whether it is crates.io or system repositories, it may be worthwhile to spend more time looking for more lightweight and stable alternatives; most commonly suggested ones are not necessarily that.
- duped 3y agoIf you used cargo, you would only have 27 dependencies pulled in for clap. I'm guessing the bulk of those dependencies are the optional dev-dependencies that are pulled in during builds, and often include things like criterion for benchmarking which has a few dependencies of its own.