component_model 0.15.0

Revolutionary type-safe component assignment for Rust. Build complex objects with zero boilerplate using derive macros and type-driven field setting. Perfect for configuration builders, fluent APIs, and object composition patterns.
Documentation
# 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 = "component_model"
version = "0.15.0"
authors = ["Kostiantyn Wandalen <wandalen@obox.systems>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Revolutionary type-safe component assignment for Rust. Build complex objects with zero boilerplate using derive macros and type-driven field setting. Perfect for configuration builders, fluent APIs, and object composition patterns.
"""
homepage = "https://github.com/Wandalen/wTools/tree/master/module/core/component_model"
documentation = "https://docs.rs/component_model"
readme = "readme.md"
keywords = [
    "builder-pattern",
    "type-safe",
    "zero-cost",
    "fluent-api",
    "configuration",
]
categories = [
    "rust-patterns",
    "development-tools",
    "api-bindings",
    "config",
]
license = "MIT"
repository = "https://github.com/Wandalen/wTools/tree/master/module/core/component_model"

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

[features]
default = [
    "enabled",
    "full",
]
derive_component_assign = [
    "component_model_meta/derive_component_assign",
    "types_component_assign",
]
derive_component_from = ["component_model_meta/derive_component_from"]
derive_component_model = [
    "component_model_meta/derive_component_model",
    "derive_component_assign",
    "derive_components_assign",
    "derive_component_from",
    "derive_from_components",
]
derive_components = [
    "component_model_meta/derive_components",
    "derive_component_assign",
    "derive_components_assign",
    "derive_component_from",
    "derive_from_components",
]
derive_components_assign = [
    "derive_component_assign",
    "component_model_meta/derive_components_assign",
]
derive_from_components = ["component_model_meta/derive_from_components"]
enabled = [
    "component_model_meta/enabled",
    "component_model_types/enabled",
]
full = [
    "enabled",
    "derive_component_model",
    "derive_components",
    "derive_component_from",
    "derive_component_assign",
    "derive_components_assign",
    "derive_from_components",
    "types_component_assign",
]
no_std = [
    "component_model_types/no_std",
    "collection_tools/no_std",
]
types_component_assign = ["component_model_types/types_component_assign"]
use_alloc = [
    "no_std",
    "component_model_types/use_alloc",
    "collection_tools/use_alloc",
]

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

[[example]]
name = "000_basic_assignment"
path = "examples/000_basic_assignment.rs"

[[example]]
name = "001_fluent_builder"
path = "examples/001_fluent_builder.rs"

[[example]]
name = "002_multiple_components"
path = "examples/002_multiple_components.rs"

[[example]]
name = "003_component_from"
path = "examples/003_component_from.rs"

[[example]]
name = "004_working_example"
path = "examples/004_working_example.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.component_model_meta]
version = "~0.15.0"
optional = true
default-features = false

[dependencies.component_model_types]
version = "~0.23.0"
optional = true
default-features = false

[dev-dependencies.collection_tools]
version = "~0.36.0"
features = ["collection_constructors"]
default-features = false

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

[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"))']