[dependencies.former_meta]
default-features = false
version = "~2.26.0"
[dependencies.former_types]
default-features = false
version = "~2.23.0"
[dev-dependencies.collection_tools]
default-features = false
features = ["collection_constructors"]
version = "~0.23.0"
[dev-dependencies.test_tools]
features = ["full"]
version = "~0.16.0"
[[example]]
name = "basic_test"
path = "examples/basic_test.rs"
[[example]]
name = "debug_lifetime"
path = "examples/debug_lifetime.rs"
[[example]]
name = "former_collection_hashmap"
path = "examples/former_collection_hashmap.rs"
[[example]]
name = "former_collection_hashset"
path = "examples/former_collection_hashset.rs"
[[example]]
name = "former_collection_vector"
path = "examples/former_collection_vector.rs"
[[example]]
name = "former_component_from"
path = "examples/former_component_from.rs"
[[example]]
name = "former_custom_collection"
path = "examples/former_custom_collection.rs"
[[example]]
name = "former_custom_defaults"
path = "examples/former_custom_defaults.rs"
[[example]]
name = "former_custom_definition"
path = "examples/former_custom_definition.rs"
[[example]]
name = "former_custom_mutator"
path = "examples/former_custom_mutator.rs"
[[example]]
name = "former_custom_scalar_setter"
path = "examples/former_custom_scalar_setter.rs"
[[example]]
name = "former_custom_setter"
path = "examples/former_custom_setter.rs"
[[example]]
name = "former_custom_setter_overriden"
path = "examples/former_custom_setter_overriden.rs"
[[example]]
name = "former_custom_subform_collection"
path = "examples/former_custom_subform_collection.rs"
[[example]]
name = "former_custom_subform_entry"
path = "examples/former_custom_subform_entry.rs"
[[example]]
name = "former_custom_subform_entry2"
path = "examples/former_custom_subform_entry2.rs"
[[example]]
name = "former_custom_subform_scalar"
path = "examples/former_custom_subform_scalar.rs"
[[example]]
name = "former_debug"
path = "examples/former_debug.rs"
[[example]]
name = "former_many_fields"
path = "examples/former_many_fields.rs"
[[example]]
name = "former_trivial"
path = "examples/former_trivial.rs"
[[example]]
name = "former_trivial_expaned"
path = "examples/former_trivial_expaned.rs"
[[example]]
name = "lifetime_test"
path = "examples/lifetime_test.rs"
[[example]]
name = "lifetime_test2"
path = "examples/lifetime_test2.rs"
[[example]]
name = "minimal_lifetime_test"
path = "examples/minimal_lifetime_test.rs"
[features]
default = ["enabled", "derive_former", "types_former"]
derive_former = ["former_meta/derive_former", "types_former"]
enabled = ["former_meta/enabled", "former_types/enabled"]
former_diagnostics_print_generated = ["former_meta/former_diagnostics_print_generated"]
full = ["default", "performance"]
no_std = ["former_types/no_std", "collection_tools/no_std"]
performance = ["former_meta/performance"]
types_former = ["former_types/types_former"]
use_alloc = ["no_std", "former_types/use_alloc", "collection_tools/use_alloc"]
[lib]
name = "former"
path = "src/lib.rs"
[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"
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"
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
[package]
authors = ["Kostiantyn Wandalen <wandalen@obox.systems>", "Dmytro Kryvoruchko <dmytro.kr@obox.systems>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["algorithms", "development-tools"]
description = """
A flexible implementation of the Builder pattern supporting nested builders and collection-specific subformers. Simplify the construction of complex objects.
"""
documentation = "https://docs.rs/former"
edition = "2021"
homepage = "https://github.com/Wandalen/wTools/tree/master/module/core/former"
keywords = ["fundamental", "general-purpose", "builder-pattern"]
license = "MIT"
name = "former"
readme = "readme.md"
repository = "https://github.com/Wandalen/wTools/tree/master/module/core/former"
version = "2.27.0"
[package.metadata.docs.rs]
all-features = false
features = ["full"]
[[test]]
name = "baseline_lifetime_test"
path = "tests/baseline_lifetime_test.rs"
[[test]]
name = "debug_test"
path = "tests/debug_test.rs"
[[test]]
name = "experimental"
path = "tests/experimental.rs"
[[test]]
name = "minimal_derive_test"
path = "tests/minimal_derive_test.rs"
[[test]]
name = "minimal_proc_macro_test"
path = "tests/minimal_proc_macro_test.rs"
[[test]]
name = "simple_lifetime_test"
path = "tests/simple_lifetime_test.rs"
[[test]]
name = "smoke_test"
path = "tests/smoke_test.rs"
[[test]]
name = "test_minimal_derive"
path = "tests/test_minimal_derive.rs"
[[test]]
name = "tests"
path = "tests/tests.rs"
[[test]]
name = "type_only_test"
path = "tests/type_only_test.rs"