diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-09-19 12:02:54 +1200 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-09-19 12:05:46 +1200 |
commit | 1836ac3c6b2abd5dce487f1d7589cfe7466c0fd2 (patch) | |
tree | d1e34ba91f7ecef855dc9652ca2063ac33dabf6c /Cargo.toml | |
parent | 661b4012654c8b41a782adf6a5cc1092b8942803 (diff) | |
download | bedrock-pc-1836ac3c6b2abd5dce487f1d7589cfe7466c0fd2.zip |
Gate gamepad support behind a feature flag
This is to make it possible to compile bedrock-pc without gamepad
support, which is useful when the target platform doesn't have the
libraries for udev (required by the gilrs dependency).
This commit is a bit of a hack, it'd be nice to implement this better
some day.
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -16,12 +16,15 @@ switchboard = { git = "git://benbridle.com/switchboard", tag = "v2.1.0" } vagabond = { git = "git://benbridle.com/vagabond", tag = "v1.1.1" } chrono = { version = "0.4.38" } -gilrs = "0.11.0" +gilrs = { version = "0.11.0", optional = true } dirs-next = "1.0.2" [target.'cfg(target_os = "windows")'.dependencies] windows = { version = "0.58.0", features = ["Win32_Storage_FileSystem"] } +[features] +default = ["gamepad"] +gamepad = ["dep:gilrs"] [profile.release] lto=true |