Welcome to mirror list, hosted at ThFree Co, Russian Federation.

lib.rs « src - github.com/windirstat/mft.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9563a5d2c79d3cc7f5d566ae03abf7afbba8e027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#![deny(unused_must_use)]
// Don't allow dbg! prints in release.
#![cfg_attr(not(debug_assertions), deny(clippy::dbg_macro))]

#[macro_use]
extern crate num_derive;

pub use attribute::x10::StandardInfoAttr;
pub use attribute::x30::FileNameAttr;
pub use attribute::MftAttribute;

pub use crate::mft::MftParser;
pub use entry::{EntryHeader, MftEntry};

use std::io::{self, Read, Seek, SeekFrom};

pub mod attribute;
pub mod csv;
pub mod entry;
pub mod err;
pub mod mft;

pub(crate) mod macros;
pub(crate) mod utils;

#[cfg(test)]
pub(crate) mod tests;

pub trait ReadSeek: Read + Seek {
    fn tell(&mut self) -> io::Result<u64> {
        self.seek(SeekFrom::Current(0))
    }
}

impl<T: Read + Seek> ReadSeek for T {}