Skip to content

Commit 583f92f

Browse files
committed
Move changelog into rustdoc.
1 parent c2ce7f1 commit 583f92f

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "unix_mode"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
authors = ["Martin Pool <[email protected]>"]
55
edition = "2018"
66
description = "Decode Unix file mode bits (even on non-Unix platforms)"

NEWS.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
# unix\_mode release history
1+
# unix\_mode changelog
22

3-
## 0.1.2 2021-08-1
4-
5-
* Add `is_setuid`, `is_setgid`, `is_sticky`.
6-
7-
## 0.1.1
8-
9-
* Fix tests on Windows.
10-
11-
## 0.1.0
12-
13-
* Initial release.
3+
See src/lib.rs or <https://docs.rs/unix_mode#changelog>
144

src/lib.rs

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,31 @@
3333
//! interpret the bits.
3434
//!
3535
//! For example, this can be used with the return value from
36-
//! `std::os::unix::fs::MetadataExt::mode()`.
36+
//! [std::os::unix::fs::MetadataExt::mode].
3737
//!
38-
//! The names of the predicate functions match `std::fs::FileType` and
39-
//! `std::os::unix::fs::FileTypeExt`.
38+
//! The names of the predicate functions match [std::fs::FileType] and
39+
//! [std::os::unix::fs::FileTypeExt].
40+
//!
41+
//! # Changelog
42+
//!
43+
//! ## 0.1.3
44+
//!
45+
//! * Add [Type] enum for matching the file type.
46+
//! * Add [Access], and [Accessor] enums for testing permissions.
47+
//! * More tests.
48+
//! * Move changelog into Rustdoc.
49+
//!
50+
//! ## 0.1.2 2021-08-1
51+
//!
52+
//! * Add [is_setuid], [is_setgid], [is_sticky].
53+
//!
54+
//! ## 0.1.1
55+
//!
56+
//! * Fix tests on Windows.
57+
//!
58+
//! ## 0.1.0
59+
//!
60+
//! * Initial release.
4061
4162
/// Return just the bits representing the type of file.
4263
fn type_bits(mode: u32) -> u32 {

0 commit comments

Comments
 (0)