[package]
edition = "2024"
name = "padding-struct"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A procedural macro for automatically adding explicit padding fields to #[repr(C)] structs"
readme = "README.md"
license = "MPL-2.0"
repository = "https://github.com/asterinas/asterinas"
resolver = "2"
[lib]
name = "padding_struct"
path = "src/lib.rs"
proc-macro = true
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[dependencies.proc-macro2]
version = "1.0.95"
features = ["span-locations"]
[dependencies.quote]
version = "1.0.35"
[dependencies.syn]
version = "2.0.77"
features = [
"full",
"parsing",
"fold",
]
[dev-dependencies.zerocopy]
version = "0.8.34"
features = ["derive"]
[lints.clippy]
allow_attributes = "warn"
[lints.rust]
unsafe_op_in_unsafe_fn = "warn"
[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0
check-cfg = ["cfg(ktest)"]