[package] name = "partially" version = "0.2.1" edition = "2021" license = "MIT OR Apache-2.0" description = "Provides the Partial trait, and an optional macro to mirror a struct, wrapping each field in an Option" readme = "../../README.md" authors = ["Ben Greenier "] keywords = ["struct", "field", "optional", "partial"] documentation = "https://docs.rs/partially" categories = ["rust-patterns"] [package.metadata."docs.rs"] all-features = true [features] default = ["std"] # Enables features that depend on the rust standard library # Note: There currently aren't any features that fall into this category std = [] # Enables the derive macro derive = ["dep:partially_derive"] [dev-dependencies] serde = { version = "1.0.190", features = ["derive"] } serde_json = "1.0.108" # Causes `cargo test` to include the derive feature # without specifying it on the command line partially = { path = ".", features = ["derive"] } [dependencies] partially_derive = { version = "0.2.1", path = "../partially_derive", optional = true }