From b010c044efdc3b80067951853f978a139f40418f Mon Sep 17 00:00:00 2001 From: gered Date: Wed, 18 Jan 2023 17:04:25 -0500 Subject: [PATCH] remove explicit sdl2 dependency from example apps they all still depend on sdl2 through the libretrogd dependency, but the benefit is that future sdl2 version updates are much easier to accomplish for most apps, since only libretrogd needs to be updated (in theory). --- examples/audio_playback/Cargo.toml | 2 -- examples/balls/Cargo.toml | 1 - examples/balls_v2/Cargo.toml | 2 -- examples/slimed/Cargo.toml | 1 - examples/template_complicated/Cargo.toml | 2 -- examples/template_minimal/Cargo.toml | 2 -- 6 files changed, 10 deletions(-) diff --git a/examples/audio_playback/Cargo.toml b/examples/audio_playback/Cargo.toml index 69ed28e..26aa2a7 100644 --- a/examples/audio_playback/Cargo.toml +++ b/examples/audio_playback/Cargo.toml @@ -6,5 +6,3 @@ edition = "2021" [dependencies] anyhow = "=1.0.55" libretrogd = { path = "../../libretrogd" } -sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2/", rev = "819ab438ac971a922d6ee1da558822002d343b4e", features = ["static-link", "bundled", "use-pkgconfig", "unsafe_textures"] } - diff --git a/examples/balls/Cargo.toml b/examples/balls/Cargo.toml index e56706b..6f8988a 100644 --- a/examples/balls/Cargo.toml +++ b/examples/balls/Cargo.toml @@ -6,4 +6,3 @@ edition = "2021" [dependencies] anyhow = "=1.0.55" libretrogd = { path = "../../libretrogd" } -sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2/", rev = "819ab438ac971a922d6ee1da558822002d343b4e", features = ["static-link", "bundled", "use-pkgconfig", "unsafe_textures"] } diff --git a/examples/balls_v2/Cargo.toml b/examples/balls_v2/Cargo.toml index 3798d43..fb60f44 100644 --- a/examples/balls_v2/Cargo.toml +++ b/examples/balls_v2/Cargo.toml @@ -6,5 +6,3 @@ edition = "2021" [dependencies] anyhow = "=1.0.55" libretrogd = { path = "../../libretrogd", features = [] } -sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2/", rev = "819ab438ac971a922d6ee1da558822002d343b4e", features = ["static-link", "bundled", "use-pkgconfig", "unsafe_textures"] } - diff --git a/examples/slimed/Cargo.toml b/examples/slimed/Cargo.toml index f1ec34b..c46fecb 100644 --- a/examples/slimed/Cargo.toml +++ b/examples/slimed/Cargo.toml @@ -6,7 +6,6 @@ edition = "2021" [dependencies] anyhow = "=1.0.55" libretrogd = { path = "../../libretrogd", features = [] } -sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2/", rev = "819ab438ac971a922d6ee1da558822002d343b4e", features = ["static-link", "bundled", "use-pkgconfig", "unsafe_textures"] } serde = { version = "1.0.136", features = ["derive"] } serde_json = "1.0.79" diff --git a/examples/template_complicated/Cargo.toml b/examples/template_complicated/Cargo.toml index 381fc3b..8ad7e2f 100644 --- a/examples/template_complicated/Cargo.toml +++ b/examples/template_complicated/Cargo.toml @@ -6,5 +6,3 @@ edition = "2021" [dependencies] anyhow = "=1.0.55" libretrogd = { path = "../../libretrogd" } -sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2/", rev = "819ab438ac971a922d6ee1da558822002d343b4e", features = ["static-link", "bundled", "use-pkgconfig", "unsafe_textures"] } - diff --git a/examples/template_minimal/Cargo.toml b/examples/template_minimal/Cargo.toml index 3610757..4f06c12 100644 --- a/examples/template_minimal/Cargo.toml +++ b/examples/template_minimal/Cargo.toml @@ -6,5 +6,3 @@ edition = "2021" [dependencies] anyhow = "=1.0.55" libretrogd = { path = "../../libretrogd" } -sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2/", rev = "819ab438ac971a922d6ee1da558822002d343b4e", features = ["static-link", "bundled", "use-pkgconfig", "unsafe_textures"] } -