sgl-input 0.3.0

Caller-polled controller discovery, events, and held state for SGL games
Documentation
# 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 = "2024"
rust-version = "1.96"
name = "sgl-input"
version = "0.3.0"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Caller-polled controller discovery, events, and held state for SGL games"
documentation = "https://docs.rs/sgl-input"
readme = "README.md"
keywords = [
    "gamedev",
    "input",
    "gamepad",
    "controller",
]
categories = ["game-development"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/stevepryde/sgl"

[lib]
name = "sgl_input"
path = "src/lib.rs"

[[example]]
name = "controllers"
path = "examples/controllers.rs"

[dev-dependencies.winit]
version = "=0.30.13"
features = [
    "rwh_06",
    "x11",
    "wayland",
    "wayland-dlopen",
]
default-features = false

[target.'cfg(not(target_os = "macos"))'.dependencies.gilrs]
version = "0.11.2"

[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6.2"

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6.4"

[target.'cfg(target_os = "macos")'.dependencies.objc2-game-controller]
version = "0.3.2"
features = [
    "std",
    "block2",
    "GCController",
    "GCDevice",
    "GCExtendedGamepad",
    "GCPhysicalInputProfile",
    "GCControllerElement",
    "GCControllerAxisInput",
    "GCControllerButtonInput",
    "GCControllerDirectionPad",
]
default-features = false

[lints.rust]
unsafe_code = "deny"