darkwing

Macro release_name

source
macro_rules! release_name {
    () => { ... };
}
Expand description

Returns the intended release for Sentry as an Option<Cow<'static, str>>.

This can be used with ClientOptions to set the release name. It uses the information supplied by cargo and vergen to calculate a release.

The release name is formatted as: {package_name}@{version}-{build_timestamp}

§Examples

let _sentry = sentry::init(sentry::ClientOptions {
    release: sentry::release_name!(),
    ..Default::default()
});

§Safety

This macro uses unsafe code to handle static initialization and string lifetime conversion. The unsafe operations are carefully controlled and only used for static initialization.