metadata-gen 0.0.3

A powerful Rust library for extracting, validating, and processing metadata in YAML, TOML, and JSON formats from any content or data file.
Documentation

Install

cargo add metadata-gen

Or add to Cargo.toml:

[dependencies]
metadata-gen = "0.0.3"

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


Overview

Metadata Gen extracts, validates, and processes metadata from content files in YAML, TOML, and JSON formats.

  • Multi-format extraction from any content file
  • HTML meta tag generation for SEO
  • Validation of metadata structure and required fields
  • Serde integration for typed metadata access

Features

Multi-format Extract metadata from YAML, TOML, and JSON
Validation Validate metadata structure and required fields
Meta tags Generate HTML meta tags from metadata
Content files Process metadata from any content or data file
Serde integration Serialize/deserialize metadata to Rust structs

Usage

use metadata_gen::extract_metadata;

fn main() {
    let content = "---\ntitle: Example\n---\nBody text.";
    let meta = extract_metadata(content).unwrap();
    println!("Title: {}", meta.get("title").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.