rss-gen 0.0.5

A Rust library for generating, serializing, and deserializing RSS feeds for various RSS versions.
Documentation

Install

cargo add rss-gen

Or add to Cargo.toml:

[dependencies]
rss-gen = "0.0.5"

You need Rust 1.79.0 or later. Works on macOS, Linux, and Windows.


Overview

RSS Gen creates, serializes, and deserializes RSS feeds for multiple RSS versions.

  • Feed generation with a builder API
  • XML serialization to valid RSS output
  • Deserialization of existing feeds into Rust structs
  • Multi-version support — RSS 0.90 through 2.0

Features

RSS generation Create RSS 2.0 feeds programmatically
Serialization Serialize feeds to XML strings
Deserialization Parse existing RSS feeds into Rust structs
Multiple versions Support for RSS 0.90, 0.91, 0.92, 1.0, and 2.0
Validation Validate feed structure and required elements

Usage

use rss_gen::{generate_rss, RssData, RssVersion};

fn main() {
    let rss = RssData::new(Some(RssVersion::RSS2_0))
        .title("My Blog")
        .link("https://example.com")
        .description("A blog about Rust");

    println!("{}", generate_rss(&rss).unwrap());
}

Development

cargo build        # Build the project
cargo test         # Run all tests
cargo clippy       # Lint with Clippy
cargo fmt          # Format with rustfmt

See CONTRIBUTING.md for setup, signed commits, and PR guidelines.


THE ARCHITECT \u1d2b Sebastien Rousseau THE ENGINE \u1d5e EUXIS \u1d2b Enterprise Unified Execution Intelligence System


License

Dual-licensed under Apache 2.0 or MIT, at your option.