# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "smoothy"
version = "0.8.2"
authors = ["Open Schnick"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Write smooth assertions in a fluent and human readable way"
homepage = "https://github.com/open-schnick/smoothy"
documentation = "https://docs.rs/smoothy"
readme = "README.md"
keywords = [
    "testing",
    "assert",
    "assertions",
    "fluent",
    "tests",
]
categories = ["development-tools::testing"]
license = "MIT"
repository = "https://github.com/open-schnick/smoothy"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = [
    "regex",
    "json",
]
json = ["dep:serde_json"]
regex = ["dep:regex"]

[lib]
name = "smoothy"
path = "src/lib.rs"

[[test]]
name = "smoothy"
path = "tests/smoothy/main.rs"

[dependencies.pretty_assertions]
version = "1"

[dependencies.regex]
version = "1"
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[lints.clippy]
as_conversions = "deny"
as_underscore = "deny"
clone_on_ref_ptr = "deny"
dbg_macro = "deny"
deref_by_slicing = "deny"
doc_markdown = "deny"
else_if_without_else = "deny"
empty_drop = "deny"
empty_structs_with_brackets = "deny"
error_impl_error = "deny"
expect_used = "deny"
format_push_string = "deny"
if_then_some_else_none = "deny"
ignored_unit_patterns = "deny"
indexing_slicing = "deny"
integer_division = "deny"
let_underscore_must_use = "deny"
let_underscore_untyped = "deny"
mem_forget = "deny"
missing_assert_message = "deny"
missing_errors_doc = "deny"
missing_panics_doc = "deny"
mixed_read_write_in_expression = "deny"
mod_module_files = "deny"
module_name_repetitions = "allow"
multiple_inherent_impl = "deny"
needless_pass_by_value = "deny"
needless_raw_strings = "deny"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
pub_without_shorthand = "deny"
redundant_pub_crate = "deny"
same_name_method = "deny"
semicolon_outside_block = "deny"
shadow_reuse = "deny"
string_add = "deny"
string_slice = "deny"
string_to_string = "deny"
tests_outside_test_module = "allow"
todo = "deny"
try_err = "deny"
unimplemented = "deny"
unnecessary_self_imports = "deny"
unneeded_field_pattern = "deny"
unreachable = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
wildcard_enum_match_arm = "deny"

[lints.clippy.nursery]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
missing_docs = "deny"

[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_html_tags = "deny"
invalid_rust_codeblocks = "deny"
private_doc_tests = "warn"
private_intra_doc_links = "deny"
redundant_explicit_links = "deny"
unescaped_backticks = "deny"
