Skip to content

Commit

Permalink
Move changelog into rustdoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Oct 26, 2021
1 parent c2ce7f1 commit 583f92f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unix_mode"
version = "0.1.2"
version = "0.1.3"
authors = ["Martin Pool <[email protected]>"]
edition = "2018"
description = "Decode Unix file mode bits (even on non-Unix platforms)"
Expand Down
14 changes: 2 additions & 12 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
# unix\_mode release history
# unix\_mode changelog

## 0.1.2 2021-08-1

* Add `is_setuid`, `is_setgid`, `is_sticky`.

## 0.1.1

* Fix tests on Windows.

## 0.1.0

* Initial release.
See src/lib.rs or <https://docs.rs/unix_mode#changelog>

27 changes: 24 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,31 @@
//! interpret the bits.
//!
//! For example, this can be used with the return value from
//! `std::os::unix::fs::MetadataExt::mode()`.
//! [std::os::unix::fs::MetadataExt::mode].
//!
//! The names of the predicate functions match `std::fs::FileType` and
//! `std::os::unix::fs::FileTypeExt`.
//! The names of the predicate functions match [std::fs::FileType] and
//! [std::os::unix::fs::FileTypeExt].
//!
//! # Changelog
//!
//! ## 0.1.3
//!
//! * Add [Type] enum for matching the file type.
//! * Add [Access], and [Accessor] enums for testing permissions.
//! * More tests.
//! * Move changelog into Rustdoc.
//!
//! ## 0.1.2 2021-08-1
//!
//! * Add [is_setuid], [is_setgid], [is_sticky].
//!
//! ## 0.1.1
//!
//! * Fix tests on Windows.
//!
//! ## 0.1.0
//!
//! * Initial release.
/// Return just the bits representing the type of file.
fn type_bits(mode: u32) -> u32 {
Expand Down

0 comments on commit 583f92f

Please sign in to comment.