Compile-time URL validation
Overview
A compile-time URL validation macro. Parses and checks URLs at compile-time, converting valid URLs into url::Url objects. Provides early error detection for malformed URLs.
Examples
let google = url!;
let invalid_url = url!;
^^^^^
Triggers a compiler error
Installation
cargo add url-macro url
Important: add the url crate too.
License
Apache License 2.0 or MIT License at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.