| 6 | # include/twidget_blitz.h, built by build-apple.sh from the demo's Xcode |
| 7 | # project and by desktop/CMakeLists.txt). The same C ABI, built for |
| 8 | # wasm32-unknown-unknown and post-processed by wasm-bindgen (only web-time |
| 9 | # needs it), is the web prototype's renderer (scripts/build-blitz-web.ts, |
| 10 | # src/host/blitz-renderer.ts); browsers expose no system fonts to wasm, so |
| 11 | # that build bundles assets/DejaVuSans.woff2. See docs/blitz-experiment.md. |
| 12 | [package] |
| 13 | name = "twidget-blitz" |
| 14 | version = "0.1.0" |
| 15 | edition = "2021" |
| 16 | publish = false |
| 17 |
| 18 | [lib] |
| 19 | name = "twidget_blitz" |
| 20 | crate-type = ["cdylib", "staticlib"] |
| 21 |
| 22 | [dependencies] |
| 23 | blitz-dom = { git = "https://github.com/DioxusLabs/blitz", rev = "c351a46883b4069c051f51029b902719062b95cd", default-features = false, features = ["svg", "system-fonts", "custom-widget", "woff"] } |
| 24 | blitz-paint = { git = "https://github.com/DioxusLabs/blitz", rev = "c351a46883b4069c051f51029b902719062b95cd", default-features = false, features = ["svg", "custom-widget"] } |
| 25 | blitz-traits = { git = "https://github.com/DioxusLabs/blitz", rev = "c351a46883b4069c051f51029b902719062b95cd" } |
| 26 | anyrender = "0.14" |
| 27 | anyrender_vello_cpu = "0.18" |
| 28 | # anyrender_vello_cpu leaves vello_cpu's `png` feature off; Apple Color Emoji is sbix PNG bitmaps and |
| 29 | # glifo skips them silently without it (feature unification turns it on for the shared dependency). |
| 30 | vello_cpu = { version = "0.3", features = ["png"] } |
| 31 | peniko = "0.6" |
| 32 | parley = "0.12" |
| 33 | kurbo = "0.13" |
| 34 | serde = { version = "1", features = ["derive"] } |
| 35 | serde_json = "1" |
| 36 | data-url = "0.3" |
| 37 | log = "0.4" |
| 38 | # The CoreGraphics and display-list backends (src/cg.rs, src/dl.rs) read face names and variation axes from the font bytes. |
| 39 | skrifa = "0.44" |
| 40 |
| 41 | [target.'cfg(target_os = "android")'.dependencies] |
| 42 | jni = "0.21" |
| 43 | android_logger = "0.15" |
| 44 |
| 45 | [profile.release] |
| 46 | opt-level = 3 |
| 47 | lto = "thin" |
| 48 | codegen-units = 4 |
| 49 | debug = false |
| 50 | strip = true |
| 51 |
| 52 | # The web build: smaller over the wire, one codegen unit for LTO (slower to build). |
| 53 | [profile.wasm-release] |
| 54 | inherits = "release" |
| 55 | opt-level = "s" |
| 56 | lto = true |
| 57 | codegen-units = 1 |
| 58 | panic = "abort" |
| 59 |
| 60 | [profile.dev] |
| 61 | opt-level = 2 |
| 62 |
| 63 |