palmdb

Crates.iopalmdb
lib.rspalmdb
version0.1.0
sourcesrc
created_at2017-08-03 16:54:10.485478
updated_at2017-08-03 16:54:10.485478
descriptionParses PalmDB files
homepagehttps://github.com/pwoolcoc/palmdb-rs
repositoryhttps://github.com/pwoolcoc/palmdb-rs
max_upload_size
id26270
size16,845
Paul Woolcock (pwoolcoc)

documentation

https://docs.rs/palmdb

README

= 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"); }

fn main() { if let Err(_) = run() { ::std::process::exit(1); } }

Commit count: 9

cargo fmt