Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

biblatex

> 编程语言
Open source

A Rust crate for parsing and writing BibTeX and BibLaTeX files.

177 stars0 likes0 views
WebsiteGitHub

About

A Rust crate for parsing and writing BibTeX and BibLaTeX files.

BibLaTeX

A Rust crate for parsing and writing BibTeX and BibLaTeX files.

BibLaTeX can help you to parse .bib bibliography files. As opposed to other available crates, this crate attempts to parse the data within the fields into easily usable structs and enums like Person and Date for downstream consumption.

Usage

Add this to your Cargo.toml:

toml
[dependencies]
biblatex = "0.12"

Parsing a bibliography and getting the author of an item is as simple as:

rust
let src = "@book{tolkien1937, author = {J. R. R. Tolkien}}";
let bibliography = Bibliography::parse(src).unwrap();
let entry = bibliography.get("tolkien1937").unwrap();
let author = entry.author().unwrap();
assert_eq!(author[0].name, "Tolkien");

This library operates on a Bibliography struct, which is a collection of entries (the items in your .bib file that start with an @ and are wrapped in curly braces). The entries may hold multiple fields. Entries have getter methods for each of the possible fields in a Bib(La)TeX file which handle possible field aliases, composition and type conversion automatically.

The generated documentation more specifically describes the selection and behavior of the getters but generally, they follow the convention of being the snake-case name of the corresponding field (such that the getter for booktitleaddon is named book_title_addon).

References

The crate follows the following specifications and implementations references:

  • BibLaTeX as the specification:
    • Biber as its implementation:
  • BibTeX as the original format:

Additionally, Wiki Books provides an excellent overview of the Bibliography Management system in LaTeX: .

Limitations

This library attempts to provide fairly comprehensive coverage of the BibLaTeX spec with which most of the .bib files in circulation can be processed.

However, the crate currently has some limitations:

  • There is no explicit support for entry sets, although it is easy to account for them by manually getting the entryset field and calling parse::>() on it

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustbiblatexbibliographybibtexrust-crate

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言