[package]
edition = "2024"
rust-version = "1.85"
name = "borrowize"
version = "0.3.0"
authors = ["Lars Kroll <bathtor@googlemail.com>"]
build = false
include = [
"/Cargo.toml",
"/README.md",
"/LICENSE-*",
"/src/**",
"/tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive borrowed view structs from owned Rust structs."
documentation = "https://docs.rs/borrowize"
readme = "README.md"
keywords = [
"derive",
"borrow",
"view",
"proc-macro",
]
categories = [
"development-tools",
"rust-patterns",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Bathtor/borrowize"
[lib]
name = "borrowize"
path = "src/lib.rs"
proc-macro = true
[[test]]
name = "compile_fail"
path = "tests/compile_fail.rs"
[[test]]
name = "view"
path = "tests/view.rs"
[dependencies.nom]
version = "8"
[dependencies.proc-macro2]
version = "1"
[dependencies.quote]
version = "1"
[dependencies.syn]
version = "2"
features = [
"full",
"visit-mut",
]
[dev-dependencies.trybuild]
version = "1"