Add citations for official Rust books

The official Rust books, including The Rust Programming Language, The Rustonomicon, etc., have been important sources for recent academic papers related to Rust (as shown in google scholar, TRPL has been cited over 800+). However, these books lack standard citations, while GitHub has provided Citation files as a standard way for a repo-hosted book to declare the citations. By adding a CITATION.cff file at the root of repo, there will be a button in the GitHub web that will generate citations in bibtex or apa format.

With this file, we can also add this features to mdBook, let it parse the citation file and render the generated bibtex or apa format in the HTML output.

1 Like

I've never created a CITATION.cff file before, but if you send a PR to TRPL, I'll take a look!

I'm afraid that I'm not capable of determining the content of CITATION.cff file. For example, what the author field should be? Considering rustc-dev-guide/CITATION.cff and nomicon/CITATION.cff listed "The Rust Project Developers" as authors, while TRPL has stated clear authors in title page. Also, which date should be the release date? The rustc-dev-guide and nomicon chose a rather old date, while I saw several releases have been published in TRPL.