Skip to content

Commit

Permalink
Merge pull request #332 from stanislav-tkach/release-3-6-0
Browse files Browse the repository at this point in the history
Release the 3.6.0 version
  • Loading branch information
stanislav-tkach committed Jan 30, 2023
2 parents b12491e + 5377003 commit 7011ce4
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 15 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [3.6.0] (2023-01-30)

- OpenCloudOS support has been added. (#328)

- openEuler support has been added. (#328)

- Arch Linux ARM and Debian ARM detection has been improved. (#331)

## [3.5.1] (2022-09-19)

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

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

[Unreleased]: https://github.com/stanislav-tkach/os_info/compare/v3.5.1...HEAD
[Unreleased]: https://github.com/stanislav-tkach/os_info/compare/v3.6.0...HEAD
[3.6.0]: https://github.com/stanislav-tkach/os_info/compare/v3.5.1...v3.6.0
[3.5.1]: https://github.com/stanislav-tkach/os_info/compare/v3.5.0...v3.5.1
[3.5.0]: https://github.com/stanislav-tkach/os_info/compare/v3.4.0...v3.5.0
[3.4.0]: https://github.com/stanislav-tkach/os_info/compare/v3.3.0...v3.4.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -45,7 +45,7 @@ os_info = { version = "3", default-features = false }
let info = os_info::get();

// Print full information:
println!("OS information: {}", info);
println!("OS information: {info}");

// Print information separately:
println!("Type: {}", info.os_type());
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Expand Up @@ -18,7 +18,7 @@ name = "os_info"
path = "src/main.rs"

[dependencies]
os_info = { version = "3.5.1", default-features = false, path = "../os_info" }
os_info = { version = "3.6.0", default-features = false, path = "../os_info" }
log = "0.4.5"
env_logger = "0.10"
clap = { version = "4", features = ["derive"] }
Expand Down
1 change: 1 addition & 0 deletions cspell-dictionary.txt
Expand Up @@ -2,6 +2,7 @@ aarch64
almalinux
antergos
aosc
archarm
artix
bitness
centos
Expand Down
2 changes: 1 addition & 1 deletion os_info/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "os_info"
version = "3.5.1"
version = "3.6.0"
authors = ["Jan Schulte <hello@unexpected-co.de>", "Stanislav Tkach <stanislav.tkach@gmail.com>"]
description = "Detect the operating system type and version."
documentation = "https://docs.rs/os_info"
Expand Down
2 changes: 1 addition & 1 deletion os_info/examples/print_version.rs
Expand Up @@ -2,7 +2,7 @@ fn main() {
let info = os_info::get();

// Print full information:
println!("OS information: {}", info);
println!("OS information: {info}");

// Print information separately:
println!("Type: {}", info.os_type());
Expand Down
6 changes: 3 additions & 3 deletions os_info/src/info.rs
Expand Up @@ -15,7 +15,7 @@ use super::{Bitness, Type, Version};
/// use os_info;
///
/// let info = os_info::get();
/// println!("OS information: {}", info);
/// println!("OS information: {info}");
/// ```
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
Expand Down Expand Up @@ -162,10 +162,10 @@ impl Display for Info {
write!(f, " {}", self.version)?;
}
if let Some(ref edition) = self.edition {
write!(f, " ({})", edition)?;
write!(f, " ({edition})")?;
}
if let Some(ref codename) = self.codename {
write!(f, " ({})", codename)?;
write!(f, " ({codename})")?;
}
write!(f, " [{}]", self.bitness)
}
Expand Down
4 changes: 2 additions & 2 deletions os_info/src/lib.rs
Expand Up @@ -7,7 +7,7 @@
missing_debug_implementations,
missing_docs,
unsafe_code,
missing_doc_code_examples
rustdoc::missing_doc_code_examples
)]

#[cfg(target_os = "android")]
Expand Down Expand Up @@ -97,7 +97,7 @@ pub use crate::{bitness::Bitness, info::Info, os_type::Type, version::Version};
/// let info = os_info::get();
///
/// // Print full information:
/// println!("OS information: {}", info);
/// println!("OS information: {info}");
///
/// // Print information separately:
/// println!("Type: {}", info.os_type());
Expand Down
2 changes: 1 addition & 1 deletion os_info/src/os_type.rs
Expand Up @@ -108,7 +108,7 @@ impl Display for Type {
Type::Redhat => write!(f, "Red Hat Linux"),
Type::RedHatEnterprise => write!(f, "Red Hat Enterprise Linux"),
Type::SUSE => write!(f, "SUSE Linux Enterprise Server"),
_ => write!(f, "{:?}", self),
_ => write!(f, "{self:?}"),
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions os_info/src/version.rs
Expand Up @@ -55,15 +55,15 @@ impl Display for Version {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
match *self {
Self::Unknown => f.write_str("Unknown"),
Self::Semantic(major, minor, patch) => write!(f, "{}.{}.{}", major, minor, patch),
Self::Semantic(major, minor, patch) => write!(f, "{major}.{minor}.{patch}"),
Self::Rolling(ref date) => {
let date = match date {
Some(date) => format!(" ({})", date),
Some(date) => format!(" ({date})"),
None => "".to_owned(),
};
write!(f, "Rolling Release{}", date)
write!(f, "Rolling Release{date}")
}
Self::Custom(ref version) => write!(f, "{}", version),
Self::Custom(ref version) => write!(f, "{version}"),
}
}
}
Expand Down

0 comments on commit 7011ce4

Please sign in to comment.