ac955934b5
The horizon-dualsense crate builds the DualSense's output report (USB 0x02, Bluetooth 0x31 with its CRC-32 seeded with 0xA2) and writes it with hidapi from a thread. The game sends its rumble pulses through it when the active pad is a DualSense, so vibration now works on macOS too, and falls back to gilrs force feedback when the pad can't be opened. Quitting frees the triggers and stops the motors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1.3 KiB
TOML
34 lines
1.3 KiB
TOML
[workspace]
|
|
exclude = ["launcher", "crates/horizon-telemetry-server"]
|
|
members = ["crates/horizon-core", "crates/horizon-dualsense", "crates/horizon-world", "crates/voxel-kernels", "crates/horizon-client", "crates/horizon-assets", "crates/horizon-protocol", "crates/horizon-theme", "crates/horizon-prepare", "crates/horizon-telemetry", "crates/horizon-bench", "crates/horizon-friends", "crates/horizon-relay", "crates/horizon-mod-sdk", "crates/horizon-mods", "crates/horizon-mods/tests/guest", "crates/cargo-horizon-mod", "crates/horizon-mod-sdk/examples/coords-hud", "xtask"]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
edition = "2024"
|
|
license = "MIT"
|
|
rust-version = "1.85"
|
|
|
|
# Ports mirror vanilla's Java signatures, index loops and nested generic types
|
|
# one to one so they can be checked against the decompiled sources.
|
|
[workspace.lints.clippy]
|
|
too_many_arguments = "allow"
|
|
type_complexity = "allow"
|
|
needless_range_loop = "allow"
|
|
large_enum_variant = "allow"
|
|
|
|
# Line tables keep file:line in backtraces; full debug info made every
|
|
# example and test binary hundreds of megabytes and slow to link.
|
|
[profile.dev]
|
|
debug = "line-tables-only"
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
codegen-units = 1
|
|
|
|
# Optimized but quick-to-link builds for iteration: cargo build --profile fast
|
|
[profile.fast]
|
|
inherits = "release"
|
|
lto = false
|
|
codegen-units = 16
|
|
incremental = true
|