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