-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from voidentente/bevy-0.12
Port to Bevy 0.12, use isahc instead of surf
- Loading branch information
Showing
7 changed files
with
229 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,32 @@ | ||
[package] | ||
authors = ["Johan Helsing <[email protected]>"] | ||
categories = ["network-programming", "game-development", "wasm", "web-programming"] | ||
description = "Bevy asset loader that transparently supports loading over http(s)" | ||
description = "Implementations for http(s) asset sources for Bevy" | ||
edition = "2021" | ||
keywords = ["gamedev", "networking", "wasm", "bevy"] | ||
license = "MIT OR Apache-2.0" | ||
name = "bevy_web_asset" | ||
repository = "https://github.com/johanhelsing/bevy_web_asset" | ||
version = "0.6.0" | ||
version = "0.7.0" | ||
|
||
[dependencies] | ||
bevy = {version = "0.10", default-features = false, features = ["bevy_asset"]} | ||
|
||
# Copied from https://github.com/bevyengine/bevy/blob/main/crates/bevy_asset/Cargo.toml | ||
crossbeam-channel = "0.5.0" | ||
notify = "5.0.0" | ||
bevy = {version = "0.12", default-features = false, features = ["bevy_asset"]} | ||
|
||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
surf = {version = "2.3", default-features = false, features = ["h1-client-rustls"]} | ||
isahc = "1" | ||
|
||
[target.'cfg(target_arch = "wasm32")'.dependencies] | ||
web-sys = {version = "0.3.22", default-features = false} | ||
js-sys = {version = "0.3", default-features = false} | ||
wasm-bindgen = {version = "0.2", default-features = false} | ||
wasm-bindgen-futures = "0.4" | ||
web-sys = {version = "0.3.22", default-features = false} | ||
|
||
[dev-dependencies] | ||
bevy = {version = "0.10", default-features = false, features = [ | ||
bevy = {version = "0.12", default-features = false, features = [ | ||
"bevy_asset", | ||
"bevy_core_pipeline", | ||
"bevy_sprite", | ||
"png", | ||
"webgl2", | ||
"x11", # GitHub Actions runners don't have libxkbcommon installed, so can't use Wayland | ||
]} | ||
]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
#![warn(missing_docs)] | ||
#![doc = include_str!("../README.md")] | ||
|
||
mod web_asset_io; | ||
mod web_asset_plugin; | ||
mod web_asset_source; | ||
|
||
pub use web_asset_io::WebAssetIo; | ||
pub use web_asset_plugin::WebAssetPlugin; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.