]> git.proxmox.com Git - rustc.git/blob - vendor/filetime/README.md
Fix issue with dh_missing --fail-missing
[rustc.git] / vendor / filetime / README.md
1 # filetime
2
3 [Documentation](https://docs.rs/filetime)
4
5 A helper library for inspecting and setting the various timestamps of files in Rust. This
6 library takes into account cross-platform differences in terms of where the
7 timestamps are located, what they are called, and how to convert them into a
8 platform-independent representation.
9
10 ```toml
11 # Cargo.toml
12 [dependencies]
13 filetime = "0.2"
14 ```
15
16 # Advantages over using `std::fs::Metadata`
17
18 This library includes the ability to set this data, which std does not.
19
20 This library, when built with `RUSTFLAGS=--cfg emulate_second_only_system` set, will return all times rounded down to the second. This emulates the behavior of some file systems, mostly [HFS](https://en.wikipedia.org/wiki/HFS_Plus), allowing debugging on other hardware.
21
22 # License
23
24 This project is licensed under either of
25
26 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
27 http://www.apache.org/licenses/LICENSE-2.0)
28 * MIT license ([LICENSE-MIT](LICENSE-MIT) or
29 http://opensource.org/licenses/MIT)
30
31 at your option.
32
33 ### Contribution
34
35 Unless you explicitly state otherwise, any contribution intentionally submitted
36 for inclusion in Filetime by you, as defined in the Apache-2.0 license, shall be
37 dual licensed as above, without any additional terms or conditions.