[dependencies.bigdecimal]
default-features = false
optional = true
version = "0.4"
[dependencies.float-cmp]
optional = true
version = "0.10"
[dependencies.hashbrown]
version = "0.16"
[dependencies.lazy_static]
optional = true
version = "1"
[dependencies.num-bigint]
default-features = false
optional = true
version = "0.4"
[dependencies.regex]
optional = true
version = "1"
[dependencies.rust_decimal]
default-features = false
optional = true
version = "1"
[dependencies.sdiff]
optional = true
version = "0.1"
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.fakeenv]
default-features = false
features = ["fake"]
version = "0.1"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.time]
default-features = false
features = ["macros"]
version = "0.3"
[dev-dependencies.version-sync]
version = "0.9"
[[example]]
name = "assertion_function"
path = "examples/assertion_function.rs"
required-features = ["colored"]
[[example]]
name = "colored_diffs"
path = "examples/colored_diffs.rs"
required-features = ["colored"]
[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"
[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
[package]
authors = ["haraldmaida"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["development-tools::testing", "no-std"]
description = """
Fluent assertions for tests in Rust that are convenient to write and easy to extend.\r
"""
edition = "2021"
keywords = ["assertions", "testing", "fluent", "matchers"]
license = "MIT OR Apache-2.0"
name = "asserting"
readme = "README.md"
repository = "https://github.com/innoave/asserting"
rust-version = "1.78.0"
version = "0.11.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[profile.dev.package.fakeenv]
opt-level = 3
[profile.dev.package.proptest]
opt-level = 3
[profile.dev.package.version-sync]
opt-level = 3
[[test]]
name = "version_numbers"
path = "tests/version_numbers.rs"