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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! # edjr
//!
//! Elite Dangerous Journal Reader
//!
//! A library for parsing Elite Dangerous's journal files.
//! edjr supports only Elite Dangerous Odyssey.
//!
//! ## Features
//! - `tokio`: provide tokio-based journal reader.
//! - `stream`: provides stream for journal reader.
//!
//! ## Examples
//! ### Read all (sync)
//! ```no_run
//! use {
//! edjr::{journal::Journal, read::Read},
//! std::{error::Error, fs::File, path::PathBuf},
//! };
//!
//! fn main() -> Result<(), Box<dyn Error>> {
//! let journal_path =
//! PathBuf::from("/Path/to/Journals/Journal.date.log");
//! let mut journal = Journal::<File>::open(journal_path)?;
//! let entries = journal.read_all()?;
//!
//! Ok(())
//! }
//!
//! ```
//! ### Read all (async, features = [tokio])
//! ```no_run
//! use {
//! edjr::{journal::Journal, async_read::AsyncRead},
//! std::{error::Error, path::PathBuf},
//! tokio::fs::File,
//! };
//!
//! #[tokio::main]
//! fn main() -> Result<(), Box<dyn Error>> {
//! let journal_path =
//! PathBuf::from("/Path/to/Journals/Journal.date.log");
//! let mut journal = Journal::<File>::open(journal_path).await?;
//! let entries = journal.read_all().await?;
//!
//! Ok(())
//! }
//!
//! ```
//! View more examples in [`examples/`](./examples)
pub use ;