This crate provides a url! macro for compile-time URL validation.
// This compiles correctly
let valid = url!("https://www.rust-lang.org/");// This triggers a compiler error
let invalid = url!("foo");cargo add url-macro urlLike the project? ⭐ Star this repo on GitHub!
Apache-2.0 or MIT.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, shall be licensed as above, without any additional terms or conditions.