[package]
edition = "2024"
name = "audio-code"
version = "0.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple, high level game engine for audio games: 3D sound, speech, virtual menus, physics and timing. No graphics required."
readme = "README.md"
keywords = [
"audiogame",
"accessibility",
"gamedev",
"audio",
"screen-reader",
]
categories = [
"game-engines",
"accessibility",
"multimedia::audio",
]
license = "MIT"
repository = "https://github.com/ui-hater/audio-code"
[features]
default = [
"prism",
"macos",
]
macos = [
"dep:objc2",
"dep:objc2-foundation",
"dep:objc2-app-kit",
"dep:objc2-avf-audio",
"dep:dispatch2",
]
prism = ["dep:prismer"]
wxdragon = ["dep:wxdragon"]
[lib]
name = "audio_code"
path = "src/lib.rs"
[[example]]
name = "beacon"
path = "examples/beacon.rs"
[[example]]
name = "bell_catcher"
path = "examples/bell_catcher.rs"
[[example]]
name = "clicker"
path = "examples/clicker.rs"
[[example]]
name = "driving"
path = "examples/driving.rs"
[[example]]
name = "flight"
path = "examples/flight.rs"
[[example]]
name = "hello"
path = "examples/hello.rs"
[[example]]
name = "menus"
path = "examples/menus.rs"
[[example]]
name = "platformer"
path = "examples/platformer.rs"
[[example]]
name = "wx_game"
path = "examples/wx_game.rs"
required-features = ["wxdragon"]
[dependencies.chacha20poly1305]
version = "0.11"
[dependencies.cpal]
version = "0.18.2"
[dependencies.fastrand]
version = "2.5.0"
[dependencies.getrandom]
version = "0.4"
[dependencies.glam]
version = "0.34.1"
[dependencies.prismer]
version = "0.1.4"
optional = true
[dependencies.sha2]
version = "0.11"
[dependencies.symphonia]
version = "0.6.1"
features = ["all"]
[dependencies.sys-locale]
version = "0.3.2"
[dependencies.winit]
version = "0.30.13"
[dependencies.wxdragon]
version = "0.9.23"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.dispatch2]
version = "0.3.1"
features = ["std"]
optional = true
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6.5"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
version = "0.3.2"
features = [
"std",
"NSAccessibility",
"NSAccessibilityConstants",
"NSApplication",
"NSResponder",
"NSWindow",
"NSWorkspace",
]
optional = true
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-avf-audio]
version = "0.3.2"
features = [
"std",
"AVSpeechSynthesis",
]
optional = true
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3.2"
features = [
"std",
"NSArray",
"NSDictionary",
"NSObject",
"NSString",
"NSValue",
]
optional = true
default-features = false