We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
+dev
1 parent 6de2b84 commit 3687172Copy full SHA for 3687172
crates/top/rerun_c/src/lib.rs
@@ -305,7 +305,15 @@ pub struct CError {
305
#[no_mangle]
306
pub extern "C" fn rr_version_string() -> *const c_char {
307
static VERSION: Lazy<CString> = Lazy::new(|| {
308
- CString::new(re_sdk::build_info().version.to_string()).expect("CString::new failed")
+ CString::new(
309
+ re_sdk::build_info()
310
+ .version
311
+ .to_string()
312
+ // We use `+dev` as a marker for "this version is unreleased".
313
+ // Ignore it here since we don't update the version macros either on that frequency.
314
+ .trim_end_matches("+dev"),
315
+ )
316
+ .expect("CString::new failed")
317
}); // unwrap: there won't be any NUL bytes in the string
318
319
VERSION.as_ptr()
0 commit comments