Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MilkFeng committed Aug 16, 2024
1 parent c4116a0 commit ca3bcfc
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 556 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
This is epub parse library for rust.

Now it is in development.

## Usage
```rust
use std::fs::File;

use eparser::book::parse_book;
use eparser::file::local::read_from_file;

fn main() {
let file = File::open("./res/example.epub").unwrap();
let files = read_from_file(file).unwrap();
let book = parse_book(files).unwrap();
println!("{:?}", book);
}
```
3 changes: 2 additions & 1 deletion example/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
/target
/res
Loading

0 comments on commit ca3bcfc

Please sign in to comment.