1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! libvips version information encapsulation
use OnceLock;
/// Returns the libvips version as a tuple: (major, minor, micro)
///
/// # Example
/// ```no_run
/// use vips::version;
///
/// let (major, minor, micro) = version();
/// println!("libvips version: {}.{}.{}", major, minor, micro);
/// ```
/// Returns the full version string, such as "8.14.2"
///
/// Cached after the first call so repeated queries do not re-allocate.
///
/// # Example
/// ```no_run
/// use vips::version_string;
///
/// let version_str = version_string();
/// println!("libvips version string: {}", version_str);
/// ```