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

#121 in No standard library

Download history 2010/week @ 2024-07-19 2001/week @ 2024-07-26 1786/week @ 2024-08-02 1993/week @ 2024-08-09 1518/week @ 2024-08-16 1983/week @ 2024-08-23 1706/week @ 2024-08-30 2069/week @ 2024-09-06 1866/week @ 2024-09-13 2123/week @ 2024-09-20 2118/week @ 2024-09-27 1576/week @ 2024-10-04 1971/week @ 2024-10-11 2140/week @ 2024-10-18 2144/week @ 2024-10-25 2217/week @ 2024-11-01

8,707 downloads per month
Used in 21 crates (7 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

~125KB