[go: up one dir, main page]

bon 2.1.1

Generate builders for everything!
Documentation
[package]
name = "bon"

description = "Generate builders for everything!"

categories = [
  "rust-patterns",
  "data-structures",
  "asynchronous",
  "no-std",
  "no-std::no-alloc",
]
keywords = ["builder", "macro", "derive", "constructor", "setter"]

edition      = { workspace = true }
homepage     = { workspace = true }
license      = { workspace = true }
repository   = { workspace = true }
rust-version = { workspace = true }
version      = { workspace = true }

[package.metadata.docs.rs]
all-features = true

# Generate clickable links in the source code view in the docs
rustdoc-args = ["--generate-link-to-definition"]

# We don't need the docs to be built for every first-tier target.
# This crate is not platform-specific.
targets = ["x86_64-unknown-linux-gnu"]

[lints]
workspace = true

[dependencies]
# The version of the macro crate is pinned to a specific one because the code
# generated by the macros uses private APIs from the runtime crate that are not
# guarded by semver.
bon-macros  = { path = "../bon-macros", version = "=2.1.1" }
rustversion = "1.0"

[dev-dependencies]
expect-test = "1.5"
tokio       = { version = "1.0", features = ["macros", "rt-multi-thread"] }
trybuild    = "1.0"

[features]
alloc   = []
default = ["std"]
std     = ["alloc"]