]> git.proxmox.com Git - pxar.git/commitdiff
expose format::mode at the top level
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 23 Mar 2020 12:52:01 +0000 (13:52 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 23 Mar 2020 12:52:01 +0000 (13:52 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/format.rs
src/lib.rs

index d6fcb83c53b05b1fbbcee310280ae4eab0a5efd2..a136cc0473fce4d7dd71a54921c34e6f846b7482 100644 (file)
@@ -32,6 +32,7 @@ pub mod mode {
     pub const IFDIR  : u64 = 0o0040000;
     pub const IFCHR  : u64 = 0o0020000;
     pub const IFIFO  : u64 = 0o0010000;
+
     pub const ISUID  : u64 = 0o0004000;
     pub const ISGID  : u64 = 0o0002000;
     pub const ISVTX  : u64 = 0o0001000;
index ae53857552d5e264048fcec1781c09487e50e6cf..de36b04aad5a12b3e8c5f0252457550258822637 100644 (file)
@@ -23,8 +23,12 @@ pub mod encoder;
 
 /// Reexport of `format::Entry`. Since this conveys mostly information found via the `stat` syscall
 /// we mostly use this name for public interfaces.
+#[doc(inline)]
 pub use format::Entry as Stat;
 
+#[doc(inline)]
+pub use format::mode;
+
 /// File metadata found in pxar archives.
 ///
 /// This includes the usual data you'd get from `stat()` as well as ACLs, extended attributes, file