# 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 = "derive_tools"
version = "0.67.0"
authors = [
    "Kostiantyn Mysnyk <wandalen@obox.systems>",
    "Dmytro Kryvoruchko <dmytro.kr@obox.systems>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A collection of derive macros designed to enhance STD.
"""
homepage = "https://github.com/Wandalen/wTools/tree/master/module/core/derive_tools"
documentation = "https://docs.rs/derive_tools"
readme = "readme.md"
keywords = [
    "fundamental",
    "general-purpose",
]
categories = [
    "algorithms",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/Wandalen/wTools/tree/master/module/core/derive_tools"

[package.metadata.docs.rs]
features = ["full"]
all-features = false

[features]
default = [
    "enabled",
    "derive_variadic_from",
    "type_variadic_from",
    "derive_add_assign",
    "derive_add",
    "derive_as_mut",
    "derive_as_ref",
    "derive_constructor",
    "derive_deref",
    "derive_deref_mut",
    "derive_error",
    "derive_index",
    "derive_index_mut",
    "derive_into_iterator",
    "derive_mul_assign",
    "derive_mul",
    "derive_not",
    "derive_sum",
    "derive_try_into",
    "derive_is_variant",
    "derive_unwrap",
    "derive_into",
    "derive_display",
    "derive_from_str",
    "derive_clone_dyn",
    "derive_strum",
    "strum_phf",
    "derive_from",
    "derive_phantom",
]
derive_add = [
    "derive_more",
    "derive_more/std",
    "derive_more/add",
]
derive_add_assign = [
    "derive_more",
    "derive_more/std",
    "derive_more/add_assign",
]
derive_as_mut = ["derive_tools_meta/derive_as_mut"]
derive_as_ref = ["derive_tools_meta/derive_as_ref"]
derive_clone_dyn = ["clone_dyn/enabled"]
derive_constructor = [
    "derive_more",
    "derive_more/std",
    "derive_more/constructor",
]
derive_deref = ["derive_tools_meta/derive_deref"]
derive_deref_mut = ["derive_tools_meta/derive_deref_mut"]
derive_display = ["parse-display"]
derive_error = [
    "derive_more",
    "derive_more/std",
    "derive_more/error",
]
derive_from = ["derive_tools_meta/derive_from"]
derive_from_str = [
    "parse-display",
    "parse-display/std",
    "parse-display/regex",
]
derive_index = ["derive_tools_meta/derive_index"]
derive_index_mut = ["derive_tools_meta/derive_index_mut"]
derive_inner_from = ["derive_tools_meta/derive_inner_from"]
derive_into = [
    "derive_more",
    "derive_more/into",
]
derive_into_iterator = [
    "derive_more",
    "derive_more/std",
    "derive_more/into_iterator",
]
derive_is_variant = [
    "derive_more",
    "derive_more/is_variant",
]
derive_mul = [
    "derive_more",
    "derive_more/std",
    "derive_more/mul",
]
derive_mul_assign = [
    "derive_more",
    "derive_more/std",
    "derive_more/mul_assign",
]
derive_new = ["derive_tools_meta/derive_new"]
derive_not = ["derive_tools_meta/derive_not"]
derive_phantom = ["derive_tools_meta/derive_phantom"]
derive_strum = [
    "strum/std",
    "strum/derive",
    "strum/strum_macros",
]
derive_sum = [
    "derive_more",
    "derive_more/std",
    "derive_more/sum",
]
derive_try_into = [
    "derive_more",
    "derive_more/std",
    "derive_more/try_into",
]
derive_unwrap = [
    "derive_more",
    "derive_more/std",
    "derive_more/unwrap",
]
derive_variadic_from = [
    "type_variadic_from",
    "derive_tools_meta/derive_variadic_from",
    "variadic_from/derive_variadic_from",
]
diagnostics_compiletime_assertions = []
diagnostics_memory_layout = []
diagnostics_runtime_assertions = []
enabled = ["derive_tools_meta/enabled"]
full = [
    "enabled",
    "derive_variadic_from",
    "type_variadic_from",
    "derive_add_assign",
    "derive_add",
    "derive_as_mut",
    "derive_as_ref",
    "derive_constructor",
    "derive_deref",
    "derive_deref_mut",
    "derive_error",
    "derive_index",
    "derive_index_mut",
    "derive_into_iterator",
    "derive_mul_assign",
    "derive_mul",
    "derive_not",
    "derive_sum",
    "derive_try_into",
    "derive_is_variant",
    "derive_unwrap",
    "derive_into",
    "derive_display",
    "derive_from_str",
    "derive_clone_dyn",
    "derive_strum",
    "strum_phf",
    "derive_from",
    "derive_phantom",
]
no_std = []
parse_display = ["parse-display"]
strum_phf = [
    "strum/std",
    "strum/phf",
    "strum/strum_macros",
]
type_variadic_from = [
    "variadic_from/enabled",
    "variadic_from/type_variadic_from",
]
use_alloc = ["no_std"]

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

[[example]]
name = "derive_tools_trivial"
path = "examples/derive_tools_trivial.rs"

[[test]]
name = "example_negative_number_parsing_bug"
path = "tests/example_negative_number_parsing_bug.rs"

[[test]]
name = "smoke_test"
path = "tests/smoke_test.rs"

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

[dependencies.clone_dyn]
version = "~0.63.0"
features = [
    "clone_dyn_types",
    "derive_clone_dyn",
]
optional = true
default-features = false

[dependencies.derive_more]
version = "~1.0.0-beta.6"
optional = true
default-features = false

[dependencies.derive_tools_meta]
version = "~0.65.0"
features = []
optional = true
default-features = false

[dependencies.parse-display]
version = "~0.8.2"
optional = true
default-features = false

[dependencies.strum]
version = "~0.25"
optional = true
default-features = false

[dependencies.variadic_from]
version = "~0.61.0"
features = []
optional = true
default-features = false

[dev-dependencies.derive_tools_meta]
version = "~0.65.0"
features = ["enabled"]
default-features = false

[dev-dependencies.macro_tools]
version = "~0.87.0"
features = [
    "enabled",
    "diag",
    "attr",
]
default-features = false

[dev-dependencies.test_tools]
version = "~0.16.0"
features = [
    "full",
    "standalone_build",
]

[build-dependencies.cfg_aliases]
version = "0.1.1"

[lints.clippy]
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
cast_precision_loss = "allow"
doc_include_without_cfg = "warn"
implicit_return = "allow"
inline_always = "allow"
items_after_statements = "allow"
large_enum_variant = "allow"
missing_docs_in_private_items = "allow"
missing_inline_in_public_items = "allow"
mod_module_files = "allow"
module_name_repetitions = "allow"
pub_use = "allow"
question_mark_used = "allow"
single_call_fn = "allow"
std_instead_of_alloc = "allow"
std_instead_of_core = "warn"
struct_excessive_bools = "allow"
undocumented_unsafe_blocks = "deny"
wildcard_imports = "allow"

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

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe-code = "deny"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("diagnostics_runtime_assertions", "diagnostics_compiletime_assertions", "diagnostics_memory_layout"))']
