{"id":13822795,"url":"https://github.com/rust-syndication/atom","last_synced_at":"2025-12-12T16:41:27.022Z","repository":{"id":22100407,"uuid":"95266180","full_name":"rust-syndication/atom","owner":"rust-syndication","description":"Library for serializing the Atom web content syndication format https://crates.io/crates/atom_syndication","archived":false,"fork":false,"pushed_at":"2024-06-21T00:30:15.000Z","size":187,"stargazers_count":83,"open_issues_count":4,"forks_count":22,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-18T09:57:30.972Z","etag":null,"topics":["atom","feed","parser","rust"],"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/rust-syndication.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2017-06-24T00:40:24.000Z","updated_at":"2024-07-13T15:31:35.000Z","dependencies_parsed_at":"2024-01-18T04:08:43.225Z","dependency_job_id":"f3bec98c-893c-4a09-8b95-c21b30ce4c08","html_url":"https://github.com/rust-syndication/atom","commit_stats":{"total_commits":111,"total_committers":17,"mean_commits":6.529411764705882,"dds":0.6126126126126126,"last_synced_commit":"664fca16fecc033f337ee2cd6d232497fa98aaac"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-syndication%2Fatom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-syndication%2Fatom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-syndication%2Fatom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-syndication%2Fatom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-syndication","download_url":"https://codeload.github.com/rust-syndication/atom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213893314,"owners_count":15653524,"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":["atom","feed","parser","rust"],"created_at":"2024-08-04T08:02:18.009Z","updated_at":"2025-12-12T16:41:27.009Z","avatar_url":"https://github.com/rust-syndication.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# atom\n\n[![Build status](https://github.com/rust-syndication/atom/workflows/Build/badge.svg)](https://github.com/rust-syndication/atom/actions)\n[![Crates.io Status](https://img.shields.io/crates/v/atom_syndication.svg)](https://crates.io/crates/atom_syndication)\n[![Coverage](https://codecov.io/gh/rust-syndication/atom/branch/master/graph/badge.svg)](https://codecov.io/gh/rust-syndication/atom/)\n\nLibrary for serializing the Atom web content syndication format.\n\n[Documentation](https://docs.rs/atom_syndication/)\n\nThis crate requires *Rustc version 1.83.0 or greater*.\n\n## Usage\n\nAdd the dependency to your `Cargo.toml`.\n\n```toml\n[dependencies]\natom_syndication = \"0.12\"\n```\n\nOr, if you want [Serde](https://github.com/serde-rs/serde) include the feature like this:\n\n```toml\n[dependencies]\natom_syndication = { version = \"0.12\", features = [\"with-serde\"] }\n```\n\nThe package includes a single crate named `atom_syndication`.\n\n```rust\nextern crate atom_syndication;\n```\n\n## Reading\n\nA feed can be read from any object that implements the `BufRead` trait or using the `FromStr` trait.\n\n```rust\nuse std::fs::File;\nuse std::io::BufReader;\nuse atom_syndication::Feed;\n\nlet file = File::open(\"example.xml\").unwrap();\nlet feed = Feed::read_from(BufReader::new(file)).unwrap();\n\nlet string = \"\u003cfeed\u003e\u003c/feed\u003e\";\nlet feed = string.parse::\u003cFeed\u003e().unwrap();\n```\n\n## Writing\n\nA feed can be written to any object that implements the `Write` trait or converted to an XML string using the `ToString` trait.\n\n### Example\n\n```rust\nuse std::fs::File;\nuse std::io::{BufReader, sink};\nuse atom_syndication::Feed;\n\nlet file = File::open(\"example.xml\").unwrap();\nlet feed = Feed::read_from(BufReader::new(file)).unwrap();\n\n// write to the feed to a writer\nfeed.write_to(sink()).unwrap();\n\n// convert the feed to a string\nlet string = feed.to_string();\n```\n\n## Invalid Feeds\n\nAs a best effort to parse invalid feeds `atom_syndication` will default elements declared as \"required\" by the Atom specification to an empty string.\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-syndication%2Fatom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-syndication%2Fatom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-syndication%2Fatom/lists"}