slint/helper_crates/const-field-offset/macro/Cargo.toml
2024-03-14 08:52:09 +01:00

28 lines
706 B
TOML

# Copyright © SixtyFPS GmbH <info@slint.dev>
# SPDX-License-Identifier: MIT OR Apache-2.0
[package]
name = "const-field-offset-macro"
version = "0.1.5"
authors = ["Slint Developers <info@slint.dev>"]
edition = "2021"
license = "MIT OR Apache-2.0"
description = "Procedural macro to generate constant field offset from repr(c) struct"
repository = "https://github.com/slint-ui/slint"
homepage = "https://slint.dev"
[lib]
path = "macro.rs"
proc-macro = true
[features]
field-offset-trait = []
[dependencies]
syn = { version = "2.0", features = ["derive"] }
quote = "1.0"
proc-macro2 = "1.0"
[dev-dependencies]
memoffset = "0.9.0"
const-field-offset = { path = "..", features = ["field-offset-trait"] }