Skip to content

Commit

Permalink
remove ureq tls feature
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchantey committed Dec 24, 2024
1 parent b423a92 commit c675287
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ accesskit = "0.17"
smol = "2"
smol-macros = "0.1"
smol-hyper = "0.1"
ureq = { version = "2.10", default-features = false, features = ["json"] }
ureq = { version = "2.10", default-features = false, features = ["json", "tls"] }

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen = { version = "0.2" }
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_asset/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ notify-debouncer-full = { version = "0.4.0", optional = true }
ureq = { version = "2.10", optional = true, default-features = false, features = [
"brotli",
"gzip",
"tls",
# we should add tls feature when ring gets a cleaner license https://github.com/briansmith/ring/issues/1827
] }

[dev-dependencies]
Expand Down
4 changes: 4 additions & 0 deletions crates/bevy_asset/src/http_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ use std::path::{Path, PathBuf};
/// Adds the `http` and `https` asset sources to the app.
/// Any asset path that begins with `http` or `https` will be loaded from the web
/// via `fetch`(wasm) or `ureq`(native).
/// Note that the use of secure `https` sources in non-wasm builds requires the following dependency:
/// ```toml
/// ureq = { version = "*", features = ["tls"] }
/// ```
pub fn http_source_plugin(app: &mut App) {
app.register_asset_source(
"http",
Expand Down
4 changes: 4 additions & 0 deletions examples/asset/http_source.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
//! Example usage of the `http` asset source to load assets from the web.
/// Note that the use of secure `https` sources in non-wasm builds requires the following dependency:
//! ```toml
//! ureq = { version = "*", features = ["tls"] }
//! ```
use bevy::prelude::*;

fn main() {
Expand Down

0 comments on commit c675287

Please sign in to comment.