Skip to content

Commit 7011ce4

Browse files
Merge pull request #332 from stanislav-tkach/release-3-6-0
Release the 3.6.0 version
2 parents b12491e + 5377003 commit 7011ce4

10 files changed

+25
-15
lines changed

CHANGELOG.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
## [3.6.0] (2023-01-30)
8+
9+
- OpenCloudOS support has been added. (#328)
10+
11+
- openEuler support has been added. (#328)
12+
13+
- Arch Linux ARM and Debian ARM detection has been improved. (#331)
14+
715
## [3.5.1] (2022-09-19)
816

917
- Windows 11 detection has been fixed. (#322)
@@ -273,7 +281,8 @@ All notable changes to this project will be documented in this file.
273281

274282
The first release containing only minor infrastructural changes and based on [os_type](https://github.com/schultyy/os_type).
275283

276-
[Unreleased]: https://github.com/stanislav-tkach/os_info/compare/v3.5.1...HEAD
284+
[Unreleased]: https://github.com/stanislav-tkach/os_info/compare/v3.6.0...HEAD
285+
[3.6.0]: https://github.com/stanislav-tkach/os_info/compare/v3.5.1...v3.6.0
277286
[3.5.1]: https://github.com/stanislav-tkach/os_info/compare/v3.5.0...v3.5.1
278287
[3.5.0]: https://github.com/stanislav-tkach/os_info/compare/v3.4.0...v3.5.0
279288
[3.4.0]: https://github.com/stanislav-tkach/os_info/compare/v3.3.0...v3.4.0

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ os_info = { version = "3", default-features = false }
4545
let info = os_info::get();
4646

4747
// Print full information:
48-
println!("OS information: {}", info);
48+
println!("OS information: {info}");
4949

5050
// Print information separately:
5151
println!("Type: {}", info.os_type());

cli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ name = "os_info"
1818
path = "src/main.rs"
1919

2020
[dependencies]
21-
os_info = { version = "3.5.1", default-features = false, path = "../os_info" }
21+
os_info = { version = "3.6.0", default-features = false, path = "../os_info" }
2222
log = "0.4.5"
2323
env_logger = "0.10"
2424
clap = { version = "4", features = ["derive"] }

cspell-dictionary.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ aarch64
22
almalinux
33
antergos
44
aosc
5+
archarm
56
artix
67
bitness
78
centos

os_info/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "os_info"
3-
version = "3.5.1"
3+
version = "3.6.0"
44
authors = ["Jan Schulte <[email protected]>", "Stanislav Tkach <[email protected]>"]
55
description = "Detect the operating system type and version."
66
documentation = "https://docs.rs/os_info"

os_info/examples/print_version.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ fn main() {
22
let info = os_info::get();
33

44
// Print full information:
5-
println!("OS information: {}", info);
5+
println!("OS information: {info}");
66

77
// Print information separately:
88
println!("Type: {}", info.os_type());

os_info/src/info.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use super::{Bitness, Type, Version};
1515
/// use os_info;
1616
///
1717
/// let info = os_info::get();
18-
/// println!("OS information: {}", info);
18+
/// println!("OS information: {info}");
1919
/// ```
2020
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
2121
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
@@ -162,10 +162,10 @@ impl Display for Info {
162162
write!(f, " {}", self.version)?;
163163
}
164164
if let Some(ref edition) = self.edition {
165-
write!(f, " ({})", edition)?;
165+
write!(f, " ({edition})")?;
166166
}
167167
if let Some(ref codename) = self.codename {
168-
write!(f, " ({})", codename)?;
168+
write!(f, " ({codename})")?;
169169
}
170170
write!(f, " [{}]", self.bitness)
171171
}

os_info/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
missing_debug_implementations,
88
missing_docs,
99
unsafe_code,
10-
missing_doc_code_examples
10+
rustdoc::missing_doc_code_examples
1111
)]
1212

1313
#[cfg(target_os = "android")]
@@ -97,7 +97,7 @@ pub use crate::{bitness::Bitness, info::Info, os_type::Type, version::Version};
9797
/// let info = os_info::get();
9898
///
9999
/// // Print full information:
100-
/// println!("OS information: {}", info);
100+
/// println!("OS information: {info}");
101101
///
102102
/// // Print information separately:
103103
/// println!("Type: {}", info.os_type());

os_info/src/os_type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl Display for Type {
108108
Type::Redhat => write!(f, "Red Hat Linux"),
109109
Type::RedHatEnterprise => write!(f, "Red Hat Enterprise Linux"),
110110
Type::SUSE => write!(f, "SUSE Linux Enterprise Server"),
111-
_ => write!(f, "{:?}", self),
111+
_ => write!(f, "{self:?}"),
112112
}
113113
}
114114
}

os_info/src/version.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ impl Display for Version {
5555
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
5656
match *self {
5757
Self::Unknown => f.write_str("Unknown"),
58-
Self::Semantic(major, minor, patch) => write!(f, "{}.{}.{}", major, minor, patch),
58+
Self::Semantic(major, minor, patch) => write!(f, "{major}.{minor}.{patch}"),
5959
Self::Rolling(ref date) => {
6060
let date = match date {
61-
Some(date) => format!(" ({})", date),
61+
Some(date) => format!(" ({date})"),
6262
None => "".to_owned(),
6363
};
64-
write!(f, "Rolling Release{}", date)
64+
write!(f, "Rolling Release{date}")
6565
}
66-
Self::Custom(ref version) => write!(f, "{}", version),
66+
Self::Custom(ref version) => write!(f, "{version}"),
6767
}
6868
}
6969
}

0 commit comments

Comments
 (0)