bare-types 0.1.2

A zero-cost foundation for type-safe domain modeling in Rust. Implements the 'Parse, don't validate' philosophy to eliminate primitive obsession and ensure data integrity at the system boundary.
Documentation
[package]
name = "bare-types"
version = "0.1.2"
edition = "2024"
rust-version = "1.85.0"
authors = ["bare-rs contributors"]
description = "A zero-cost foundation for type-safe domain modeling in Rust. Implements the 'Parse, don't validate' philosophy to eliminate primitive obsession and ensure data integrity at the system boundary."
license = "MIT OR Apache-2.0"
repository = "https://github.com/bare-rs/bare-types"
homepage = "https://github.com/bare-rs/bare-types"
documentation = "https://docs.rs/bare-types"
readme = "README.md"
keywords = ["types", "newtype", "validation", "domain", "modeling"]
categories = ["data-structures", "development-tools", "no-std"]
include = ["src/**/*", "LICENSE-*", "README.md", "CHANGELOG.md", "NOTICE.md"]
exclude = [".github", "target", "*.orig", ".gitignore", ".editorconfig"]

[features]
default = []
std = []
net = ["dep:heapless"]
sys = ["dep:heapless", "net"]
serde = ["dep:serde", "heapless/serde"]
arbitrary = ["dep:arbitrary"]
zeroize = ["dep:zeroize"]

[dependencies]
heapless = { version = "0.9", optional = true, default-features = false }
serde = { version = "1.0", optional = true, default-features = false, features = ["derive"] }
arbitrary = { version = "1.3", optional = true, features = ["derive"] }
zeroize = { version = "1.8", optional = true, features = ["derive"] }

[dev-dependencies]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc"]

[badges]
maintenance = { status = "actively-developed" }

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(docsrs)'] }
missing_docs = "warn"

[lints.clippy]
all = "warn"
pedantic = "warn"
nursery = "warn"

# Project metadata for tooling
[package.metadata.bare]
# Design philosophy for AI and human contributors
design_rules = "CONTRIBUTING.md"
architecture = "ARCHITECTURE.md"
governance = "GOVERNANCE.md"
ai_friendly = true
strict_linting = true