Cargo Features

[dependencies]
mineflake = { version = "0.2.2", default-features = false, features = ["cli", "net"] }
default = cli, net

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

cli default = clap, pretty_env_logger

Affects utils::log

net default = copy_dir, num_cpus, reqwest, sha256, url, zip

Affects package::PackageTrait.move_to_cache, package::RemotePackage, package::RepositoryPackage, package::SpigotPackage, utils::net

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.

clap cli

Enables clap

CLI

url net

Enables url

Net

reqwest net

Enables reqwest ^0.11

sha256 net
zip net

Enables zip ^0.6

copy_dir net
num_cpus net
pretty_env_logger cli

Enables pretty_env_logger ^0.4