{"id":15399204,"url":"https://github.com/edg-l/sitewriter","last_synced_at":"2025-04-15T21:34:23.811Z","repository":{"id":57667543,"uuid":"315059554","full_name":"edg-l/sitewriter","owner":"edg-l","description":"A rust library to generate sitemaps.","archived":false,"fork":false,"pushed_at":"2023-12-29T13:06:16.000Z","size":67,"stargazers_count":25,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-03T08:17:53.724Z","etag":null,"topics":["rust","rust-lang","sitemap","sitemap-generator","writer","xml"],"latest_commit_sha":null,"homepage":"https://docs.rs/sitewriter","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/edg-l.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"edg-l","liberapay":"edgl"}},"created_at":"2020-11-22T14:43:02.000Z","updated_at":"2024-06-20T02:24:20.574Z","dependencies_parsed_at":"2024-06-20T02:24:14.340Z","dependency_job_id":"d3b11925-3f63-47b0-9a35-6d0b28987a8e","html_url":"https://github.com/edg-l/sitewriter","commit_stats":{"total_commits":50,"total_committers":1,"mean_commits":50.0,"dds":0.0,"last_synced_commit":"7a305dbeb3381b6df2f3f459bb89c40ee12abe8f"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edg-l%2Fsitewriter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edg-l%2Fsitewriter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edg-l%2Fsitewriter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edg-l%2Fsitewriter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edg-l","download_url":"https://codeload.github.com/edg-l/sitewriter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223688770,"owners_count":17186297,"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":["rust","rust-lang","sitemap","sitemap-generator","writer","xml"],"created_at":"2024-10-01T15:47:22.314Z","updated_at":"2024-11-08T13:02:07.043Z","avatar_url":"https://github.com/edg-l.png","language":"Rust","funding_links":["https://github.com/sponsors/edg-l","https://liberapay.com/edgl"],"categories":[],"sub_categories":[],"readme":"# sitewriter\n\n### A library to generate sitemaps.\n\n[![Version](https://img.shields.io/crates/v/sitewriter)](https://crates.io/crates/sitewriter)\n[![Downloads](https://img.shields.io/crates/d/sitewriter)](https://crates.io/crates/sitewriter)\n[![License](https://img.shields.io/crates/l/sitewriter)](https://crates.io/crates/sitewriter)\n![Rust](https://github.com/edg-l/sitewriter/workflows/Rust/badge.svg)\n[![Docs](https://docs.rs/sitewriter/badge.svg)](https://docs.rs/sitewriter)\n\nIt uses the [quick-xml](https://github.com/tafia/quick-xml) so it should be fast.\n\n### Example\n\n```rust\nuse chrono::prelude::*;\nuse sitewriter::{ChangeFreq, UrlEntry, UrlEntryBuilder};\n\nlet urls = vec![\n    UrlEntryBuilder::default()\n        .loc(\"https://edgarluque.com/projects\".parse().unwrap())\n        .build()\n        .unwrap(),\n    UrlEntry {\n        loc: \"https://edgarluque.com/\".parse().unwrap(),\n        changefreq: Some(ChangeFreq::Daily),\n        priority: Some(1.0),\n        lastmod: Some(Utc::now()),\n    },\n    UrlEntry {\n        loc: \"https://edgarluque.com/blog\".parse().unwrap(),\n        changefreq: Some(ChangeFreq::Weekly),\n        priority: Some(0.8),\n        lastmod: Some(Utc::now()),\n    },\n    UrlEntry {\n        loc: \"https://edgarluque.com/blog/sitewriter\".parse().unwrap(),\n        changefreq: Some(ChangeFreq::Never),\n        priority: Some(0.5),\n        lastmod: Some(Utc.ymd(2020, 11, 22).and_hms(15, 10, 15)),\n    },\n    UrlEntry {\n        loc: \"https://edgarluque.com/blog/some-future-post\"\n            .parse()\n            .unwrap(),\n        changefreq: Some(ChangeFreq::Never),\n        priority: Some(0.5),\n        lastmod: Some(\n            Utc.from_utc_datetime(\u0026Local.ymd(2020, 12, 5).and_hms(12, 30, 0).naive_utc()),\n        ),\n    },\n    // Entity escaping\n    UrlEntry {\n        loc: \"https://edgarluque.com/blog/test\u0026id='\u003ctest\u003e'\"\n            .parse()\n            .unwrap(),\n        changefreq: Some(ChangeFreq::Never),\n        priority: Some(0.5),\n        lastmod: Some(\n            Utc.from_utc_datetime(\u0026Local.ymd(2020, 12, 5).and_hms(12, 30, 0).naive_utc()),\n        ),\n    },\n];\n\nlet result = sitewriter::generate_str(\u0026urls);\nprintln!(\"{}\", result);\n```\n\n### CREV - Rust code reviews - Raise awareness\n\nPlease, spread this info !\\\nOpen source code needs a community effort to express trustworthiness.\\\nStart with reading the reviews of the crates you use on [web.crev.dev/rust-reviews/crates/](https://web.crev.dev/rust-reviews/crates/) \\\nThan install the CLI [cargo-crev](https://github.com/crev-dev/cargo-crev)\\. Follow the [Getting Started guide](https://github.com/crev-dev/cargo-crev/blob/master/cargo-crev/src/doc/getting_started.md). \\\nOn your Rust project, verify the trustworthiness of all dependencies, including transient dependencies with `cargo crev verify`\\\nWrite a new review ! \\\nDescribe the crates you trust. Or warn about the crate versions you think are dangerous.\\\nHelp other developers, inform them and share your opinion.\\\nUse [cargo_crev_reviews](https://crates.io/crates/cargo_crev_reviews) to write reviews easily.\n\nLicense: MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedg-l%2Fsitewriter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedg-l%2Fsitewriter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedg-l%2Fsitewriter/lists"}