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
Open
v2: pin Rust 1.89 and fix sensing-server UI path when run from v2#523krish2718 wants to merge 2 commits intoruvnet:mainfrom
krish2718 wants to merge 2 commits intoruvnet:mainfrom
Conversation
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>
b305410 to
2d9e1bc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make the sensing server and its static UI usable from a normal
v2/checkoutwithout hand-editing paths, and pin a Rust toolchain that matches the workspace
dependency graph (edition 2024 / newer APIs).
Changes
v2/rust-toolchain.tomlpinning Rust 1.89 (required by the currentmmap-rs/ edition-2024 chain and related crates in this workspace).../ui(repo layout:ui/nextto
v2/), and coalesce fallbacks (../ui,./ui,../../ui) when the defaultis missing so
cargo runfromv2/does not serve an empty/ui.Test plan
cd v2 && cargo build -p wifi-densepose-sensing-serverv2/with default args; open the dashboard and confirmassets load (no blank UI).
Notes
Toolchain pin is repo-wide for
v2/viarust-toolchain.toml, not only thesensing server crate; the PR title calls out sensing-server because that is the
user-visible workflow fixed alongside UI path resolution.