Files
ewm/Cargo.lock
Stefan ArentzandClaude Fable 5 b4fc82a0cc Upgrade the frontend from SDL2 to SDL3 (#207)
* Upgrade the frontend from SDL2 to SDL3

Port the ewm crate from the sdl2 crate (0.38) to sdl3 (0.18.4),
linking against Homebrew SDL3 via pkg-config. Behavior is unchanged.

- sdl.rs: SDL3 removed SDL_RendererInfo, so the texture-format probe
  walks the renderer properties instead; the accelerated check becomes
  a software-renderer name check (the ACCELERATED flag is gone), and
  RGB888 is now spelled XRGB8888.
- snd.rs: the SDL2 AudioQueue becomes an SDL3 audio stream. The
  queued_bytes() backpressure cap replaces AudioQueue::size(), and the
  prime-then-resume order keeps the underrun headroom (SDL3 devices
  start paused). SDL3 has no per-device sample-buffer request.
- boo.rs/one.rs/two.rs: into_canvas() is infallible with no builder,
  set_logical_size() takes a presentation mode, the timer subsystem is
  replaced by sdl3::timer::ticks(), text input is per-window,
  fullscreen is a bool, Keycode::Num1 is Keycode::_1, and the game
  controller subsystem is now gamepads with positional button names
  (A/B/X/Y -> South/East/West/North).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* CI: build on ubuntu-26.04 with libsdl3-dev

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 20:09:27 -04:00

111 lines
2.7 KiB
TOML

# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "adler2"
version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
[[package]]
name = "bitflags"
version = "2.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
[[package]]
name = "cfg-if"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "crc32fast"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
dependencies = [
"cfg-if",
]
[[package]]
name = "ewm"
version = "0.1.0"
dependencies = [
"ewm-core",
"sdl3",
]
[[package]]
name = "ewm-core"
version = "0.1.0"
dependencies = [
"flate2",
]
[[package]]
name = "flate2"
version = "1.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
dependencies = [
"crc32fast",
"miniz_oxide",
]
[[package]]
name = "libc"
version = "0.2.186"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
[[package]]
name = "miniz_oxide"
version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
dependencies = [
"adler2",
"simd-adler32",
]
[[package]]
name = "pkg-config"
version = "0.3.33"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
[[package]]
name = "sdl3"
version = "0.18.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25bd22eb1bbc9137e914022b4994ed35591eea0884e9e3e98e6d9895cad6e1d2"
dependencies = [
"bitflags",
"libc",
"sdl3-sys",
]
[[package]]
name = "sdl3-sys"
version = "0.6.7+SDL-3.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e89cde1ff23eb110e348da9b5be904381235163272a424938a2c99c86ea33041"
dependencies = [
"pkg-config",
"vcpkg",
]
[[package]]
name = "simd-adler32"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"
[[package]]
name = "vcpkg"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"