Crates.io | palmdb |
lib.rs | palmdb |
version | 0.1.0 |
source | src |
created_at | 2017-08-03 16:54:10.485478 |
updated_at | 2017-08-03 16:54:10.485478 |
description | Parses PalmDB files |
homepage | https://github.com/pwoolcoc/palmdb-rs |
repository | https://github.com/pwoolcoc/palmdb-rs |
max_upload_size | |
id | 26270 |
size | 16,845 |
= PalmDB parser for Rust
image:https://travis-ci.org/pwoolcoc/palmdb-rs.svg?branch=master["Build Status", link="https://travis-ci.org/pwoolcoc/palmdb-rs"]
This crate implements a simple PalmDB parser for Rust. Why? Because .mobi files use it and I want to generate .mobi files, and the first step was getting familiar with the format. Next step will be adding a generator for PalmDB, and a parser & generator for Mobi
https://docs.rs/palmdb[Documentation]
== Example
extern crate palmdb;
use std::fs::File; use std::io::{self, Read};
use palmdb::PalmDB;
fn run() -> Result<(), io::Error> { let mut f = File::open("/path/to/palmdb/file")?; let mut input = vec![]; f.read_to_end(&mut input)?; let db = PalmDB::parse(&input).expect("Could not parse db file"); }