Bible-IO
A Rust library for working with Bible text data structures, providing efficient parsing and access to Bible books, chapters, and verses.
Features
- Parse Bible data from JSON files
- Access books, chapters, and verses by various identifiers
Usage
Add this to your Cargo.toml:
[]
= "1.0.0"
Basic usage:
use ;
JSON Structure
The library expects Bible data in the following JSON format:
Top-level fields identify the translation. Each entry in books uses a book abbreviation (e.g., "gn") and contains a name and a chapters array, where each chapter is a list of verse strings.
Examples
Run the included example:
Running Tests
# Run all tests (requires en_kjv.json)
# Run only unit tests (no external data required)
# Run only integration tests
License
MIT License - see LICENSE file for details.