| Crates.io | bibleref |
| lib.rs | bibleref |
| version | 0.4.0 |
| created_at | 2024-11-17 19:31:04.655748+00 |
| updated_at | 2025-07-16 16:07:47.281186+00 |
| description | Structures and functions for managing Bible references |
| homepage | |
| repository | https://github.com/reckel-jm/bibleref |
| max_upload_size | |
| id | 1451512 |
| size | 366,865 |
Bibleref is a leightweight Rust crate which supports the management of Bible references including parsing, validity checks and output. It is designed to simplify the usage of God's word. May it be used for the glory of God!
If you like the crate, please consider giving it a star on Github!
The crate is in itself documented.
The translation will only take place if the language is supported and the bible reference exists (can be found in the Bible).
let german_reference: String = bibleref::translate("Genesis 1:1", "de").unwrap();
assert_eq!(german_reference, "1. Mose 1,1");
let chinese_reference: String = bibleref::translate("John 3:16-18", "zh_sim").unwrap();
assert_eq!(chinese_reference, "约翰福音3:16-18");
assert!(bibleref::parse("Exodus 3").is_ok()); // Exodus 3 exists in the Bible
assert!(bibleref::parse("Revelation 24").is_err()); // Revelation 24 doesn't exist as the book only has 22 chapters
The following languages have built-in support at the moment. You can add additional languages manually:
| Language | Language Code |
|---|---|
| Chinese (Simplified) | zh_sim |
| Chinese (Traditional) | zh_trad |
| Czech | cs |
| Dutch | nl |
| English | en |
| French | fr |
| German | de |
| Hungarian | hu |
| Indonesian | id |
| Italian | it |
| Japanese | ja |
| Korean | ko |
| Polish | pl |
| Russian | ru |
| Spanish | es |
| Ukrainian | uk |
| Vietnamese | vi |