mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-18 14:40:54 +00:00
e319b80265
* 3D view: moving the pointer over it draws no frame when nothing it lights up changes Over a still 3D view, every pointer move drew a whole frame (egui pass, view, present) even when the pointer stayed on the same face or on empty background, so laptops spent CPU, GPU and battery on frames identical to the last. The view now records, at the end of a frame, whether it is quiet: only hovered, with no tool, dialog, sketch, drag, held button, open menu, woken snap point or view movement (`viewport::QuietMotion`). Between frames the app answers eframe's question about each pointer move (`App::repaint_on_window_event`): the move needs no frame when the pointer stays on the view with no other widget reached (egui's hit test against the last frame's widgets) and the pick at the new position lights up the same face, edge, vertex, plane or nothing (`viewport::motion_changes_nothing`). The motion is still delivered with the next frame. Raw device motion draws no frame while the view is quiet; and over a quiet view egui is told that pointer motion needs no frame after the one it drew, unless control-channel input is queued. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * 3D view: a pointer move answered without a frame keeps the hover at the pointer The move is picked anyway to decide that it needs no frame; that pick (the same face, edge or plane, at the pointer) now becomes the hover, and the pointer position is kept, as the frame would have left them. Before, `ui.inspect` and the agents saw the point where the hover last changed until the next frame (an edge's or a face's `point` lagged behind the pointer), though nothing on screen differed. `viewport::motion_changes_nothing` is now `viewport::follow_pointer_without_frame`, since it records what it found. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * 3D view: pointer motion onto a joint glyph or an idle Joint Move handle draws a frame The glyph's tooltip and the handle's brightening are drawn by a frame, though what lights up under the pointer stays the same. A frame with the pointer on a glyph is not quiet either, so leaving the glyph hides its tooltip. Also puts wake_centre's doc comment back on wake_centre. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WRx8erWfxRfxVtyfRiGSb * eframe: the repaint hooks are asked about the main window's events only A winit event carries no window to the app, so a pointer move over a detached panel window was read as a move over the main window's 3D view, and could skip that panel's frame. Every other window's events keep eframe's own answer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WRx8erWfxRfxVtyfRiGSb * egui-winit: queued pointer motion collapses while no button is held With frames skipped for quiet pointer motion, the queue held one event per platform report until the next frame. Motion now joins the motion of the same kind at the end of the queue (the last position, the summed delta); other events keep their places, and a held button keeps the whole path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WRx8erWfxRfxVtyfRiGSb --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
137 lines
6.9 KiB
TOML
137 lines
6.9 KiB
TOML
[package]
|
|
name = "solidcraft"
|
|
description = "SolidCraft desktop app"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
default-run = "solidcraft"
|
|
|
|
[features]
|
|
default = ["raytrace-cpu", "bundled-render-library", "profile"]
|
|
bundled-render-library = ["solidcraft-engine/bundled-render-library"]
|
|
raytrace-cpu = ["solidcraft-engine/raytrace-cpu"]
|
|
# The profiler, compiled in so any build can say where its time goes (the Profile operations
|
|
# preference, SOLIDCRAFT_PROFILE=1, diagnostics.profile); it records nothing until asked.
|
|
profile = ["solidcraft-engine/profile"]
|
|
|
|
# The workspace lints, except unsafe_code: denied, not forbidden, so that src/open_documents.rs
|
|
# (macOS file-open events), src/native_crash.rs (Windows exception filter), src/native_crash_macos.rs
|
|
# (macOS crash signal handler) and src/native_frame.rs (Windows resize border, taskbar icon) can
|
|
# allow it: none has a safe API. Keep the rest in sync with [workspace.lints].
|
|
[lints.rust]
|
|
unsafe_code = "deny"
|
|
|
|
[lints.clippy]
|
|
dbg_macro = "warn"
|
|
todo = "warn"
|
|
too_many_arguments = "allow"
|
|
type_complexity = "allow"
|
|
neg_cmp_op_on_partial_ord = "allow"
|
|
|
|
[dependencies]
|
|
solidcraft-viewport-gpu = { workspace = true }
|
|
solidcraft-viewport = { workspace = true }
|
|
solidcraft-engine = { workspace = true }
|
|
solidcraft-control = { workspace = true }
|
|
# The D3D12 shader compiler the window starts with (#6756).
|
|
solidcraft-gpu = { workspace = true }
|
|
solidcraft-ui-egui = { workspace = true }
|
|
# SolidCraft's look (icons, glyphs, built-in themes), installed at startup.
|
|
solidcraft-look = { workspace = true }
|
|
solidcraft-ui-text = { workspace = true }
|
|
solidcraft-theme = { workspace = true }
|
|
solidcraft-space-mouse = { workspace = true }
|
|
# "clipboard" is not a default here: eframe 0.37 builds egui-winit without it, and then every
|
|
# Copy and Paste on the desktop silently does nothing (see src/clipboard_tests.rs).
|
|
eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit", "wayland", "x11", "links", "clipboard"] }
|
|
egui = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
log = { workspace = true }
|
|
rfd = { workspace = true }
|
|
# Checks eframe's settings file (app.ron) before eframe reads it (src/startup.rs).
|
|
ron = "0.12"
|
|
# Waits for wgpu's adapter list when choosing the graphics backend before the window opens.
|
|
pollster = { workspace = true }
|
|
# The update check (docs/updates.md): HTTPS with rustls, certificates from the operating system.
|
|
ureq = { version = "3.4", default-features = false, features = ["rustls-no-provider", "platform-verifier"] }
|
|
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12", "logging"] }
|
|
# API keys of the agent chat's API agents (docs/agent-chat.md) live in the system keychain:
|
|
# Keychain on macOS, Credential Manager on Windows, the Secret Service (pure-Rust D-Bus) elsewhere.
|
|
keyring = { version = "3.6", default-features = false, features = ["apple-native", "windows-native", "async-secret-service", "async-io", "crypto-rust"] }
|
|
|
|
# Opening a design while SolidCraft runs hands it to that window (src/single_instance.rs): a Unix
|
|
# domain socket on Linux and macOS, a named pipe on Windows, both local to the user.
|
|
interprocess = "2.4"
|
|
|
|
[target.'cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))'.dependencies]
|
|
quick-xml = { workspace = true }
|
|
# The window events eframe asks the app about before painting (`App::repaint_on_window_event`);
|
|
# already in the tree through eframe.
|
|
winit = { version = "0.30", default-features = false }
|
|
|
|
[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).
|
|
raw-window-handle = "0.6"
|
|
# Native crash capture (src/native_crash.rs): the exception filter, the faulting module, a minidump.
|
|
# The window's resize border, DPI size and class icon (src/native_frame.rs): the window procedure, hit
|
|
# test, DPI, the exe's icon.
|
|
# Finding 3D mice through Plug and Play without asking other devices anything (src/space_mouse/windows_hid.rs).
|
|
windows-sys = { version = "0.61", features = [
|
|
"Win32_Devices_DeviceAndDriverInstallation",
|
|
"Win32_Devices_HumanInterfaceDevice",
|
|
"Win32_Devices_Properties",
|
|
"Win32_Foundation",
|
|
"Win32_Graphics_Gdi",
|
|
"Win32_Security",
|
|
"Win32_Storage_FileSystem",
|
|
"Win32_System_Diagnostics_Debug",
|
|
"Win32_System_IO",
|
|
"Win32_System_Kernel",
|
|
"Win32_System_LibraryLoader",
|
|
"Win32_System_Memory",
|
|
"Win32_System_Threading",
|
|
"Win32_UI_HiDpi",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
] }
|
|
winreg = "0.56"
|
|
# The vendored winit's quiet window move (nothing drawn while the window is dragged by its title
|
|
# bar), set from Preferences > Layout's `windows_smooth_window_drag` (src/native_frame.rs; already
|
|
# in the tree through eframe).
|
|
winit = { version = "0.30", default-features = false }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
muda = { version = "0.21.2", default-features = false }
|
|
# The 3D mouse through the 3Dconnexion driver, which keeps the device to itself (src/space_mouse.rs).
|
|
solidcraft-3dx-client = { workspace = true }
|
|
# The 3D mouse (src/space_mouse.rs), in the shared-device open mode so that a running 3DxWare
|
|
# driver does not shut the app out.
|
|
hidapi = { version = "2.6.7", default-features = false, features = ["macos-shared-device"] }
|
|
# Files opened from Finder and the Dock (src/open_documents.rs), and the full-screen title bar's
|
|
# window (src/main.rs); all already come with eframe and rfd.
|
|
objc2 = "0.6"
|
|
objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "NSAccessibility", "NSApplication", "NSButton", "NSControl", "NSResponder", "NSView", "NSWindow", "NSWorkspace"] }
|
|
objc2-foundation = { version = "0.3", default-features = false, features = ["std", "block2", "NSArray", "NSNotification", "NSOperation", "NSProcessInfo", "NSString", "NSURL"] }
|
|
block2 = "0.6"
|
|
# Native crash capture (src/native_crash_macos.rs): the signal handler, the faulting module
|
|
# (already in the tree through many crates).
|
|
libc = "0.2"
|
|
|
|
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
|
|
winit = { version = "0.30", default-features = false, features = ["x11"] }
|
|
# Bringing the window forward on X11 when a close asks about unsaved designs (src/come_forward.rs):
|
|
# the window's id, and the window manager request winit doesn't send (MIT OR Apache-2.0; both
|
|
# already in the tree through eframe and winit).
|
|
raw-window-handle = "0.6"
|
|
x11rb = { version = "0.13", default-features = false }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
# The desktop's dark or light preference through the XDG Desktop Portal (src/desktop_theme.rs,
|
|
# #7944); already in the tree through eframe's accessibility support (accesskit_unix).
|
|
zbus = { version = "5", default-features = false, features = ["async-io", "blocking-api"] }
|
|
|
|
[build-dependencies]
|
|
embed-resource = "3.0.11"
|