A simple bibtex and biblatex parser written in Rust.
- Install Rust toolchain (see this guide).
- Build the project with
cargo build
. - Run tests with
cargo test
. - Build the release binaries with:
or read the Makefile for the commands.
make release-build-macos # or make release-build-linux
- Run the built binary from the
target
directory.
bibtex-parser <infile> -o <outfile>
or read from stdin
and write to stdout
:
cat <infile> | bibtex-parser > <outfile>
The input file must be in the Bib(La)TeX format, and the output file will be in JSON format.
Change bibtex-parser
to whatever the binary location is, e.g., ./target/debug/bibtex-parser
.