When using dioxus it would be greate to use the types from this library on the backend and the front end. To do this we need to be able to cut out the sqlx package because it uses mio which doesn't compile to WASM. To do this we put the database code behind a database feature flag. The Publisher feature will also trigger the database flag.
22 lines
485 B
Rust
22 lines
485 B
Rust
//! A blogging system that will allow you to write your blog in Markdown and
|
|
//! then display it in HTML using Dioxus.
|
|
|
|
mod info;
|
|
|
|
mod adventurer;
|
|
#[cfg(feature = "publisher")]
|
|
mod converter;
|
|
#[cfg(feature = "database")]
|
|
mod database;
|
|
mod tale;
|
|
mod tavern;
|
|
|
|
|
|
|
|
pub use crate::adventurer::{Adventurer, Legend};
|
|
#[cfg(feature = "database")]
|
|
pub use crate::database::Database;
|
|
pub use crate::info::{get_name, get_version};
|
|
pub use crate::tale::{Lore, Tale};
|
|
pub use crate::tavern::Tavern;
|