12 stable releases (4 major)
4.0.0 | Dec 21, 2022 |
---|---|
3.0.0 | Apr 25, 2021 |
2.0.6 | Apr 24, 2021 |
2.0.5 | Jul 17, 2020 |
0.1.0 | Mar 15, 2017 |
#122 in No standard library
9,169 downloads per month
Used in 24 crates
(7 directly)
14KB
198 lines
etag-rs
Simple EntityTag implementation.
Features
std
- AddEntityTag::from_file_meta
in order to generate ETag using file's metadata.
Usage
use etag::EntityTag;
fn main() {
let my_tag = EntityTag::strong("lolka");
let text_etag = my_tag.to_string();
let parse_tag = text_etag.parse::<EntityTag>().unwrap();
assert!(my_tag.strong_eq(&parse_tag));
}
lib.rs
:
Simple EntityTag implementation, no_std
friendly.
Features
std
- AddEntityTag::from_file_meta
in order to generate ETag using file's metadata.
Usage
use etag::EntityTag;
fn main() {
let my_tag = EntityTag::strong("lolka");
let text_etag = my_tag.to_string();
let parse_tag = text_etag.parse::<EntityTag>().unwrap();
assert!(my_tag.strong_eq(&parse_tag));
}
Dependencies
~125KB