[package]
name = "wopt"
version = "0.2.2"
edition = "2024"
license = "MIT"
repository = "https://github.com/splurf/wopt"
description = "A procedural macro that automatically generates an Option-wrapped version of a struct, reducing boilerplate for optional updates."
keywords = ["proc-macro", "derive", "option", "struct", "automation"]
categories = ["rust-patterns", "data-structures"]
exclude = [".github/", ".gitignore", "LICENSE", "tests/"]
[lib]
proc-macro = true
[dependencies]
bf2s = "0.1.0"
convert_case = "0.8.0"
enum-unit = { version = "0.2.3", features = ["bitflags"], optional = true }
enum-unit-core = { version = "0.1.1", optional = true }
quote = "1.0.40"
rkyv = { version = "0.8.10", features = ["unaligned"], optional = true }
syn = { version = "2.0.101", features = ["derive", "parsing", "proc-macro"] }
[dev-dependencies]
bitflags = "2.9.0"
[features]
rkyv = ["dep:enum-unit", "dep:enum-unit-core", "dep:rkyv"]
[profile.release]
lto = true
codegen-units = 1