Debian Codegraph @

third_party/rust/remove_dir_all/src/lib.rs

raw
1 //! Reliably remove a directory and all of its children.
2 //!
3 //! This library provides a reliable implementation of `remove_dir_all` for Windows.
4 //! For Unix systems, it re-exports `std::fs::remove_dir_all`.
5
6 #![deny(missing_debug_implementations)]
7 #![deny(missing_docs)]
8
9 #[cfg(windows)]
10 extern crate winapi;
11
12 #[cfg(doctest)]
13 #[macro_use]
14 extern crate doc_comment;
15
16 #[cfg(doctest)]
17 doctest!("../README.md");
18
19 #[cfg(windows)]
20 mod fs;
21
22 #[cfg(windows)]
23 pub use self::fs::remove_dir_all;
24
25 #[cfg(not(windows))]
26 pub use std::fs::remove_dir_all;