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.
翻译:crate2bib是一套工具集,旨在将托管于crates.io的Rust crate转换为参考文献条目。该工具通过查询服务器、从指定crate中提取元数据,并搜索托管crate代码的仓库中可能存在的CITATION.cff文件,整合名称、版本、作者等信息,为所有可用候选条目生成标准化格式。此方法使得Rust crate能够便捷地被引用,同时可发现已发布crate的现有引用记录。该工具支持以Web应用、Python包、命令行工具或Rust crate等多种形式使用。