{"id":21585997,"url":"https://github.com/magiclen/entity-tag","last_synced_at":"2025-04-10T20:14:58.125Z","repository":{"id":57625235,"uuid":"359838105","full_name":"magiclen/entity-tag","owner":"magiclen","description":"This crate provides a `EntityTag` structure and functions to deal with the ETag header field of HTTP.","archived":false,"fork":false,"pushed_at":"2023-09-11T05:00:08.000Z","size":6439,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T17:55:17.942Z","etag":null,"topics":["etag","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magiclen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-20T14:07:15.000Z","updated_at":"2023-07-31T11:17:45.000Z","dependencies_parsed_at":"2024-11-24T18:01:10.461Z","dependency_job_id":null,"html_url":"https://github.com/magiclen/entity-tag","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"8a70658f973c945bfe8cd7de319357ac49b4a3d0"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fentity-tag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fentity-tag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fentity-tag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fentity-tag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclen","download_url":"https://codeload.github.com/magiclen/entity-tag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248288486,"owners_count":21078905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["etag","rust"],"created_at":"2024-11-24T15:12:21.443Z","updated_at":"2025-04-10T20:14:58.103Z","avatar_url":"https://github.com/magiclen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Entity Tag\n====================\n\n[![CI](https://github.com/magiclen/entity-tag/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/entity-tag/actions/workflows/ci.yml)\n\nThis crate provides a `EntityTag` structure and functions to deal with the ETag header field of HTTP.\n\n## Examples\n\n```rust\nuse entity_tag::EntityTag;\n\nlet etag1 = EntityTag::with_str(true, \"foo\").unwrap();\nlet etag2 = EntityTag::from_str(\"\\\"foo\\\"\").unwrap();\n\nassert_eq!(true, etag1.weak);\nassert_eq!(false, etag2.weak);\n\nassert!(etag1.weak_eq(\u0026etag2));\nassert!(etag1.strong_ne(\u0026etag2));\n\nlet etag3 = EntityTag::from_data(true, \u0026[102, 111, 111]).unwrap();\nassert_eq!(\"W/\\\"972Sf7Z4eu8\\\"\", etag3.to_string());\n\nlet etag4 = EntityTag::from_file_meta(\u0026std::fs::File::open(\"tests/data/P1060382.JPG\").unwrap().metadata().unwrap());\nprintln!(\"{}\", etag4) // W/\"HRScBWR0Mf4\"\n```\n\n## No Std\n\nDisable the default features to compile this crate without std.\n\n```toml\n[dependencies.entity-tag]\nversion = \"*\"\ndefault-features = false\n```\n\n## Crates.io\n\nhttps://crates.io/crates/entity-tag\n\n## Documentation\n\nhttps://docs.rs/entity-tag\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fentity-tag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclen%2Fentity-tag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fentity-tag/lists"}