Skip to content

Commit 3687172

Browse files
committed
rr_version_string no longer contains +dev ending for dev releases
1 parent 6de2b84 commit 3687172

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

crates/top/rerun_c/src/lib.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,15 @@ pub struct CError {
305305
#[no_mangle]
306306
pub extern "C" fn rr_version_string() -> *const c_char {
307307
static VERSION: Lazy<CString> = Lazy::new(|| {
308-
CString::new(re_sdk::build_info().version.to_string()).expect("CString::new failed")
308+
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")
309317
}); // unwrap: there won't be any NUL bytes in the string
310318

311319
VERSION.as_ptr()

0 commit comments

Comments
 (0)