136 lines
3.2 KiB
TOML
136 lines
3.2 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2021"
|
|
rust-version = "1.80.0"
|
|
name = "gilrs-core"
|
|
version = "0.6.5"
|
|
authors = ["Mateusz Sieczko <arvamer@gmail.com>"]
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Minimal event-based abstraction for working with gamepads"
|
|
documentation = "https://docs.rs/gilrs-core/"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"gamepad",
|
|
"joystick",
|
|
"input",
|
|
]
|
|
categories = ["game-engines"]
|
|
license = "Apache-2.0/MIT"
|
|
repository = "https://gitlab.com/gilrs-project/gilrs"
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ["serde"]
|
|
|
|
[features]
|
|
default = ["wgi"]
|
|
serde-serialize = ["serde"]
|
|
wgi = ["windows"]
|
|
xinput = [
|
|
"rusty-xinput",
|
|
"winapi",
|
|
]
|
|
|
|
[lib]
|
|
name = "gilrs_core"
|
|
path = "src/lib.rs"
|
|
|
|
[[example]]
|
|
name = "ev_core"
|
|
path = "examples/ev_core.rs"
|
|
|
|
[dependencies.log]
|
|
version = "0.4.1"
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
features = ["derive"]
|
|
optional = true
|
|
|
|
[dependencies.uuid]
|
|
version = "1.0.0"
|
|
|
|
[dev-dependencies.env_logger]
|
|
version = "0.11.5"
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))'.dependencies.inotify]
|
|
version = "0.11.0"
|
|
default-features = false
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))'.dependencies.libc]
|
|
version = "0.2"
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))'.dependencies.libudev-sys]
|
|
version = "0.1.4"
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))'.dependencies.nix]
|
|
version = "0.30.1"
|
|
features = [
|
|
"ioctl",
|
|
"event",
|
|
]
|
|
default-features = false
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))'.dependencies.vec_map]
|
|
version = "0.8"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
|
|
version = "0.3"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
|
|
version = "0.2"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
|
|
version = "0.3"
|
|
features = [
|
|
"Gamepad",
|
|
"GamepadButton",
|
|
"GamepadMappingType",
|
|
"Window",
|
|
"Navigator",
|
|
"DomException",
|
|
]
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
|
|
version = "0.10.0"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies.io-kit-sys]
|
|
version = "0.4.1"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies.vec_map]
|
|
version = "0.8"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies.rusty-xinput]
|
|
version = "1.2.0"
|
|
optional = true
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies.winapi]
|
|
version = "0.3.4"
|
|
features = ["xinput"]
|
|
optional = true
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies.windows]
|
|
version = ">=0.44, <=0.62"
|
|
features = [
|
|
"Gaming_Input",
|
|
"Foundation_Collections",
|
|
"Devices_Power",
|
|
"System_Power",
|
|
"Gaming_Input_ForceFeedback",
|
|
]
|
|
optional = true
|