{"id":20029513,"url":"https://github.com/http-rs/vcr-cassette","last_synced_at":"2025-07-27T03:02:54.503Z","repository":{"id":57671506,"uuid":"401684263","full_name":"http-rs/vcr-cassette","owner":"http-rs","description":"Serializer and deserializer for the VCR Cassette format","archived":false,"fork":false,"pushed_at":"2024-06-07T09:09:28.000Z","size":21,"stargazers_count":14,"open_issues_count":4,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-14T14:57:41.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/http-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2021-08-31T11:51:20.000Z","updated_at":"2024-01-23T18:50:57.000Z","dependencies_parsed_at":"2025-05-05T03:42:32.672Z","dependency_job_id":null,"html_url":"https://github.com/http-rs/vcr-cassette","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/http-rs/vcr-cassette","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-rs%2Fvcr-cassette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-rs%2Fvcr-cassette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-rs%2Fvcr-cassette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-rs%2Fvcr-cassette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/http-rs","download_url":"https://codeload.github.com/http-rs/vcr-cassette/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-rs%2Fvcr-cassette/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259924678,"owners_count":22932782,"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":[],"created_at":"2024-11-13T09:20:41.699Z","updated_at":"2025-06-19T06:33:53.829Z","avatar_url":"https://github.com/http-rs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003evcr-cassette\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003e\n    Serializer and deserializer for the VCR Cassette format\n  \u003c/strong\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003c!-- Crates version --\u003e\n  \u003ca href=\"https://crates.io/crates/vcr-cassette\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/v/vcr-cassette.svg?style=flat-square\"\n    alt=\"Crates.io version\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- Downloads --\u003e\n  \u003ca href=\"https://crates.io/crates/vcr-cassette\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/d/vcr-cassette.svg?style=flat-square\"\n      alt=\"Download\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- docs.rs docs --\u003e\n  \u003ca href=\"https://docs.rs/vcr-cassette\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square\"\n      alt=\"docs.rs docs\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch3\u003e\n    \u003ca href=\"https://docs.rs/vcr-cassette\"\u003e\n      API Docs\n    \u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://github.com/http-rs/vcr-cassette/releases\"\u003e\n      Releases\n    \u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://github.com/http-rs/vcr-cassette/blob/master.github/CONTRIBUTING.md\"\u003e\n      Contributing\n    \u003c/a\u003e\n  \u003c/h3\u003e\n\u003c/div\u003e\n\n## Examples\n\nGiven the following `.json` VCR Cassette recording:\n```json\n{\n    \"http_interactions\": [\n        {\n            \"request\": {\n                \"uri\": \"http://localhost:7777/foo\",\n                \"body\": \"\",\n                \"method\": \"get\",\n                \"headers\": { \"Accept-Encoding\": [ \"identity\" ] }\n            },\n            \"response\": {\n                \"body\": \"Hello foo\",\n                \"http_version\": \"1.1\",\n                \"status\": { \"code\": 200, \"message\": \"OK\" },\n                \"headers\": {\n                    \"Date\": [ \"Thu, 27 Oct 2011 06:16:31 GMT\" ],\n                    \"Content-Type\": [ \"text/html;charset=utf-8\" ],\n                    \"Content-Length\": [ \"9\" ],\n                }\n            },\n            \"recorded_at\": \"Tue, 01 Nov 2011 04:58:44 GMT\"\n        },\n    ],\n    \"recorded_with\": \"VCR 2.0.0\"\n}\n```\n\nWe can deserialize it using [`serde_json`](https://docs.rs/serde-json):\n\n```rust\nuse std::fs;\nuse vcr_cassette::Cassette;\n\nlet example = fs::read_to_string(\"tests/fixtures/example.json\").unwrap();\nlet cassette: Cassette = serde_json::from_str(\u0026example).unwrap();\n```\n\nTo deserialize `.yaml` Cassette files use\n[`serde_yaml`](https://docs.rs/serde-yaml) instead.\n\n## Installation\n```sh\n$ cargo add vcr-cassette\n```\n\n## Safety\nThis crate uses ``#![deny(unsafe_code)]`` to ensure everything is implemented in\n100% Safe Rust.\n\n## Contributing\nWant to join us? Check out our [\"Contributing\" guide][contributing] and take a\nlook at some of these issues:\n\n- [Issues labeled \"good first issue\"][good-first-issue]\n- [Issues labeled \"help wanted\"][help-wanted]\n\n[contributing]: https://github.com/http-rs/vcr-cassette/blob/master.github/CONTRIBUTING.md\n[good-first-issue]: https://github.com/http-rs/vcr-cassette/labels/good%20first%20issue\n[help-wanted]: https://github.com/http-rs/vcr-cassette/labels/help%20wanted\n\n## License\n\n\u003csup\u003e\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\n\u003cbr/\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this crate by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttp-rs%2Fvcr-cassette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttp-rs%2Fvcr-cassette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttp-rs%2Fvcr-cassette/lists"}