| 1 |
[package] |
| 2 |
name = "proptest" |
| 3 |
version = "1.9.0" |
| 4 |
authors = ["Jason Lingle"] |
| 5 |
license = "MIT OR Apache-2.0" |
| 6 |
readme = "README.md" |
| 7 |
repository = "https://github.com/proptest-rs/proptest" |
| 8 |
homepage = "https://proptest-rs.github.io/proptest/proptest/index.html" |
| 9 |
documentation = "https://docs.rs/proptest/latest/proptest/" |
| 10 |
keywords = ["property", "testing", "quickcheck", "fuzz", "hypothesis"] |
| 11 |
categories = ["development-tools::testing"] |
| 12 |
edition = "2021" |
| 13 |
rust-version = "1.82" |
| 14 |
exclude = ["/gen-*.sh", "/readme-*.md"] |
| 15 |
|
| 16 |
description = """ |
| 17 |
Hypothesis-like property-based testing and shrinking. |
| 18 |
""" |
| 19 |
|
| 20 |
[features] |
| 21 |
|
| 22 |
default = ["std", "fork", "timeout", "bit-set"] |
| 23 |
# Everything in `default` that doesn't break code coverage builds |
| 24 |
default-code-coverage = ["std", "fork", "timeout", "bit-set"] |
| 25 |
|
| 26 |
attr-macro = ["proptest-macro"] |
| 27 |
|
| 28 |
# Enables unstable features of Rust. |
| 29 |
unstable = [] |
| 30 |
|
| 31 |
# Enables the use of standard-library dependent features |
| 32 |
std = ["rand/std", "rand/os_rng", "regex-syntax", "num-traits/std"] |
| 33 |
|
| 34 |
# std or libm required for mul_add. |
| 35 |
no_std = ["num-traits/libm"] |
| 36 |
|
| 37 |
# For use in no_std environments with access to an allocator |
| 38 |
#alloc = ["hashmap_core"] |
| 39 |
alloc = [] |
| 40 |
|
| 41 |
# Use a hardware random number generator (instead of static seed) for x86 no_std targets |
| 42 |
hardware-rng = ["x86"] |
| 43 |
|
| 44 |
# Enables use of the "fork" feature. |
| 45 |
# |
| 46 |
# Requires std. |
| 47 |
fork = ["std", "rusty-fork", "tempfile"] |
| 48 |
|
| 49 |
# Enables use of the "timeout" feature. |
| 50 |
# |
| 51 |
# Requires the "fork" feature. |
| 52 |
timeout = ["fork", "rusty-fork/timeout"] |
| 53 |
|
| 54 |
# Enables support for 64-bit atomic integers. |
| 55 |
# This is enabled by default. Some no_std environments do not support it and |
| 56 |
# need it excluded, however. |
| 57 |
atomic64bit = [] |
| 58 |
|
| 59 |
bit-set = ["dep:bit-set", "dep:bit-vec"] |
| 60 |
|
| 61 |
# Enables proper handling of panics |
| 62 |
# In particular, hides all intermediate panics flowing into stderr during shrink phase |
| 63 |
handle-panics = ["std"] |
| 64 |
|
| 65 |
[dependencies] |
| 66 |
bitflags = { workspace = true } |
| 67 |
unarray = { workspace = true } |
| 68 |
proptest-macro = { workspace = true, optional = true } |
| 69 |
num-traits = { workspace = true } |
| 70 |
regex-syntax = { workspace = true, optional = true } |
| 71 |
bit-set = { workspace = true, optional = true } |
| 72 |
bit-vec = { workspace = true, optional = true } |
| 73 |
rand = { workspace = true, features = ["alloc"] } |
| 74 |
rand_xorshift = { workspace = true } |
| 75 |
rand_chacha = { workspace = true } |
| 76 |
rusty-fork = { workspace = true, optional = true } |
| 77 |
tempfile = { workspace = true, optional = true } |
| 78 |
x86 = { workspace = true, optional = true } |
| 79 |
|
| 80 |
[package.metadata.docs.rs] |
| 81 |
all-features = true |
| 82 |
rustdoc-args = ["--cfg", "docsrs"] |
| 83 |
|
| 84 |
[dev-dependencies] |
| 85 |
regex = { workspace = true } |
| 86 |
trybuild = { workspace = true } |