cargo_fetch
What?
A library that aims to provide an easy and stable API for tools to fetch packages.
Uses cargo
library under the hood.
Why?
Using cargo
library allows it to reuse a lot of code, that would be
hard and tedious to reimplement.
This includes:
- Using the
cargo
cache ($HOME/.cargo
), - Supporting every package source that
cargo
does: remote, local registries, git repositories, local paths.
Reusing the cargo
code also provides reliability and security.
How?
Using this library is pretty simple:
use ;
You can run this example with cargo run --example fetch_serde
in the root of this repository.
License
Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option. Files in the project may not be copied, modified, or distributed except according to those terms.