CyberMages LLC

Innovation Powered by Wizardry

tavern (0.3.0)

Published 2025-09-25 11:44:01 -04:00 by myrddin

Installation

[registry]
default = "gitea"

[registries.gitea]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add tavern@0.3.0

About this package

A blogging system that will allow you to write your blog in Markdown and then display it in HTML using Dioxus.

Tavern

Tavern is the core content engine of the Tavernworks blog system. It provides the data model, parsing logic, and database interaction necessary to convert a Markdown-based blog repository into a structured, queryable form.

Features

  • Parses blog content from Markdown files and metadata.
  • Converts content into an in-memory model or stores it in SQLite.
  • Provides an async API to query and manipulate blog data.
  • Designed to be extensible and integrated into CLI tools or frontends.

Usage

As a library, tavern can be embedded in Rust applications or CLI tools to handle blog content processing and storage.

use tavern::{Tavern, Database};

let tavern = Tavern::from_config_file("Tavern.toml");
let database = Database::open("blog.db").await?;
database.insert_tavern(&tavern).await?;

Copyright 2025 CyberMages LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this library except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS

Dependencies

ID Version
chrono ^0.4.41
pulldown-cmark ^0.13.0
serde ^1.0.219
sqlx ^0.8.6
toml ^0.9.5
tokio ^1
Details
Cargo
2025-09-25 11:44:01 -04:00
11
CyberMages LLC <Software@CyberMagesLLC.com>
Jason Travis Smith <Myrddin@CyberMages.tech>
Apache-2.0
28 KiB
Assets (1)
Versions (12) View all
0.3.0 2025-09-25
0.2.9 2025-09-08
0.2.8 2025-09-08
0.2.7 2025-09-07
0.2.6 2025-09-07