10 releases
0.1.9 | Sep 4, 2024 |
---|---|
0.1.8 | Aug 5, 2024 |
0.1.7 | Jul 31, 2024 |
#434 in Procedural macros
896 downloads per month
13KB
201 lines
Compile-time URL validation
This crate provides a url! macro for compile-time URL validation.
Examples
// This compiles correctly
let valid = url!("https://www.rust-lang.org/");
// This triggers a compiler error
let invalid = url!("foo");
Installation
cargo add url-macro url
Important: add the url
crate too.
Gratitude
Like the project? ⭐ Star this repo on GitHub!
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.
Dependencies
~1.5MB
~36K SLoC