trait-kit 0.4.2

Module Standard Interface and Capability Management Center — A lightweight Rust library that provides a standard interface for module definition and Kit capability management.
Documentation
[package]
name = "trait-kit"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
repository.workspace = true
license.workspace = true
description = "Module Standard Interface and Capability Management Center — A lightweight Rust library that provides a standard interface for module definition and Kit capability management."
keywords = ["module", "trait", "capability", "kit", "interface"]
categories = ["rust-patterns", "development-tools"]
readme = "README.md"

[workspace.package]
version = "0.4.2"
edition = "2024"
rust-version = "1.91"
authors = ["Kirky.X"]
repository = "https://github.com/Kirky-X/trait-kit.git"
license = "MIT"

[workspace.dependencies]
confers = { version = "0.5", default-features = false }
serde = { version = "1.0", features = ["derive"] }
trait-kit = { path = ".", default-features = false }

[dependencies]
confers = { workspace = true, optional = true }
serde = { workspace = true, optional = true }
serde_json = { version = "1.0", optional = true }
icu = { version = "2.2", optional = true }
writeable = { version = "0.6", optional = true }
sys-locale = { version = "0.3", optional = true }

[dev-dependencies]
thiserror = { version = "2.0", default-features = false }
serial_test = "4.0"
static_assertions = "1.1"
trybuild = "1.0"

[features]
default = []
# AsyncKit: Send + Sync async capability management (no extra deps, Rust native async).
async = []
# Config integration: Store + ModuleConfig trait + derive macro re-export.
confers = ["dep:confers", "dep:serde", "dep:serde_json"]
# Hot-reload subscription (maps to confers `watch` feature).
reload = ["confers", "confers/watch"]
# Encrypted config storage (maps to confers `encryption` feature).
encryption = ["confers", "confers/encryption"]
# Interface/implementation separation: register_as / resolve behind a feature gate.
interface = []
# Lifecycle hooks: on_ready (post-build) + on_shutdown (cleanup).
lifecycle = []
# Health check: per-module health status reporting.
health = []
# Scoped dependencies: per-request instance isolation.
scope = []
# Feature toggle: runtime module enable/disable via string-keyed HashMap.
toggle = []
# Build observability: observer callbacks during module construction.
observer = []
# Module decorators: post-build capability wrapping/enhancement.
decorator = []
# Graceful shutdown coordinator: phased shutdown with hook registration + timeout.
shutdown = []
# ICU4X locale-aware formatting (number/date/plural/collation).
# Without this feature, `tr()` and `I18nManager` still work (lightweight FTL translation).
i18n = ["dep:icu", "dep:writeable", "dep:sys-locale"]

[workspace]
resolver = "2"
members = [".", "examples"]
default-members = ["."]