Skip to content

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

Merged
ruvnet merged 2 commits into
ruvnet:mainfrom
krish2718:pr/v2-sensing-server-toolchain-ui
May 17, 2026
Merged

v2: pin Rust 1.89 and fix sensing-server UI path when run from v2#523
ruvnet merged 2 commits into
ruvnet:mainfrom
krish2718:pr/v2-sensing-server-toolchain-ui

Conversation

@krish2718

Copy link
Copy Markdown
Contributor

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

@ruvnet ruvnet left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Three small, safe, on-target changes:

  1. v2/rust-toolchain.toml pinning Rust 1.89 — explicitly states what the existing edition-2024 / mmap-rs chain already requires implicitly. Eliminates the 'wrong rustc' first-time-build failure.
  2. --ui-path default ../ui — assumes cd v2 && cargo run, which matches CLAUDE.md's build-test commands. The prior ../../ui worked only from v2/crates/wifi-densepose-sensing-server/.
  3. coalesce_ui_path() fallback — gracefully recovers from a wrong cwd by trying the three common layouts, logging a warn so the operator knows. Right-sized: not magic, but stops a blank-UI bug from being a head-scratcher.

Merging.

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.

2 participants