etag

Crates.ioetag
lib.rsetag
version4.0.0
sourcesrc
created_at2017-03-15 15:54:05.573629
updated_at2022-12-21 03:40:55.806273
descriptionSimple ETag calculation implementation
homepage
repositoryhttps://github.com/DoumanAsh/etag-rs
max_upload_size
id8987
size20,895
Douman (DoumanAsh)

documentation

https://docs.rs/etag/

README

etag-rs

Build Crates.io Docs.rs

Simple EntityTag implementation.

Features

  • std - Add EntityTag::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));
}
Commit count: 22

cargo fmt