Skip to content

Commit

Permalink
Merge pull request #282 from stanislav-tkach/release-3-0-8
Browse files Browse the repository at this point in the history
Release the `3.0.8` version
  • Loading branch information
stanislav-tkach authored Nov 23, 2021
2 parents 6a045b7 + 72f09b6 commit 84d722b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [3.0.8] (2021-11-23)

- NetBSD support has been added. (#279)

- Fedora 35 detection has been fixed. (#281)

## [3.0.7] (2021-08-12)
Expand Down Expand Up @@ -227,7 +231,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.0.7...HEAD
[Unreleased]: https://github.com/stanislav-tkach/os_info/compare/v3.0.8...HEAD
[3.0.8]: https://github.com/stanislav-tkach/os_info/compare/v3.0.7...v3.0.8
[3.0.7]: https://github.com/stanislav-tkach/os_info/compare/v3.0.6...v3.0.7
[3.0.6]: https://github.com/stanislav-tkach/os_info/compare/v3.0.5...v3.0.6
[3.0.5]: https://github.com/stanislav-tkach/os_info/compare/v3.0.4...v3.0.5
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
**Project details:**
[![LoC](https://tokei.rs/b1/github/stanislav-tkach/os_info)](https://github.com/stanislav-tkach/os_info)
![Rust 1.41+ required](https://img.shields.io/badge/rust-1.41+-blue.svg?label=Required%20Rust)
![Dependencies](https://api.dependabot.com/badges/status?host=github&repo=stanislav-tkach/os_info)

## Overview

Expand All @@ -29,15 +28,15 @@ To use this crate, add `os_info` as a dependency to your project's Cargo.toml:

```toml
[dependencies]
os_info = "3.0"
os_info = "3"
```

This project has `serde` as an optional dependency, so if you don't need it, then
you can speed up compilation disabling it:

```toml
[dependencies]
os_info = { version = "3.0", default-features = false }
os_info = { version = "3", default-features = false }
```

#### Example
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name = "os_info"
path = "src/main.rs"

[dependencies]
os_info = { version = "3.0.7", default-features = false, path = "../os_info" }
os_info = { version = "3.0.8", default-features = false, path = "../os_info" }
log = "0.4.5"
env_logger = "0.9.0"
structopt = "0.3"
Expand Down
1 change: 1 addition & 0 deletions cspell-dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ linuxmint
macos
manjaro
msvc
netbsd
nixos
println
raspberry
Expand Down
2 changes: 1 addition & 1 deletion os_info/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "os_info"
version = "3.0.7"
version = "3.0.8"
authors = ["Jan Schulte <[email protected]>", "Stanislav Tkach <[email protected]>"]
description = "Detect the operating system type and version."
documentation = "https://docs.rs/os_info"
Expand Down
7 changes: 6 additions & 1 deletion os_info/src/bitness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ pub fn get() -> Bitness {

#[cfg(all(
test,
any(target_os = "freebsd", target_os = "linux", target_os = "macos", target_os = "netbsd")
any(
target_os = "freebsd",
target_os = "linux",
target_os = "macos",
target_os = "netbsd"
)
))]
mod tests {
use super::*;
Expand Down

0 comments on commit 84d722b

Please sign in to comment.