The pass condition for android-view backend (RUST.md's I2) is that the tabs example itself, text field included, runs there -- not a second demo with the same shape. tabs-ui/src/lib.rs is that widget tree moved out of examples/tabs/main.rs into a small crate generic over `Rsc: HasEvents` and `Rsc::State: FocusHost`, so the winit example and the upcoming android-app cdylib both call the same `build()` rather than carrying two copies. Nothing in it names either backend. Verified: the winit tabs example still renders pixel-identically via run-headless.sh (27266 bytes, unchanged), tabs-ui cross-compiles clean for x86_64-linux-android alongside iris, and host build/clippy/fmt/ tests are unaffected. Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
14 lines
431 B
TOML
14 lines
431 B
TOML
[package]
|
|
name = "tabs-ui"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
# The tabs example's widget tree, factored out of iris/examples/tabs/main.rs
|
|
# so it can be built once and driven by either backend: the winit example
|
|
# binary, and iris/android-app's cdylib. Its own crate rather than a pub
|
|
# module of `iris` because it is demo content, not library surface -- see
|
|
# RUST.md's I2.
|
|
|
|
[dependencies]
|
|
iris = { path = ".." }
|