OPML library for Rust & standalone CLI. https://crates.io/crates/opml
Go to file
Bauke 53e76e8aa6
Add a bunch of things:
* A way of easily constructing OPMLs
* An example of how to do construct in the getting started documentation
* Make outline booleans optional so there's no unnecessary XML output
* Defaults for all structs
* Various helper methods for adding feeds and getting the XML output
* Tests for construction
2020-05-25 20:35:01 +02:00
examples Initial commit! 🎉 2020-05-23 14:32:40 +02:00
source Add a bunch of things: 2020-05-25 20:35:01 +02:00
tests Add a bunch of things: 2020-05-25 20:35:01 +02:00
.gitignore Initial commit! 🎉 2020-05-23 14:32:40 +02:00
.gitlab-ci.yml Add GitLab CI builds. 2020-05-24 15:33:18 +02:00
Cargo.toml Fix doc comments. 2020-05-23 18:21:21 +02:00
License-Apache Initial commit! 🎉 2020-05-23 14:32:40 +02:00
License-MIT Initial commit! 🎉 2020-05-23 14:32:40 +02:00
ReadMe.md Add more documentation and an example in the code. 2020-05-25 02:12:43 +02:00
rustfmt.toml Initial commit! 🎉 2020-05-23 14:32:40 +02:00

ReadMe.md

OPML

An OPML 2.0 parser for Rust.

Contents

Expertise Wanted

This is the first crate I'm publishing to crates.io and the first proper library I've made for Rust. Any help or tips with how to improve the API, documentation, usability, testing or anything else is very welcome. Feel free to create an issue or contact me via email at helllo@holllo.cc.

Getting Started

use opml::OPML;

let xml = r#"<opml version="2.0"><head/><body><outline text="Outline"/></body></opml>"#;
let parsed = OPML::new(xml).unwrap();

println!("{:#?}", parsed);

License

Open-sourced with either the

at your option.

The samples located in tests/spec_samples were taken from the OPML 2.0 spec and are subject to their own license.