[package]
edition = "2021"
rust-version = "1.78.0"
name = "asserting"
version = "0.13.1"
authors = ["haraldmaida"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Fluent assertions for tests in Rust that are convenient to write and easy to extend.\r
"""
readme = "README.md"
keywords = [
"assertions",
"testing",
"fluent",
"matchers",
]
categories = [
"development-tools::testing",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/innoave/asserting"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
bigdecimal = [
"dep:bigdecimal",
"dep:lazy_static",
]
colored = ["dep:sdiff"]
default = [
"std",
"colored",
"float-cmp",
"panic",
"regex",
]
float-cmp = ["dep:float-cmp"]
num-bigint = [
"dep:num-bigint",
"dep:lazy_static",
]
panic = ["std"]
regex = ["dep:regex"]
rust-decimal = ["dep:rust_decimal"]
std = []
[lib]
name = "asserting"
path = "src/lib.rs"
[[example]]
name = "assertion_function"
path = "examples/assertion_function.rs"
required-features = ["colored"]
[[example]]
name = "colored_diffs"
path = "examples/colored_diffs.rs"
required-features = ["colored"]
[[example]]
name = "custom_assertion_reusing_existing"
path = "examples/custom_assertion_reusing_existing.rs"
required-features = ["colored"]
[[test]]
name = "version_numbers"
path = "tests/version_numbers.rs"
[dependencies.bigdecimal]
version = "0.4"
optional = true
default-features = false
[dependencies.float-cmp]
version = "0.10"
optional = true
[dependencies.hashbrown]
version = "0.16"
[dependencies.lazy_static]
version = "1"
optional = true
[dependencies.num-bigint]
version = "0.4"
optional = true
default-features = false
[dependencies.regex]
version = "1"
optional = true
[dependencies.rust_decimal]
version = "1"
optional = true
default-features = false
[dependencies.sdiff]
version = "0.1"
optional = true
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.fakeenv]
version = "0.1"
features = ["fake"]
default-features = false
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.time]
version = "0.3"
features = ["macros"]
default-features = false
[dev-dependencies.version-sync]
version = "0.9"
[lints.clippy]
enum_glob_use = "deny"
expect_used = "deny"
future_not_send = "allow"
if_not_else = "allow"
missing_const_for_fn = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
print_stderr = "deny"
print_stdout = "deny"
unwrap_used = "deny"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
bare_trait_objects = "warn"
dead_code = "warn"
deprecated = "warn"
explicit_outlives_requirements = "warn"
missing_docs = "warn"
noop_method_call = "warn"
rust_2021_incompatible_closure_captures = "warn"
rust_2021_incompatible_or_patterns = "warn"
rust_2021_prefixes_incompatible_syntax = "warn"
rust_2021_prelude_collisions = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unsafe_code = "forbid"
unstable_features = "forbid"
unused_crate_dependencies = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[profile.dev.package.fakeenv]
opt-level = 3
[profile.dev.package.proptest]
opt-level = 3
[profile.dev.package.version-sync]
opt-level = 3