[package]
name = "bty"
version = "0.2.0"
edition = "2021"
authors = ["Luiz Felipe Gonçalves <luiz@luizfelipe.dev>"]
description = "Streamlined definition and usage of branded types in Rust"
documentation = "https://docs.rs/bty"
repository = "https://github.com/lffg/bty"
categories = ["rust-patterns"]
keywords = ["branded-types", "brand", "type-tag", "tag", "safety"]
license = "MIT"
rust-version = "1.60"
readme = "README.md"
[features]
default = ["serde"]
serde = ["dep:serde"]
sqlx = ["dep:sqlx-core"]
uuid = ["dep:uuid"]
"uuid-v4" = ["uuid", "uuid/v4"]
"uuid-v7" = ["uuid", "uuid/v7"]
[dependencies]
paste = "1"
serde = { version = "1", optional = true, default-features = false }
uuid = { version = "1", optional = true, default-features = false }
sqlx-core = { version = "0.6", optional = true }
[dev-dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"