collect!() { /* proc-macro */ }Available on crate feature
macros only.Expand description
Collect licensing information at build-time.
It takes the same arguments as CollectConfig.
Please see the examples for the format.
§Examples
collect!(); // collect only normal dependencies
collect!(build); // collect normal and build dependencies
collect!(dev); // collect normal and (direct) development dependencies
collect!(build, dev); // collect normal, build and (direct) development dependencies
collect!(build = true); // boolean arguments can also be explicitly set to true
collect!(build = false); // … or to false (which is the default for `build`)
collect!(platform(any)); // collect dependencies regardless of platform
// only collect dependencies corresponding to the specified platform
collect!(platform(static(target = "aarch64-apple-darwin", cfg(target_os = "macos", target_family = "unix", unix))));
#[cfg(feature = "current_platform")]
collect!(platform(current)); // collect dependencies for current platform