I'm working on a deployment scripting framework, which I'd like to be configured with Rust code.
As such, I want to create various macros that can double-check the configuration values.
url!("https://example.com") will make sure it's a valid URL while compiling.
For that check, I want to use the
url-crate, but nothing from that crate ends up in the TokenStream-output or the rest of the code-base, so ideally I would rather not have that dependency in the final binary.
(My currently favored architecture will upload the compiled binary to the target host, so keeping binary size low is relatively important.)
Any idea if this is possible? Cargo's dev-dependencies and build-dependencies are not available during macro evaluation, so those don't work.
Thanks in advance.