2 unstable releases
0.2.0 | Jun 23, 2024 |
---|---|
0.1.0 | Mar 16, 2024 |
#9 in #sitemap
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
~4–5.5MB
~95K SLoC