bare-types 0.1.4

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
# 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 = "2024"
rust-version = "1.85.0"
name = "bare-types"
version = "0.1.4"
authors = ["bare-rs contributors"]
build = false
exclude = [
    ".github",
    "target",
    "*.orig",
    ".gitignore",
    ".editorconfig",
]
include = [
    "src/**/*",
    "LICENSE-*",
    "README.md",
    "CHANGELOG.md",
    "NOTICE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
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."
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",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/bare-rs/bare-types"

[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",
]

[package.metadata.bare]
design_rules = "CONTRIBUTING.md"
architecture = "ARCHITECTURE.md"
governance = "GOVERNANCE.md"
ai_friendly = true
strict_linting = true

[badges.maintenance]
status = "actively-developed"

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

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

[dependencies.arbitrary]
version = "1.3"
features = ["derive"]
optional = true

[dependencies.heapless]
version = "0.9"
optional = true
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
default-features = false

[dependencies.zeroize]
version = "1.8"
features = ["derive"]
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

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

[lints.rust]
missing_docs = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]