# Compile-time URL validation
[](https://github.com/DenisGorbachev/url-macro)
[](https://docs.rs/url-macro)
This crate provides a [url!](https://docs.rs/url-macro/latest/url_macro/macro.url.html) macro for compile-time URL validation.
## Examples
```rust
// This compiles correctly
let valid = url!("https://www.rust-lang.org/");
```
```rust
// This triggers a compiler error
let invalid = url!("foo");
```
## Installation
```shell
cargo add url-macro url
```
## Gratitude
Like the project? [⭐ Star this repo](https://github.com/DenisGorbachev/url-macro) on GitHub!
## License
[Apache-2.0](LICENSE-APACHE) or [MIT](LICENSE-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.