[package]
edition = "2021"
name = "component_model_meta"
version = "0.14.0"
authors = ["Kostiantyn Wandalen <wandalen@obox.systems>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A flexible implementation of the Builder pattern supporting nested builders and collection-specific subcomponent_models. Implementation of its derive macro. Should not be used independently, instead use module::component_model which relies on the module.
"""
homepage = "https://github.com/Wandalen/wTools/tree/master/module/core/component_model_meta"
documentation = "https://docs.rs/component_model_meta"
readme = "readme.md"
keywords = [
"fundamental",
"general-purpose",
"builder-pattern",
]
categories = [
"algorithms",
"development-tools",
]
license = "MIT"
repository = "https://github.com/Wandalen/wTools/tree/master/module/core/component_model_meta"
[package.metadata.docs.rs]
features = ["full"]
all-features = false
[features]
default = [
"enabled",
"full",
]
derive_component_assign = []
derive_component_from = []
derive_component_model = ["convert_case"]
derive_components = [
"derive_component_assign",
"derive_components_assign",
"derive_component_from",
"derive_from_components",
]
derive_components_assign = [
"derive_component_assign",
"convert_case",
]
derive_from_components = []
enabled = [
"macro_tools/enabled",
"component_model_types/enabled",
]
full = [
"enabled",
"derive_component_model",
"derive_components",
"derive_component_from",
"derive_component_assign",
"derive_components_assign",
"derive_from_components",
]
[lib]
name = "component_model_meta"
path = "src/lib.rs"
proc-macro = true
[[test]]
name = "assign_duplicate_types_bug"
path = "tests/assign_duplicate_types_bug.rs"
[[test]]
name = "component_from_duplicate_types_bug"
path = "tests/component_from_duplicate_types_bug.rs"
[[test]]
name = "component_from_generic_types_bug"
path = "tests/component_from_generic_types_bug.rs"
[[test]]
name = "smoke_test"
path = "tests/smoke_test.rs"
[dependencies.component_model_types]
version = "~0.21.0"
features = ["types_component_assign"]
optional = true
default-features = false
[dependencies.convert_case]
version = "0.6.0"
features = []
optional = true
default-features = false
[dependencies.macro_tools]
version = "~0.79.0"
features = [
"attr",
"diag",
"item_struct",
]
optional = true
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"))']