Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
37a1f6b
VR: a simple viewer, the design in the room held with the controllers…
Sebastion Nov 17, 2026
b685078
VR: fixes from CodeRabbit's review of #18712
Sebastion Nov 17, 2026
0219f09
Preferences: the VR headset page is named XR
Sebastion Nov 17, 2026
f1d621f
VR: point at parts, hide and section them, a ring menu and a belt wit…
Sebastion Nov 20, 2026
961e431
Merge remote-tracking branch 'upstream/main' into feat/vr-pick
Sebastion Nov 20, 2026
0dd4df8
VR settings: a ring's slot choosers go on as many rows as they need
Sebastion Nov 20, 2026
bd5db57
VR settings: shorter labels, so none is cut off in the label column
Sebastion Nov 20, 2026
12554a3
VR: the headset's Browser only views, controller models, picking one …
Sebastion Nov 21, 2026
7031349
Merge upstream/main into the VR mode
Sebastion Nov 21, 2026
61042e2
VR: the headset's Browser edits nothing from the History or Document …
Sebastion Nov 21, 2026
ee6164b
Merge upstream/main into the VR mode
Sebastion Nov 21, 2026
93e61e6
docs/vr: passthrough is in but not tried on a headset yet
Sebastion Nov 21, 2026
96b0b51
VR: a start that can't open VR says why in the start's notice
Sebastion Nov 21, 2026
b13d1ef
Merge upstream/main into the VR mode
Sebastion Nov 21, 2026
af07cd7
Cargo.lock: the VR crates at the workspace's 0.46.1
Sebastion Nov 22, 2026
c16690d
VR: the VR software or headset gone is said plainly
bluechetti Nov 22, 2026
820e90c
VR: the ring acts on the selection when the design changed while it w…
bluechetti Nov 22, 2026
0a26183
VR: a ring bubble's long word is set smaller before it is cut
bluechetti Nov 22, 2026
2155dec
VR: bluechetti's two notes, and Restart now beside Start in VR
Sebastion Nov 22, 2026
f87ea62
Merge upstream/main into the VR mode
Sebastion Nov 22, 2026
409da2e
Cargo.lock: the VR crates at the workspace's 0.46.2
Sebastion Nov 22, 2026
29a02b5
VR: rustfmt on belt::Layout::clear_of
Sebastion Nov 22, 2026
88c586b
Cargo.lock: clipboard-win 5.4.3, as 5.4.1 is yanked
Sebastion Nov 22, 2026
d3a3b06
Cargo.lock: url 2.5.9 for RUSTSEC-2026-0592
Sebastion Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .agents/skills/solidcraft-crash-safety/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ People trust SolidCraft with their designs. This outranks feature work.

