forked from fornwall/gamepads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
46 lines (40 loc) · 1.31 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[package]
name = "gamepads"
categories = ["game-development"]
description = "Library to access information about connected gamepads."
edition = "2021"
keywords = ["gamedev", "joystick", "input", "gamepad", "macroquad"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/fornwall/gamepads"
version = "0.1.6"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
android-winit = ["winit", "jni", "ndk-context"]
default = ["wasm-bindgen"]
wasm-bindgen = ["dep:wasm-bindgen", "web-sys", "js-sys"]
[dependencies]
# feature: wasm-bindgen
js-sys = { version = "0.3", optional = true }
wasm-bindgen = { version = "0.2", optional = true }
web-sys = { version = "0.3", features = [
"Gamepad",
"GamepadButton",
"GamepadMappingType",
"Window",
"Navigator",
], optional = true }
# feature: android-winit
winit = { git = "https://github.com/fornwall/winit", branch="axis-update-on-android", features = [
"android-native-activity",
], optional = true }
jni = { version = "0", optional = true }
ndk-context = { version = "0", optional = true }
serde = { version = "1.0.213", features = ["derive"] }
[target.'cfg(not(any(target_os = "android", target_family = "wasm")))'.dependencies]
gilrs = "0.10"
[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0"
log = "0"
[workspace]
members = [".", "examples/*"]