Skip to content

Commit

Permalink
Merge pull request #21 from oli-obk/public
Browse files Browse the repository at this point in the history
Expose WebAssetReader as part of the public API
  • Loading branch information
johanhelsing authored Nov 28, 2023
2 parents f3265f7 + da9dbed commit d31ac01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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.7.0"
version = "0.7.1"

[dependencies]
bevy = {version = "0.12", default-features = false, features = ["bevy_asset"]}
Expand All @@ -29,4 +29,4 @@ bevy = {version = "0.12", default-features = false, features = [
"png",
"webgl2",
"x11", # GitHub Actions runners don't have libxkbcommon installed, so can't use Wayland
]}
]}
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ mod web_asset_plugin;
mod web_asset_source;

pub use web_asset_plugin::WebAssetPlugin;
pub use web_asset_source::WebAssetReader;
5 changes: 4 additions & 1 deletion src/web_asset_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ use std::path::{Path, PathBuf};

use bevy::asset::io::{AssetReader, AssetReaderError, Reader};

pub(super) enum WebAssetReader {
/// Treats paths as urls to load assets from.
pub enum WebAssetReader {
/// Unencrypted connections.
Http,
/// Use TLS for setting up connections.
Https,
}

Expand Down

0 comments on commit d31ac01

Please sign in to comment.