# liboeb **Repository Path**: dove-team/liboeb ## Basic Information - **Project Name**: liboeb - **Description**: oeb电子文档解析库 - **Primary Language**: Rust - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-20 - **Last Updated**: 2025-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # oeb-rs ## how to use ```rust /* release oeb file */ let mut instance = OebUnpack::new("test.oeb"); if let Ok(assets) = instance.analysis() { assert!(assets.len() > 0); for asset in assets { //save assets file to local let path = instance.save_to(&asset.content_id, save_folder_path).unwrap(); assert!(path.is_some()); } } else { assert!(false); } instance.close(); ``` ```rust /* read oeb file */ let mut instance = OebReader::new("test.oeb", temp_folder_path); instance.init(); let chapters = instance.chapters(); println!("chapters: {:?}", chapters); for (id, title) in chapters.unwrap_or_default() { let content = instance.get_chapter_content(&id); println!("title:{}, content: {}", title, content.unwrap()); } //clear cache files instance.close(); ```