Cargo Features

[dependencies]
margo-fetch = { version = "0.1.0", default-features = false, features = ["std", "downloader_checksum", "downloader_simple_reqwest", "source_resolver_remote_registry"] }
default = downloader_checksum, std

These default features are set whenever margo-fetch is added without default-features = false somewhere in the dependency tree.

std default = regex

Enables std of serde

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

Affects downloader::Downloader, margo-fetch::CargoLockfile, margo-fetch::CrateDownloadTarget, margo-fetch::CargoCacheCrate

downloader_checksum default downloader_simple_reqwest? = hex, sha2

Affects downloader::checksum

downloader_simple_reqwest = downloader_checksum, reqwest
source_resolver_remote_registry = hyper, hyper-tls, serde_json

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

regex std

Enables regex

std

hex downloader_checksum

Enables hex ^0.3.2

downloader_checksum

sha2 downloader_checksum

Enables sha2 ^0.8.0

reqwest downloader_simple_reqwest?

Enables reqwest ^0.9.5

downloader_simple_reqwest

hyper source_resolver_remote_registry?

Enables hyper ^0.12.19

source_resolver_remote_registry

hyper-tls source_resolver_remote_registry?

Enables hyper-tls ^0.3.1

serde_json source_resolver_remote_registry?