forked from allenap/rust-petname
/
Cargo.toml
42 lines (36 loc) · 1.38 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[package]
authors = ["Gavin Panella <gavinpanella@gmail.com>"]
categories = ["command-line-utilities", "no-std"]
description = "Generate human readable random names. Usable as a library and from the command-line."
edition = "2021"
keywords = ["pet", "name", "rand", "random", "generator"]
license = "Apache-2.0"
name = "petname"
readme = "README.md"
repository = "https://github.com/allenap/rust-petname"
version = "1.1.2"
[badges]
travis-ci = {repository = "allenap/rust-petname", branch = "master"}
[lib]
name = "petname"
path = "src/lib.rs"
[[bin]]
doc = false
name = "petname"
path = "src/main.rs"
required-features = ["clap", "std_rng", "default_dictionary"]
[features]
# We include features that must be used for the binary regardless of if they are used (like clap).
default = ["clap", "std_rng", "default_dictionary"]
# Allows generating petnames with thread rng.
std_rng = ["rand/std", "rand/std_rng"]
# Allows the default dictionary to be used.
default_dictionary = []
[dependencies]
clap = {version = "^3.1.0", features = ["derive"], optional = true}
itertools = {version = "^0.10.3", default-features = false}
rand = {version = "^0.8.5", default-features = false}
[package.metadata.docs.rs]
# Limit docs.rs builds to a single tier one target, because they're identical on
# all. https://blog.rust-lang.org/2020/03/15/docs-rs-opt-into-fewer-targets.html
targets = ["x86_64-unknown-linux-gnu"]