1# Copyright © SixtyFPS GmbH <info@slint.dev>
2# SPDX-License-Identifier: MIT OR Apache-2.0
3
4[package]
5name = "const-field-offset-macro"
6version = "0.1.5"
7authors = ["Slint Developers <info@slint.dev>"]
8edition = "2021"
9license = "MIT OR Apache-2.0"
10description = "Procedural macro to generate constant field offset from repr(c) struct"
11repository = "https://github.com/slint-ui/slint"
12homepage = "https://slint.dev"
13
14[lib]
15path = "macro.rs"
16proc-macro = true
17
18[features]
19field-offset-trait = []
20
21[dependencies]
22syn = { version = "2.0", features = ["derive"] }
23quote = "1.0"
24proc-macro2 = "1.0"
25
26[dev-dependencies]
27memoffset = "0.9.0"
28const-field-offset = { path = "..", features = ["field-offset-trait"] }
29