[−][src]Macro check_latest::new_versions_async
Helper for creating a new Versions
.
Will assume the correct crate_name
and user_agent
based on the contents
of your Cargo.toml
, but these values can be overridden.
Examples
Basic Usage
use check_latest::new_versions_async; let versions = new_versions_async!().await;
Overriding Default Values
*NOTE Overriding both defaults is no different than just using
Versions::new
. You will probably want to override only one field, if any,
if using this macro.
use check_latest::new_versions_async; let versions = new_versions_async!( crate_name = "renamed-crate", user_agent = "my-user-agent", ).await;