rrd 0.3.0

Bindings to librrd to create and interact with round robin databases created with Tobias Oetiker's rrdtool (https://www.rrdtool.org/).
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Get the `librrd` version

use std::ffi::CStr;

/// Returns the version of `librrd` this library is linked to, e.g. `"1.9.0"`.
#[must_use]
pub fn librrd_version() -> String {
    (unsafe { CStr::from_ptr(rrd_sys::rrd_strversion()) })
        .to_string_lossy()
        .into_owned()
}