Debian Codegraph @

/

debian rust-filetime 0.2.29-1debian librust-filetime-dev debian librust-filetime+default-dev debian librust-filetime-0-dev debian librust-filetime-0+default-dev debian librust-filetime-0.2-dev debian librust-filetime-0.2+default-dev debian librust-filetime-0.2.29-dev debian librust-filetime-0.2.29+default-dev cargo filetime 0.2.29 debianjsonmakefilemarkdownrustrustrust-c-abishelltomlyaml 27 files · 306 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • rust-cfg-if (librust-cfg-if-1+default-dev)
  • rust-libc (librust-libc-0.2+default-dev)
  • cargo, debhelper-compat, libstd-rust-dev, rustc
README (full)

filetime

Documentation

Note: this library is quite old and superseded by functionality in the standard library. Nowadays you shouldn't use this crate and you should use FileTimes and File::set_times instead.

A helper library for inspecting and setting the various timestamps of files in Rust. This library takes into account cross-platform differences in terms of where the timestamps are located, what they are called, and how to convert them into a platform-independent representation.

# Cargo.toml
[dependencies]
filetime = "0.2"

Advantages over using std::fs::Metadata

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, allowing debugging on other hardware.

License

This project is licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Filetime by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

dir .github/
dir debian/
dir src/
file .cargo_vcs_info.json
file .gitignore
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file LICENSE-APACHE
file LICENSE-MIT
file README.md