Setting bard to have a server mode.

This is so that the database using code that doesn't compile to WASM can
be used by the dioxus frontend.
This commit is contained in:
2025-09-04 12:44:51 -04:00
parent 1cdf5765cf
commit e6f3ff3c1e
2 changed files with 8 additions and 2 deletions

View File

@ -4,12 +4,14 @@ mod info;
#[cfg(feature = "server")]
use tavern::Database;
pub use crate::info::{get_name, get_version};
#[cfg(feature = "server")]
pub async fn init_database<P>(path: P)
-> Result<std::sync::Arc<Database>, Box<dyn std::error::Error>>
where P: AsRef<std::path::Path>