[workspace] resolver = "2" members = ["derive"] [workspace.package] license = "MIT OR Apache-2.0" repository = "https://github.com/martinohmann/field_access" edition = "2021" rust-version = "1.65.0" # MSRV include = [ "build.rs", "src/**/*", "Cargo.toml", "Cargo.lock", "LICENSE*", "README.md", "benches/**/*", "examples/**/*" ] [package] name = "field_access" version = "0.1.11" description = "Dynamically access struct fields" documentation = "https://docs.rs/field_access/" categories = ["data-structures"] keywords = ["struct", "field", "access", "field-access"] repository.workspace = true license.workspace = true edition.workspace = true rust-version.workspace = true include.workspace = true [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [features] default = ["alloc", "derive"] alloc = [] derive = ["field_access_derive"] [dependencies] field_access_derive = { version = "0.1.11", path = "derive", optional = true } paste = "1.0.15" [dev-dependencies] # Ensures that the `derive` feature is always enabled in integration and doc tests. field_access = { path = ".", default-features = false, features = ["derive"] } trybuild = { version = "1.0.101", features = ["diff"] }