Expand description
§Usage
Note: API is unstable, and may change in 0.x versions.
§As a library
As a library, usually you prefer to use scheduler
and api to download images from gelbooru api.
See scheduler::Scheduler for example.
§As a binary
In addition to the above, you also need cli to build the command line.
See main.rs to know how to assemble these modules as a binary.
§Requirements
This crate use reqwest to send https requests to booru api,
which means tls is required.
So, this crate enables reqwest/default-tls through default features,
which has this requirement.
If you don’t want to use the default tls(I mean, system openssl on linux),
you can disable default features,
and enable other tls features like rustls-tls or native-tls-vendored.
See following Feature flags.
§Feature flags
-
This crate re-exports(same name) all
tlsfeatures fromreqwest.See reqwest#optional-features for details.
-
cli: Enable the command line utility.
Modules§
- api
- A core module for interacting with the Gelbooru API.
- cli
cli - A core module for command line interface.
- config
- Utils for parsing and validating the config.
- download
- Utils for downloading files from url.
- hash
- Utils for hashing files using various digest algorithms.
- scheduler
- A core module to download images from the API data.
- tool
- Some useful tools for the project.