`cargo upgrade --incompatible` in each of the nine workspaces here, then `cargo update`. Most of it is version numbers only -- log, winit, bytemuck, image, tokio, libc, android_logger, proc-macro2/quote, and syn 2 -> 3 with no source change. The wg-app-link submodule's twelve dependencies were already at their latest majors, so that shared repository needs no commit. wgpu 28 -> 30 (and pollster 0.4 -> 1.0) is the part with API in it: bind-group and vertex-buffer slots are optional now, `Instance::new` takes an owned `InstanceDescriptor` carrying the platform's display handle (the desktop passes winit's, since wgpu wants it for a GLES surface presented on Wayland -- which is what this machine's fallback produces; Android passes none), `RequestAdapterOptions` and `SurfaceConfiguration` each gained a field kept at its historical value, `get_current_texture` answers with an enum instead of a Result, and `present` moved onto the queue. The one that would not have failed at compile time: naga now requires `@interpolate(flat)` on integer varyings, so `shader.wgsl`'s three u32 outputs were rejected at `create_shader_module` -- an abort on the device rather than a build error. Flat is the only interpolation an integer can have, so this states what the hardware already did. Checked: build, clippy, fmt and tests in all nine workspaces (iris 196, server 160); layer 2 screenshots on Vulkan and on force-gles, identical; the arm64 release APK builds and the x86_64 bench ran a full fling/stream/type/keyboard cycle on the emulator's GLES adapter. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
169 lines
7.4 KiB
TOML
169 lines
7.4 KiB
TOML
[package]
|
|
name = "iris"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
iris-core = { workspace = true }
|
|
iris-macro = { workspace = true }
|
|
parley = { workspace = true }
|
|
swash = { workspace = true }
|
|
pollster = { workspace = true }
|
|
wgpu = { workspace = true }
|
|
image = { workspace = true }
|
|
accesskit = { workspace = true }
|
|
tokio = { workspace = true, features = ["sync", "rt", "rt-multi-thread"] }
|
|
# For diagnostics visible through android_logger (or whatever logger the
|
|
# app crate installs) -- this crate never installs one itself. Not in the
|
|
# android-only block below any more: the lines that matter most are in
|
|
# shared widget code, which the host backend compiles too.
|
|
log = "0.4.34"
|
|
|
|
# winit everywhere except Android; android-view (below) is what stands in
|
|
# for it there. Both backends live in this crate (see `src/android/mod.rs`'s
|
|
# doc comment) but are never compiled together: winit's own Android support
|
|
# pulls in `android-activity`, which panics at compile time unless one of
|
|
# its own backend features is picked, and picking one is exactly what
|
|
# `iris-core` was kept free of (RUST.md's I0b). Confirmed by trying it
|
|
# 2026-09-05: `cargo ndk -t x86_64 -P 26 build -p iris` failed inside
|
|
# `android-activity` itself with "Either game-activity or native-activity
|
|
# must be enabled" before this split existed.
|
|
[target.'cfg(not(target_os = "android"))'.dependencies]
|
|
winit = { workspace = true }
|
|
arboard = { workspace = true, features = ["wayland-data-control"] }
|
|
# I4 (RUST.md): the desktop half of the AccessKit push, `winit`'s own
|
|
# adapter over `accesskit`. No pin needed the way android-view's rev is
|
|
# pinned -- this is an ordinary crates.io release with no local abort to
|
|
# track (that finding is Android-only, see below).
|
|
accesskit_winit = "0.34.0"
|
|
|
|
# Pinned to the exact commit RUST.md's E1 (2026-09-04) measured on this
|
|
# emulator -- real Vulkan rendering, a working `InputConnection`, and the
|
|
# accesskit-detach abort, all against this rev specifically. Advancing it
|
|
# wants re-running E1's checks, the same reason the nightly toolchain pin
|
|
# is dated rather than floating.
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
android-view = { git = "https://github.com/rust-mobile/android-view.git", rev = "bec6c62a96cef8239b0fd7fedeef9b184d02e3a1" }
|
|
# I4 (RUST.md): the Android half of the AccessKit push, over android-view's
|
|
# `AccessibilityNodeProvider`. **0.8.0 carries the same detach-abort E1
|
|
# found on 0.4.0** (the `State` enum still never returns to `Inactive`,
|
|
# and `send_completed_event` still unwraps a Java exception) -- advancing
|
|
# the version is not the fix, so pinning to a specific rev buys nothing
|
|
# here the way it does for android-view itself. `android/view.rs`'s
|
|
# `raise_if_enabled` is the mitigation, carried from E1.
|
|
accesskit_android = "0.8.0"
|
|
# Not re-exported by android-view (only `jni` and `ndk` are), and needed
|
|
# for `android/insets.rs`'s own id -> state map -- the same reason
|
|
# android-view's own `PEER_MAP` carries one.
|
|
send_wrapper = "0.6.0"
|
|
|
|
[features]
|
|
# RUST.md's I5 "Where iris's frame time goes" diagnosis: pins the
|
|
# `wgpu::Instance` to `Backends::GL` instead of `Backends::PRIMARY`, so one
|
|
# build can be measured on either backend. A compile-time feature rather
|
|
# than an env var because nothing on this machine can hand an env var to an
|
|
# already-launched Android process (there is no `am start` environment and
|
|
# no system-property reader here to add one).
|
|
#
|
|
# **Not needed to get GLES in the emulator**, whatever the history here
|
|
# says: the emulator's guest has no hardware Vulkan at all, so an ordinary
|
|
# build's runtime fallback lands on GLES by itself (docs/RUST.md, "What the
|
|
# emulator gives a GPU app"). Keeping the emulator on the same binary the
|
|
# phone runs is the point. What this feature is still for is forcing GLES
|
|
# on a machine that *does* have Vulkan -- the desktop -- which is why
|
|
# `default/render.rs` reads it too:
|
|
# ./run-headless.sh transcript --shot /tmp/x.png -- -p transcript-ui \
|
|
# --features iris/force-gles
|
|
force-gles = []
|
|
|
|
[dev-dependencies]
|
|
tokio = { workspace = true, features = ["sync", "rt", "rt-multi-thread", "time"] }
|
|
# The tabs example's widget tree. A dev-dependency cycle back to this
|
|
# package is fine -- cargo excludes dev-dependencies from the graph used
|
|
# to build the library itself, so this only matters for `--examples`.
|
|
tabs-ui = { path = "tabs-ui" }
|
|
# `tests/mask_sdf.rs` only: the grid it hands the GPU and the coverages it
|
|
# reads back. wgpu and pollster are ordinary dependencies already.
|
|
bytemuck = { workspace = true }
|
|
|
|
# Plain Instant-timed binaries, not criterion -- see benches/message_list.rs's
|
|
# header for why. `harness = false` opts out of the unstable `#[bench]`
|
|
# test-crate harness cargo would otherwise want, in favour of an ordinary
|
|
# `fn main()`.
|
|
[[bench]]
|
|
name = "message_list"
|
|
harness = false
|
|
|
|
[workspace]
|
|
members = [
|
|
"core",
|
|
"macro",
|
|
"tabs-ui",
|
|
"transcript-ui",
|
|
"transcript-fixture",
|
|
"rig-input",
|
|
"desktop-app",
|
|
]
|
|
# android-app pulls in android-view, which needs the NDK sysroot to link
|
|
# -- excluded so `cargo build --workspace --all-targets` on the host stays
|
|
# buildable. Cross-compile it from its own directory (its own single-crate
|
|
# workspace, since it has no `[workspace]` table of its own and this
|
|
# exclusion stops it inheriting this one): `cd android-app && cargo ndk
|
|
# -t x86_64 -P 29 build`.
|
|
exclude = ["android-app"]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
# Debug info is the reason a `cargo test --workspace` here was taking half
|
|
# an hour, and it is worth the paragraph. Measured 2026-09-08: with rustc's
|
|
# default `debug = true`, linking this workspace's test binaries wrote
|
|
# **~54 GB** (one single test binary's linker wrote 16.9 GB) and left an
|
|
# **88 GB** `target/`. Eight test binaries each statically link the whole
|
|
# wgpu + naga + winit + parley graph, and at the default every one of them
|
|
# gets a full copy of that graph's DWARF written into it. On a btrfs at 83%
|
|
# full the linkers then sat in `handle_reserve_ticket` -- uninterruptible,
|
|
# waiting on space reservation -- at about 20 MB/s between them, which is
|
|
# what "the tests are slow" actually was. Not CPU: the machine was 87% idle
|
|
# throughout.
|
|
#
|
|
# `line-tables-only` keeps what is actually read from a backtrace -- the
|
|
# file and line of every frame, which is what a panicking test prints and
|
|
# what gdb needs to name the frames of a segfault. What it gives up is
|
|
# inspecting variables in a debugger; when that is wanted, ask for it on
|
|
# the command line for that one run rather than paying for it on every
|
|
# build:
|
|
#
|
|
# RUSTFLAGS="-C debuginfo=2" cargo test -p iris --test whatever
|
|
[profile.dev]
|
|
debug = "line-tables-only"
|
|
|
|
# The tests are what this is really for; `cargo test` uses `dev` for
|
|
# dependencies and `test` for the test targets themselves, so setting only
|
|
# `dev` leaves the eight big binaries at the default.
|
|
[profile.test]
|
|
debug = "line-tables-only"
|
|
|
|
[workspace.dependencies]
|
|
pollster = "1.0.1"
|
|
winit = "0.30.13"
|
|
wgpu = "30.0.1"
|
|
bytemuck = "1.25.2"
|
|
image = "0.25.10"
|
|
parley = "0.11.1"
|
|
swash = "0.2.10"
|
|
fxhash = "0.2.1"
|
|
arboard = "3.6.1"
|
|
accesskit = "0.25.0"
|
|
iris-core = { path = "core" }
|
|
iris-macro = { path = "macro" }
|
|
tokio = "1.53.1"
|
|
# Current stable as of 2026-09-05 (`cargo search`) -- I5's markdown block
|
|
# model, the same crate E2's uncommitted `e2-transcript` experiment used for
|
|
# the identical job (RUST.md), rather than reimplementing a CommonMark
|
|
# parser.
|
|
pulldown-cmark = "0.13.4"
|