| 1 | [package] |
| 2 | name = "dpi" |
| 3 | version = "0.1.1" |
| 4 | description = "Types for handling UI scaling" |
| 5 | keywords = ["DPI" , "HiDPI" , "scale-factor" ] |
| 6 | categories = ["gui" ] |
| 7 | rust-version.workspace = true |
| 8 | repository.workspace = true |
| 9 | license.workspace = true |
| 10 | edition.workspace = true |
| 11 | |
| 12 | [features] |
| 13 | serde = ["dep:serde" ] |
| 14 | mint = ["dep:mint" ] |
| 15 | |
| 16 | [dependencies] |
| 17 | serde = { workspace = true, optional = true } |
| 18 | mint = { workspace = true, optional = true } |
| 19 | |
| 20 | [package.metadata.docs.rs] |
| 21 | features = ["serde" , "mint" ] |
| 22 | # These are all tested in CI |
| 23 | targets = [ |
| 24 | # Windows |
| 25 | "i686-pc-windows-msvc" , |
| 26 | "x86_64-pc-windows-msvc" , |
| 27 | # macOS |
| 28 | "x86_64-apple-darwin" , |
| 29 | # Unix (X11 & Wayland) |
| 30 | "i686-unknown-linux-gnu" , |
| 31 | "x86_64-unknown-linux-gnu" , |
| 32 | # iOS |
| 33 | "x86_64-apple-ios" , |
| 34 | # Android |
| 35 | "aarch64-linux-android" , |
| 36 | # Web |
| 37 | "wasm32-unknown-unknown" , |
| 38 | ] |
| 39 | rustdoc-args = ["--cfg" , "docsrs" ] |
| 40 | |