## In non-test code
- No `unwrap()`, `expect()`, `panic!`, `unreachable!`, `todo!` or `unimplemented!`. Every production crate root carries `#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]`; `cargo xtask ci` runs clippy with `-D warnings`.
- No `unsafe` (`unsafe_code = "forbid"`). The exceptions, in the app crate and in `crates/threedx-client` (which deny it instead), have no safe API:
- No `unsafe` (`unsafe_code = "forbid"`). The exceptions, in the app crate, `crates/threedx-client` and `crates/xr` (which deny it instead), have no safe API:
- Windows and Linux: `crates/xr/src/session/interop.rs` and its `render_models.rs` (VR, `docs/vr.md`)
- macOS only: `crates/threedx-client/src/macos.rs` (loads the 3Dconnexion driver's client framework at run time and calls through its function pointers), two functions in `apps/solidcraft/src/open_documents.rs` (macOS hands Finder files only to an Objective-C method), and `apps/solidcraft/src/native_crash_macos.rs` (the signal handler that records crashes inside native code, as `native_crash.rs` does on Windows)
- Windows only: `apps/solidcraft/src/native_crash.rs` (the exception filter that records crashes inside native code such as graphics drivers), `apps/solidcraft/src/native_frame.rs` (the window procedure that answers the resize-border hit test of the window without OS decorations, and gives its class the icon the taskbar falls back on) and `apps/solidcraft/src/space_mouse/windows_hid.rs` (asks Plug and Play which HID interfaces are 3D mice, so no other device is sent anything)
- Errors are `Result<T, E>` through the crate's error type and `?`. An unfinished feature returns an error ("not supported yet: ..."); it never panics.
Expand Down
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ to commands, with no geometry math.
4. **Never crash.** People trust a CAD app with their work.
- Non-test code never uses `unwrap`, `expect`, `panic!` or indexing on input-derived data.
There's no `unsafe` outside `apps/solidcraft/src/open_documents.rs` (macOS file-open events),
`apps/solidcraft/src/native_crash.rs` (Windows native crash capture) and
`crates/threedx-client/src/macos.rs` (the 3Dconnexion driver's client API on macOS), and the
`apps/solidcraft/src/native_crash.rs` (Windows native crash capture),
`crates/threedx-client/src/macos.rs` (the 3Dconnexion driver's client API on macOS) and
`crates/xr/src/session/interop.rs` (the VR view's OpenXR and Vulkan hand-over), and the
compiler denies it.
- An unsupported case returns an error ("not supported yet: …"); it never panics.
- Every call into the vendored kernel goes through `solidcraft_kernel::guard`.
Expand Down
99 changes: 76 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ solidcraft-control = { path = "crates/control" }
solidcraft-control-egui = { path = "crates/control-egui" }
solidcraft-derive = { path = "crates/derive" }
solidcraft-3dx-client = { path = "crates/threedx-client" }
# VR (#2172, docs/vr.md): an OpenXR session on the window's own Vulkan device, its controllers and view maths
solidcraft-xr = { path = "crates/xr" }
# The VR viewer (docs/vr.md): the model in the room and what the controllers do to it
solidcraft-vr = { path = "crates/vr" }
# The Rust port of NVIDIA's SMLib (Apache-2.0), the B-rep kernel behind crates/smlib. Vendored with
# `git subtree` at solidcore: that tree is the source of truth, and
# .github/workflows/solidcore-mirror.yml pushes changes in it back to its own repository (#13153).
Expand Down Expand Up @@ -167,6 +171,14 @@ naga = { version = "30", default-features = false }
pollster = "0.4"
rfd = "0.17"

# OpenXR runtime bindings (MIT OR Apache-2.0, Rust bindings for the Khronos loader). `loaded`
# finds the loader the OpenXR runtime installs at run time, so no C++ toolchain and no CMake are
# needed to build (crates/xr).
openxr = { version = "0.22", default-features = false, features = ["loaded"] }
# The Vulkan bindings wgpu-hal draws with (MIT OR Apache-2.0; already in the tree through it): an
# OpenXR runtime creates the Vulkan instance and device, and crates/xr hands them to wgpu.
ash = { version = "0.38", default-features = false, features = ["loaded", "std"] }

[workspace.lints.rust]
unsafe_code = "forbid"

Expand Down
6 changes: 6 additions & 0 deletions apps/solidcraft/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ quick-xml = { workspace = true }
# already in the tree through eframe.
winit = { version = "0.30", default-features = false }

# VR (src/vr.rs, docs/vr.md): the OpenXR session, and the viewer's room maths, grab and controller
# marks. Where wgpu has a Vulkan backend to share with an OpenXR runtime.
[target.'cfg(any(target_os = "windows", target_os = "linux"))'.dependencies]
solidcraft-xr = { workspace = true }
solidcraft-vr = { workspace = true }

[target.'cfg(target_os = "windows")'.dependencies]
hidapi = { version = "2.6.7", default-features = false, features = ["windows-native"] }
# The main window's handle for src/native_frame.rs (already in the tree through eframe and winit).
Expand Down
Loading