arXiv
A Rust library for parsing arXiv categories, identifiers and references.
Install
Run the following command in the terminal:
cargo add arxiv
Or, add this to Cargo.toml:
[dependencies]
arxiv = "0.2"
Usage
use FromStr;
use *;
// Parse an arXiv identifier
let id = from_str.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
// Parse an arXiv category
let category = from_str.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
// Parse an arXiv stamp
let stamp = from_str.unwrap;
assert_eq!;
assert_eq!;
License
Licensed under either of
- Apache License, Version 2.0 (
LICENSE-APACHEor http://www.apache.org/licenses/LICENSE-2.0) - MIT license (
LICENSE-MITor http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.