Crates.io | sitemaps |
lib.rs | sitemaps |
version | 0.2.0 |
source | src |
created_at | 2024-03-16 01:01:57.135794 |
updated_at | 2024-06-23 01:20:37.271242 |
description | Read and write files in the Sitemaps XML format |
homepage | https://github.com/blackerby/sitemaps-rs |
repository | https://github.com/blackerby/sitemaps-rs |
max_upload_size | |
id | 1175335 |
size | 40,191 |
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();