# doi2bib
[](https://github.com/OpenByteDev/doi2bib/actions/workflows/ci.yml) [](https://crates.io/crates/doi2bib) [](https://docs.rs/doi2bib) [](https://deps.rs/repo/github/openbytedev/doi2bib) [](https://github.com/OpenByteDev/doi2bib/blob/master/LICENSE)
Generate a bibtex entry from a doi.
# Usage
```rust
let doi2bib = doi2bib::Doi2Bib::new().unwrap();
let bibtex = doi2bib.resolve_doi("10.1109/5.771073").await.unwrap();
println!("{}", bibtex);
// @article{Paskin_1999,
// title={Toward unique identifiers},
// volume={87},
// ISSN={0018-9219},
// url={http://dx.doi.org/10.1109/5.771073},
// DOI={10.1109/5.771073},
// number={7},
// journal={Proceedings of the IEEE},
// publisher={Institute of Electrical and Electronics Engineers (IEEE)},
// author={Paskin, N.},
// year={1999},
// month=jul,
// pages={1208–1227}
// }
```
## License
Licensed under MIT license ([LICENSE](https://github.com/OpenByteDev/doi2bib/blob/master/LICENSE) or http://opensource.org/licenses/MIT)