#io #entry #hosted #version #citation #entries #bib-la-te-x

crate2bib

Create BibLaTeX entries for crates hosted on crates.io

4 releases (2 breaking)

new 0.3.1 Jan 28, 2025
0.3.0 Jan 27, 2025
0.2.0 Jan 22, 2025
0.1.0 Jan 21, 2025

#3 in #hosted

Download history 69/week @ 2025-01-15 311/week @ 2025-01-22

380 downloads per month
Used in crate2bib-cli

MIT/Apache

22KB
436 lines

GitHub Actions Workflow Status GitHub Actions Workflow Status

crate2bib

This crate searches for packages and versions and creates a BibLaTeX entry. If a CITATION.cff file is present in the repository, the BibLaTeX file associated with that will also be displayed. The crate can be used in a web version under jonaspleyer.github.io/crate2bib.


lib.rs:

Search and create BibLaTeX entries for crates hosted on crates.io.

This crate is centered around the [get_biblatex] function. It works in multiple steps.

  1. Query crates.io and obtain information about crate
  2. Search repository for possible CITATION files
  3. Generate BibLaTeX entry from known properties and return the Origin of this information via [EntryOrigin]

It can be used in a web version under jonaspleyer.github.io/crate2bib.

Dependencies

~10–25MB
~363K SLoC