Skip to content

v2: pin Rust 1.89 and fix sensing-server UI path when run from v2#523

Open
krish2718 wants to merge 2 commits intoruvnet:mainfrom
krish2718:pr/v2-sensing-server-toolchain-ui
Open

v2: pin Rust 1.89 and fix sensing-server UI path when run from v2#523
krish2718 wants to merge 2 commits intoruvnet:mainfrom
krish2718:pr/v2-sensing-server-toolchain-ui

Conversation

@krish2718
Copy link
Copy Markdown

Summary

Make the sensing server and its static UI usable from a normal v2/ checkout
without hand-editing paths, and pin a Rust toolchain that matches the workspace
dependency graph (edition 2024 / newer APIs).

Changes

  • Add v2/rust-toolchain.toml pinning Rust 1.89 (required by the current
    mmap-rs / edition-2024 chain and related crates in this workspace).
  • Sensing server: Default UI static path to ../ui (repo layout: ui/ next
    to v2/), and coalesce fallbacks (../ui, ./ui, ../../ui) when the default
    is missing so cargo run from v2/ does not serve an empty /ui.

Test plan

  • cd v2 && cargo build -p wifi-densepose-sensing-server
  • Run the binary from v2/ with default args; open the dashboard and confirm
    assets load (no blank UI).

Notes

Toolchain pin is repo-wide for v2/ via rust-toolchain.toml, not only the
sensing server crate; the PR title calls out sensing-server because that is the
user-visible workflow fixed alongside UI path resolution.

krish2718 and others added 2 commits May 10, 2026 21:26
ruvector-core 2.0.5, hnsw_rs 0.3.4, and mmap-rs 0.7 require newer Cargo/rustc
than 1.82 (edition2024 manifest, is_multiple_of, stable avx512f target_feature
on x86_64). Add v2/rust-toolchain.toml so cargo build -p
wifi-densepose-sensing-server picks a compatible toolchain.

Signed-off-by: Chaitanya Tata <chaitanya@dotstarconsulting.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
The previous default ../../ui resolves to a non-existent directory when
the binary is run from v2/ (common), so /ui/* returned 404 and the
dashboard appeared broken. Default to ../ui and try ../ui, ./ui,
../../ui when the configured path is missing.

Signed-off-by: Chaitanya Tata <chaitanya@dotstarconsulting.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@krish2718 krish2718 force-pushed the pr/v2-sensing-server-toolchain-ui branch from b305410 to 2d9e1bc Compare May 10, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant