bibliothek

Crates.iobibliothek
lib.rsbibliothek
version0.2.0
sourcesrc
created_at2023-07-11 13:27:22.033866
updated_at2023-08-16 16:17:43.82798
descriptionEasily cite references in your code
homepage
repositoryhttps://codeberg.org/luleyleo/bibliothek
max_upload_size
id913790
size11,055
Leopold Luley (luleyleo)

documentation

README

Bibliothek

When writing code based on existing publications, it's usually a good idea to cite the source right where you use it. Doing so is normally a bit cumbersome, but this crate aims to make it really easy by generating Structs from bibliography files such as bibtext. This way you can reference your sources just like you would reference any symbol in your source code.

Example

The idea is that you include your bibliography in lib.rs

pub mod bib {
    bibliothek::include_bibtex!("test.bib");
}

and then reference it somewhere else

/// Does some crazy stuff.
///
/// References: [crate::bib::CocoAccelerated]
fn some_algorithm() {
    unimplemented!();
}
Commit count: 0

cargo fmt