hayagriva for Mac
Rusty bibliography management.
hayagriva — overview
Rusty bibliography management.
Hayagriva is a tool that can help you or your apps deal with literature and other media. Its features include: Data structures for literature collections Reading and writing said collections from YAML files Formatting literature into reference list entries and in-text citations as defined by popular style guides Interoperability with BibTeX Querying your literature items by type and available metadata
Hayagriva can be used both as a library and as a Command Line Interface (CLI). Skip to the section "Usage" for more information about usage in your application or to the section "Installation" to learn about how to install and use Hayagriva on your terminal.
Supported styles
Hayagriva supports all styles provided in the official Citation Style Language repository, currently over 2,600.
Usage
To format entries, you need to wrap them in a CitationRequest. Each of these can reference multiple entries in their respective CitationItems. Use these with a BibliographyDriver to obtain formatted citations and bibliographies.
You can either supply your own CSL files or choose from about 100 bundled citation styles using the archive feature.
If the default features are enabled, Hayagriva supports BibTeX and BibLaTeX bibliographies. You can use io::from_biblatex_str to parse such bibliographies.
Should you need more manual control, the library's native Entry struct also offers an implementation of the From-Trait. You will need to depend on the biblatex crate to obtain its Entry. Therefore, you could also use your BibLaTeX content like this:
If you do not need BibLaTeX compatibility, you can use Hayagriva without the default features by writing this in your Cargo.toml:
Selectors
Hayagriva uses a custom selector language that enables you to filter bibliographies by type of media. For more information about selectors, refer to the selectors.md file. While you can parse user-defined selectors using the function Selector::parse, you may instead want to use the selector macro to avoid the run time cost of parsing a selector when working with constant selectors.
There are two ways to check if a selector matches an entry. You should use [Selector::matches] if you just want to know if an item matches a selector and [Selector::apply] to continue to work with the data from parents of a matching entry. Keep in mind that the latter function will return Some even if no sub-entry was bound / if the hash map is empty.
Installation
Run this in your terminal:
Cargo will install the Hayagriva Command Line Interface for you. Now, you just need a Hayagriva YAML literature file or a Bib(La)TeX file to get started. The Hayagriva YAML file is intuitive to write and can represent a wealth of media types, learn how to write one in its dedicated documentation.
Suppose you have this file saved as literature.yaml in your current working directory:
Details
参考文献管理工具
How to install hayagriva
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
Last updated 2026-06-14; current version v0.10.1, with the latest 10 releases listed.
| Version | Released | Type | Size | macOS | Windows | Linux |
|---|---|---|---|---|---|---|
| v0.10.1 | 2026-06-14 | Stable | — | — | — | — |
| v0.10.0 | 2026-06-05 | Stable | — | — | — | — |
| v0.9.1 | 2025-09-26 | Stable | — | — | — | — |
| v0.9.0 | 2025-09-25 | Stable | — | — | — | — |
| v0.8.1 | 2025-02-05 | Stable | — | — | — | — |
| v0.8.0 | 2024-10-15 | Stable | — | — | — | — |
| v0.7.0 | 2024-10-03 | Stable | — | — | — | — |
| v0.6.0 | 2024-10-02 | Stable | — | — | — | — |
| v0.5.3 | 2024-05-16 | Stable | — | — | — | — |
| v0.5.2 | 2024-03-07 | Stable | — | — | — | — |
Data from GitHub Releases; stable releases first, each group sorted newest first.
Prebuilt bottle platforms
Official Homebrew bottles cover:
- Apple silicon · latest macOS
- Apple silicon · macOS 26 Tahoe
- Apple silicon · macOS 15 Sequoia
- Apple silicon · macOS 14 Sonoma
- Intel · macOS 14 Sonoma
- Linux · ARM64
- Linux · x86_64
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| hayagriva | v0.10.1 | Apache-2.0 OR MIT | CLI | 8 |
| bibclean | 3.07 | GPL-2.0-or-later | CLI | 17 |
| papis | 0.16.1 | GPL-3.0-or-later | CLI | 33 |
| bibutils | 7.2 | GPL-2.0-only | CLI | 1 |
Similar apps: Command-line Tools
bibclean
bibclean is a small command-line tool for LaTeX users, designed specifically to tidy up and…papis
Papis is a command-line document and reference manager for researchers, students, and writers.bibutils
bibutils is a collection of command-line tools for converting bibliographic reference formats…openssl@4
Cryptography and SSL/TLS Toolkitxz
General-purpose data compression with high compression ratiopkgconf
pkgconf is a program which helps to configure compiler and linker flags for development…Categories: Command-line Tools