[package]
edition = "2021"
name = "struct-mapper"
version = "0.2.0"
authors = ["Deendayal Kumawat <deendayal_kumawat@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive macro to auto-generate From<Source> for Target by mapping struct fields — zero boilerplate struct conversion"
homepage = "https://github.com/ddsha441981/struct-mapper"
documentation = "https://docs.rs/struct-mapper"
readme = "README.md"
keywords = [
"derive",
"macro",
"struct",
"mapping",
"from",
]
categories = [
"rust-patterns",
"development-tools::procedural-macro-helpers",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ddsha441981/struct-mapper"
[package.metadata.docs.rs]
rustdoc-args = [
"--html-in-header",
"docs/header.html",
"--default-theme",
"ayu",
]
[lib]
name = "struct_mapper"
path = "src/lib.rs"
[[example]]
name = "advanced_mapping"
path = "examples/advanced_mapping.rs"
[[example]]
name = "basic_mapping"
path = "examples/basic_mapping.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "try_from_basic"
path = "tests/try_from_basic.rs"
[[test]]
name = "try_from_errors"
path = "tests/try_from_errors.rs"
[[test]]
name = "try_from_mixed"
path = "tests/try_from_mixed.rs"
[[test]]
name = "try_from_try_into"
path = "tests/try_from_try_into.rs"
[[test]]
name = "try_from_try_with"
path = "tests/try_from_try_with.rs"
[dependencies.struct-mapper-derive]
version = "0.2.0"
[dev-dependencies.trybuild]
version = "1"