| 1 | [package] |
| 2 | name = "canvas" |
| 3 | version = "0.1.0" |
| 4 | edition = "2024" |
| 5 | publish = false |
| 6 | |
| 7 | [features] |
| 8 | gpu = ["draw/render", "dep:color_quant", "dep:image", "dep:png", "dep:resvg", "dep:sha2"] |
| 9 | # How a page responds to input and presents itself to assistive technology. |
| 10 | interaction = ["gpu", "dep:accesskit"] |
| 11 | # Pages printed as PDF, as OneNote prints them. |
| 12 | pdf = ["interaction", "draw/pdf"] |
| 13 | |
| 14 | [dependencies] |
| 15 | draw = { path = "../draw", default-features = false } |
| 16 | onestore = { path = "../onestore" } |
| 17 | parley.workspace = true |
| 18 | serde = { version = "1.0.229", features = ["derive"] } |
| 19 | serde_json = "1.0.151" |
| 20 | icu_normalizer = "2.3" |
| 21 | miniz_oxide = "0.8" |
| 22 | skrifa = "0.44.0" |
| 23 | # std's clock where there is one; the browser's on wasm32-unknown-unknown, whose std has none. |
| 24 | web-time = "1.1" |
| 25 | |
| 26 | accesskit = { version = "0.25.0", optional = true } |
| 27 | color_quant = { version = "1.1", optional = true } |
| 28 | image = { version = "0.25", default-features = false, features = ["jpeg", "png"], optional = true } |
| 29 | png = { version = "0.18", optional = true } |
| 30 | resvg = { version = "0.48.1", default-features = false, optional = true } |
| 31 | sha2 = { version = "0.11", optional = true } |
| 32 | |
| 33 | [[bin]] |
| 34 | name = "layout-probe" |
| 35 | path = "src/bin/layout_probe.rs" |
| 36 | |
| 37 | [[bin]] |
| 38 | name = "page-probe" |
| 39 | path = "src/bin/page_probe.rs" |
| 40 | |
| 41 | [dev-dependencies] |
| 42 | draw = { path = "../draw", features = ["wgpu"] } |
| 43 | accesskit_consumer = "0.39.0" |
| 44 | pollster = "0.4" |
| 45 | wgpu.workspace = true |
| 46 | |
| 47 | [build-dependencies] |
| 48 | miniz_oxide = "0.8" |
| 49 | |
| 50 | [[example]] |
| 51 | name = "render_page" |
| 52 | required-features = ["gpu"] |
| 53 | |
| 54 | [[example]] |
| 55 | name = "reading_inventory" |
| 56 | required-features = ["gpu"] |
| 57 | |
| 58 | [[example]] |
| 59 | name = "print_pdf" |
| 60 | required-features = ["pdf"] |