diff -Nru rust-winapi-util-0.1.1/Cargo.toml rust-winapi-util-0.1.2/Cargo.toml --- rust-winapi-util-0.1.1/Cargo.toml 1970-01-01 00:00:00.000000000 +0000 +++ rust-winapi-util-0.1.2/Cargo.toml 1970-01-01 00:00:00.000000000 +0000 @@ -12,7 +12,7 @@ [package] name = "winapi-util" -version = "0.1.1" +version = "0.1.2" authors = ["Andrew Gallant "] description = "A dumping ground for high level safe wrappers over winapi." homepage = "https://github.com/BurntSushi/winapi-util" @@ -24,4 +24,4 @@ repository = "https://github.com/BurntSushi/winapi-util" [target."cfg(windows)".dependencies.winapi] version = "0.3" -features = ["std", "consoleapi", "errhandlingapi", "fileapi", "minwindef", "processenv", "winbase", "wincon", "winerror"] +features = ["std", "consoleapi", "errhandlingapi", "fileapi", "minwindef", "processenv", "winbase", "wincon", "winerror", "winnt"] diff -Nru rust-winapi-util-0.1.1/Cargo.toml.orig rust-winapi-util-0.1.2/Cargo.toml.orig --- rust-winapi-util-0.1.1/Cargo.toml.orig 2018-08-25 03:10:26.000000000 +0000 +++ rust-winapi-util-0.1.2/Cargo.toml.orig 2019-01-27 17:06:32.000000000 +0000 @@ -1,6 +1,6 @@ [package] name = "winapi-util" -version = "0.1.1" #:version +version = "0.1.2" #:version authors = ["Andrew Gallant "] description = "A dumping ground for high level safe wrappers over winapi." documentation = "https://docs.rs/winapi-util" @@ -23,4 +23,5 @@ "winbase", "wincon", "winerror", + "winnt", ] diff -Nru rust-winapi-util-0.1.1/.cargo_vcs_info.json rust-winapi-util-0.1.2/.cargo_vcs_info.json --- rust-winapi-util-0.1.1/.cargo_vcs_info.json 1970-01-01 00:00:00.000000000 +0000 +++ rust-winapi-util-0.1.2/.cargo_vcs_info.json 1970-01-01 00:00:00.000000000 +0000 @@ -0,0 +1,5 @@ +{ + "git": { + "sha1": "8c407c0455a0bb77b4a4bee9e5705bad9947eb87" + } +} diff -Nru rust-winapi-util-0.1.1/debian/cargo-checksum.json rust-winapi-util-0.1.2/debian/cargo-checksum.json --- rust-winapi-util-0.1.1/debian/cargo-checksum.json 2018-09-08 10:21:13.000000000 +0000 +++ rust-winapi-util-0.1.2/debian/cargo-checksum.json 2019-02-08 08:13:18.000000000 +0000 @@ -1 +1 @@ -{"package":"afc5508759c5bf4285e61feb862b6083c8480aec864fa17a81fdec6f69b461ab","files":{}} +{"package":"7168bab6e1daee33b4557efd0e95d5ca70a03706d39fa5f3fe7a236f584b03c9","files":{}} diff -Nru rust-winapi-util-0.1.1/debian/changelog rust-winapi-util-0.1.2/debian/changelog --- rust-winapi-util-0.1.1/debian/changelog 2018-09-08 10:21:13.000000000 +0000 +++ rust-winapi-util-0.1.2/debian/changelog 2019-02-08 08:13:18.000000000 +0000 @@ -1,3 +1,9 @@ +rust-winapi-util (0.1.2-1) unstable; urgency=medium + + * Package winapi-util 0.1.2 from crates.io using debcargo 2.2.10 + + -- Sylvestre Ledru Fri, 08 Feb 2019 09:13:18 +0100 + rust-winapi-util (0.1.1-1) unstable; urgency=medium * Package winapi-util 0.1.1 from crates.io using debcargo 2.2.6 diff -Nru rust-winapi-util-0.1.1/debian/control rust-winapi-util-0.1.2/debian/control --- rust-winapi-util-0.1.1/debian/control 2018-09-08 10:21:13.000000000 +0000 +++ rust-winapi-util-0.1.2/debian/control 2019-02-08 08:13:18.000000000 +0000 @@ -2,7 +2,7 @@ Section: rust Priority: optional Build-Depends: debhelper (>= 11), - dh-cargo (>= 8), + dh-cargo (>= 15), cargo:native , rustc:native , libstd-rust-dev , @@ -15,9 +15,11 @@ librust-winapi-0.3+std-dev , librust-winapi-0.3+winbase-dev , librust-winapi-0.3+wincon-dev , - librust-winapi-0.3+winerror-dev + librust-winapi-0.3+winerror-dev , + librust-winapi-0.3+winnt-dev Maintainer: Debian Rust Maintainers -Uploaders: Sylvestre Ledru +Uploaders: + Sylvestre Ledru Standards-Version: 4.2.0 Vcs-Git: https://salsa.debian.org/rust-team/debcargo-conf.git [src/winapi-util] Vcs-Browser: https://salsa.debian.org/rust-team/debcargo-conf/tree/master/src/winapi-util @@ -37,15 +39,16 @@ librust-winapi-0.3+std-dev, librust-winapi-0.3+winbase-dev, librust-winapi-0.3+wincon-dev, - librust-winapi-0.3+winerror-dev + librust-winapi-0.3+winerror-dev, + librust-winapi-0.3+winnt-dev Provides: librust-winapi-util+default-dev (= ${binary:Version}), librust-winapi-util-0-dev (= ${binary:Version}), librust-winapi-util-0+default-dev (= ${binary:Version}), librust-winapi-util-0.1-dev (= ${binary:Version}), librust-winapi-util-0.1+default-dev (= ${binary:Version}), - librust-winapi-util-0.1.1-dev (= ${binary:Version}), - librust-winapi-util-0.1.1+default-dev (= ${binary:Version}) + librust-winapi-util-0.1.2-dev (= ${binary:Version}), + librust-winapi-util-0.1.2+default-dev (= ${binary:Version}) Description: Dumping ground for high level safe wrappers over winapi - Rust source code This package contains the source for the Rust winapi-util crate, packaged by debcargo for use with cargo and dh-cargo. diff -Nru rust-winapi-util-0.1.1/debian/copyright.debcargo.hint rust-winapi-util-0.1.2/debian/copyright.debcargo.hint --- rust-winapi-util-0.1.1/debian/copyright.debcargo.hint 2018-09-08 10:21:13.000000000 +0000 +++ rust-winapi-util-0.1.2/debian/copyright.debcargo.hint 2019-02-08 08:13:18.000000000 +0000 @@ -21,8 +21,8 @@ Files: debian/* Copyright: - 2018 Debian Rust Maintainers - 2018 FIXME (overlay) Your Name + 2018-2019 Debian Rust Maintainers + 2018-2019 Sylvestre Ledru License: Unlicense or MIT License: MIT diff -Nru rust-winapi-util-0.1.1/debian/debcargo.toml rust-winapi-util-0.1.2/debian/debcargo.toml --- rust-winapi-util-0.1.1/debian/debcargo.toml 2018-09-08 10:21:13.000000000 +0000 +++ rust-winapi-util-0.1.2/debian/debcargo.toml 2019-02-08 08:13:18.000000000 +0000 @@ -1 +1,2 @@ overlay = "." +uploaders = ["Sylvestre Ledru "] diff -Nru rust-winapi-util-0.1.1/README.md rust-winapi-util-0.1.2/README.md --- rust-winapi-util-0.1.1/README.md 2018-08-24 23:15:39.000000000 +0000 +++ rust-winapi-util-0.1.2/README.md 2019-01-27 17:06:05.000000000 +0000 @@ -38,7 +38,7 @@ Eventually, I started needing to copy & paste a lot of those utility routines. Since they are utility routines, they often don't make sense to expose directly in the crate in which they are defined. Instead of continuing this process, -I decide to make a crate instead. +I decided to make a crate instead. Normally, I'm not a huge fan of "utility" crates like this that don't have a well defined scope, but this is primarily a practical endeavor to make it diff -Nru rust-winapi-util-0.1.1/src/file.rs rust-winapi-util-0.1.2/src/file.rs --- rust-winapi-util-0.1.1/src/file.rs 2018-08-25 02:01:28.000000000 +0000 +++ rust-winapi-util-0.1.2/src/file.rs 2019-01-27 17:00:45.000000000 +0000 @@ -8,6 +8,7 @@ BY_HANDLE_FILE_INFORMATION, GetFileInformationByHandle, GetFileType, }; +use winapi::um::winnt; use AsHandleRef; @@ -49,6 +50,12 @@ } } +/// Returns true if and only if the given file attributes contain the +/// `FILE_ATTRIBUTE_HIDDEN` attribute. +pub fn is_hidden(file_attributes: u64) -> bool { + file_attributes & (winnt::FILE_ATTRIBUTE_HIDDEN as u64) > 0 +} + /// Represents file information such as creation time, file size, etc. /// /// This wraps a [`BY_HANDLE_FILE_INFORMATION`]. @@ -65,6 +72,12 @@ self.0.dwFileAttributes as u64 } + /// Returns true if and only if this file information has the + /// `FILE_ATTRIBUTE_HIDDEN` attribute. + pub fn is_hidden(&self) -> bool { + is_hidden(self.file_attributes()) + } + /// Return the creation time, if one exists. /// /// This corresponds to `ftCreationTime`.