diff --git a/Cargo.toml b/Cargo.toml index 54a2643c63e1d..404638207e01d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" } diff --git a/crates/bevy_asset/Cargo.toml b/crates/bevy_asset/Cargo.toml index 84668147f6bb4..1e57abe9e3cad 100644 --- a/crates/bevy_asset/Cargo.toml +++ b/crates/bevy_asset/Cargo.toml @@ -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] diff --git a/crates/bevy_asset/src/http_source.rs b/crates/bevy_asset/src/http_source.rs index 4c08309a1c5c6..654a9b2cedd9e 100644 --- a/crates/bevy_asset/src/http_source.rs +++ b/crates/bevy_asset/src/http_source.rs @@ -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", diff --git a/examples/asset/http_source.rs b/examples/asset/http_source.rs index 27ee70099b449..5ff9c0d32aff7 100644 --- a/examples/asset/http_source.rs +++ b/examples/asset/http_source.rs @@ -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() {