2 unstable releases
0.2.0 | Jun 23, 2024 |
---|---|
0.1.0 | Mar 16, 2024 |
#2982 in Parser implementations
66 downloads per month
Used in sitemaps-cli
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
~3.5–5MB
~97K SLoC