2 unstable releases

0.2.0 Jun 23, 2024
0.1.0 Mar 16, 2024

#11 in #sitemap

Download history 22/week @ 2024-09-25 19/week @ 2024-10-02 3/week @ 2024-10-09 3/week @ 2024-12-04 13/week @ 2024-12-11

84 downloads per month
Used in sitemaps-cli

MIT license

30KB
628 lines

sitemaps

Read and write files in the Sitemaps XML format

use std::fs::File;
use std::io::BufReader;
use sitemaps::SitemapsFile;

let file = File::open("tests/data/example_1_url.xml").unwrap();
let reader = BufReader::new(file);
let sitemap = SitemapsFile::read(reader).unwrap();

lib.rs:

Read and write files in the Sitemaps XML format

use std::fs::File;
use std::io::BufReader;
use sitemaps::SitemapsFile;

let file = File::open("tests/data/example_1_url.xml").unwrap();
let reader = BufReader::new(file);
let sitemap = SitemapsFile::read(reader).unwrap();

Dependencies

~4.5–5.5MB
~96K SLoC