Merge branch 'master' into url_macros_to_the_rescue
All checks were successful
Run Check Script / check (pull_request) Successful in 1m6s

This commit is contained in:
2025-09-08 10:37:57 -04:00
38 changed files with 2081 additions and 135 deletions

View File

@@ -53,7 +53,7 @@ pub type IpAddress = std::net::IpAddr;
/// Represents a URL, which can either be a remote URL or a local file path.
///
/// For convenience, the `harmony_macros` crate provides `remote_url!` and `local_folder!`
/// For convenience, the `harmony_macros` crate provides `hurl!` and `local_folder!`
/// macros to construct `Url` variants from string literals.
///
/// # Examples
@@ -67,10 +67,10 @@ pub type IpAddress = std::net::IpAddr;
/// // The `use` statement below is for the doc test. In a real project,
/// // you would use `use harmony_types::Url;`
/// # use harmony_types::net::Url;
/// let remote_url = Url::Url(url::Url::parse("https://example.com").unwrap());
/// let url = Url::Url(url::Url::parse("https://example.com").unwrap());
/// let local_path = Url::LocalFolder("/var/data".to_string());
///
/// assert!(matches!(remote_url, Url::Url(_)));
/// assert!(matches!(url, Url::Url(_)));
/// assert!(matches!(local_path, Url::LocalFolder(_)));
/// ```
///
@@ -79,10 +79,10 @@ pub type IpAddress = std::net::IpAddr;
/// If `harmony_macros` is a dependency, you can create `Url`s more concisely.
///
/// ```rust,ignore
/// use harmony_macros::{remote_url, local_folder};
/// use harmony_macros::{hurl, local_folder};
/// use harmony_types::Url;
///
/// let remote_url = remote_url!("https://example.com");
/// let hurl = hurl!("https://example.com");
/// let local_path = local_folder!("/var/data");
/// ```
#[derive(Debug, Clone)]