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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#[inline]
pub fn compiled_with_filesystem() -> bool {
cfg!(feature = "enable-filesystem")
}
#[inline]
pub fn compiled_with_multithreading() -> bool {
cfg!(feature = "enable-multithreading")
}
#[inline]
pub fn compiled_with_ffmpeg() -> bool {
cfg!(feature = "enable-ffmpeg")
}
#[inline]
pub fn compiled_with_ffmpeg_link_static() -> bool {
cfg!(feature = "enable-ffmpeg-static")
}
#[inline]
pub fn compiled_with_ffmpeg_build_link_static() -> bool {
cfg!(feature = "enable-ffmpeg-build")
}
const MIT_LICENSE: &str = "MIT";
const LGPL_2_1_OR_LATER_LICENSE: &str = "LGPL-2.1+";
#[inline]
pub fn copyright_license_spdx() -> &'static str {
if cfg!(feature = "enable-ffmpeg") {
return LGPL_2_1_OR_LATER_LICENSE;
}
MIT_LICENSE
}
#[inline]
pub fn babycat_version() -> &'static str {
option_env!("CARGO_PKG_VERSION").unwrap_or("0.0.0")
}