crate2bib

: Citing Rust crates made easy · 2025

Read crate2bib by : Citing Rust crates made easy (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2511-07468.txt.

Introduction

Jonas Pleyer built crate2bib to make citing Rust software painless. Rust libraries, called crates, live on crates.io, but turning them into bibliography entries by hand is tedious. Proper credit matters as research software spreads.

The tool queries the crate registry, pulls metadata such as name, version, and authors, and checks the code repository for citation files. It then formats entries for each candidate source it finds. Access comes through a website, a Python package, a command line tool, or a Rust crate. Researchers can cite dependencies accurately in seconds instead of copying details manually.

Catalog record

CREATOR: Citing Rust crates made easy
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE4 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2511-07468

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

crate2bib
: Citing Rust crates made easy

Abstract




Abstract

crate2bib
is a collection of tools designed to convert Rust crates hosted on

crates.io
into bibliography entries.
It queries the server, extracts metadata from the given crate and also searches for possible

CITATION.cff
files within the repository that hosts the code of the crate in interest.
From this information, it formats the provided information such as name, version, authors and
generates entries for all available candidates.
With this approach, crates can be cited easily and existing citations for published crates can be
found.
The tool can be used as a webapp, python package, command-line utility or Rust crate.

Figure 1:

The various components of
crate2bib
are built on a Rust crate which is reused to
provide a python library, a webapp and a CLI tool.

Statement of Need

crate2bib
aims to provide a simple, user-friendly platform to cite Rust software in research
papers, theses or technical documentation.
As the field of scientific computing continues to grow, it’s of best scientific practice to
attribute contributions of libraries that underpin novel results and approaches.
Instead of having to manually compile bibliography entries or manually search for the necessary
information, which is prone to errors,
crate2bib
utilizes the published metadata which was
already provided by the authors of the software.
Furthermore, the provided methods can also be used for automation processes.
The result is saved time as well as concisely structured citations which can be readily used within
scientific publishing workflows.
Incidently, this paper already uses the provided methods extensively.

Over the course of the past years, multiple citation strategies have emerged within the
L
a
T
e
X
ecosystem.
The BibTeX format has been the de-facto standard and still remains widely used.
It was extended by natbib
[
1
]
with more citation styles and citing commands.
Another alternative is BibLaTeX which provides a ”[..] complete reimplementation of
the bibliographic facilities provided by
L
a
T
e
X
”
[
10
]
.
Tools such as
[
3
]
filltex target specific areas of research, enabling queries to ADS and
INSPIRE databases.
Within the Github ecosystem, the

CITATION.cff
format

[
2
]
was introduced that is being adapted by many maintainers.
It is only natural that conversion tools have emerged, allowing the mapping of both directions.
BibTeX2CFF
[
4
]
converts from BibTeX to the CFF format, while
cffconvert
[
15
]
acts in the reverse direction.
This project also provides tools such as an initializer
[
14
]
to quickly create
new
CITATION.cff
files.

In order to connect the rapidly growing landscape of Rust-based software with academic publishing
standards, it is utmost helpful to have methods available which can generate
bibliography entries and aid in automation processes.

Library Details

The
crate2bib
Rust crate is the foundational component which enables the remaining tools (webapp,
python bindings, cli utility).
It holds the core components and logic and uses the
reqwest

[
9
]
crate
together with
crates_io_api

[
6
]
to access information from

crates.io
and repository hosting platforms such as

github.com
and
codeberg.org
.
The latter crate was forked by the author
[
11
]
in order to provide WASM support which was
required for the webapp but previously missing in its original version.
To parse the obtained information,
crate2bib
relies on biblatex
[
5
]
and citeworks-cff

[
13
]
.
Python bindings are produced with pyo3
[
12
]
and published with maturin
[
8
]

while the webapp is built with dioxus
[
7
]
.

Tool

Link

Webapp

jonaspleyer.github.io/crate2bib/

Python Bindings

pypi.org/project/crate2bib/

CLI tool

crates.io/crates/crate2bib-cli

Rust crate

crates.io/crates/crate2bib

Table 1:
List of provided tools by
crate2bib

Read the complete text