use-sitemap 0.0.1

Sitemap entry primitives and XML-safe formatting helpers for RustUse
Documentation
  • Coverage
  • 100%
    36 out of 36 items documented1 out of 25 items with examples
  • Size
  • Source code size: 12.73 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 782.79 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-presence
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-sitemap

Sitemap entry primitives and XML-safe formatting helpers for RustUse.

Example

use use_sitemap::{ChangeFrequency, Priority, SitemapEntry, SitemapUrl};

let entry = SitemapEntry::new(SitemapUrl::new("https://example.com/").unwrap())
    .with_change_frequency(ChangeFrequency::Weekly)
    .with_priority(Priority::new(0.8).unwrap());

assert!(entry.to_url_xml().contains("<changefreq>weekly</changefreq>"));

Scope

  • Sitemap URLs, entries, index entries, change frequency, priority, last-modified labels, and XML escaping.

Non-goals

  • A full XML framework, file IO, crawling, or URL discovery.

License

Licensed under either Apache-2.0 or MIT, at your option.