Cargo Features

[dependencies]
petname = { version = "2.0.2", default-features = false, features = ["default-rng", "default-words", "clap"] }
default = clap, default-rng, default-words

clap is NOT required for the library but is required for the command-line binary. Omitting it from the default list means that it must be specified every time you want to build the binary, so it's here as a convenience.

default-rng default

Allows generating petnames with thread rng.

Enables std and std_rng of rand

Affects petname::Generator.generate_one, petname::petname

Required by the binary

default-words default

Allows the default word lists to be used.

Affects petname::petname

Required by the binary

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 default

Required by the binary