#http #etag

no-std etag

Simple ETag calculation implementation

11 stable releases (3 major)

3.0.0 Apr 25, 2021
2.0.6 Apr 24, 2021
2.0.5 Jul 17, 2020
2.0.3 May 13, 2020
0.1.0 Mar 15, 2017

#51 in No standard library

Download history 124/week @ 2021-09-28 176/week @ 2021-10-05 212/week @ 2021-10-12 32/week @ 2021-10-19 164/week @ 2021-10-26 63/week @ 2021-11-02 114/week @ 2021-11-09 55/week @ 2021-11-16 111/week @ 2021-11-23 118/week @ 2021-11-30 173/week @ 2021-12-07 83/week @ 2021-12-14 221/week @ 2021-12-21 91/week @ 2021-12-28 37/week @ 2022-01-04 60/week @ 2022-01-11

409 downloads per month
Used in 8 crates (4 directly)

BSL-1.0 license

14KB
198 lines

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));
}

lib.rs:

Simple EntityTag implementation, no_std friendly.

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));
}

Dependencies

~97KB

8`