[package]
edition = "2024"
name = "rustraight"
version = "0.5.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple 2D game library for Rust, inspired by DXLib"
readme = "README.md"
keywords = [
"game",
"gamedev",
"2d",
"wgpu",
"graphics",
]
categories = ["game-engines"]
license = "MIT"
repository = "https://github.com/tetorisou-spec/rustraight.git"
[lib]
name = "rustraight"
path = "src/lib.rs"
[[bin]]
name = "rustraight_demo"
path = "src/main.rs"
[[example]]
name = "01_window"
path = "examples/01_window.rs"
[[example]]
name = "02_shapes"
path = "examples/02_shapes.rs"
[[example]]
name = "03_sprites"
path = "examples/03_sprites.rs"
[[example]]
name = "04_blend_mask"
path = "examples/04_blend_mask.rs"
[[example]]
name = "05_subscreen"
path = "examples/05_subscreen.rs"
[[example]]
name = "06_keyboard"
path = "examples/06_keyboard.rs"
[[example]]
name = "07_mouse"
path = "examples/07_mouse.rs"
[[example]]
name = "08_gamepad"
path = "examples/08_gamepad.rs"
[[example]]
name = "09_text"
path = "examples/09_text.rs"
[[example]]
name = "10_sound"
path = "examples/10_sound.rs"
[[example]]
name = "11_overlay"
path = "examples/11_overlay.rs"
[[example]]
name = "12_rng"
path = "examples/12_rng.rs"
[[example]]
name = "verify_all"
path = "examples/verify_all/main.rs"
[dependencies.fontdue]
version = "0.7"
[dependencies.raw-window-handle]
version = "0.6"
[dependencies.wgpu]
version = "27"
[target.'cfg(target_os = "windows")'.dependencies.lewton]
version = "0.10"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.58"
features = [
"Win32_Foundation",
"Win32_Graphics_Imaging",
"Win32_System_Com",
"Win32_Media_Audio",
"Win32_Media_Audio_XAudio2",
"Win32_Devices_HumanInterfaceDevice",
]
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.52"
features = [
"Win32_Foundation",
"Win32_UI_WindowsAndMessaging",
"Win32_Graphics_Gdi",
"Win32_System_LibraryLoader",
"Win32_UI_Input_XboxController",
"Win32_UI_HiDpi",
]