ibis/src/main.rs

17 lines
519 B
Rust
Raw Normal View History

2024-01-03 16:06:52 +00:00
#[cfg(feature = "ssr")]
2024-01-03 12:29:25 +00:00
#[tokio::main]
pub async fn main() -> ibis::backend::error::MyResult<()> {
use log::LevelFilter;
env_logger::builder()
.filter_level(LevelFilter::Warn)
.filter_module("activitypub_federation", LevelFilter::Info)
.filter_module("ibis", LevelFilter::Info)
.init();
let database_url = "postgres://ibis:password@localhost:5432/ibis";
ibis::backend::start("localhost:8131", database_url).await?;
Ok(())
2024-01-03 16:06:52 +00:00
}
#[cfg(not(feature = "ssr"))]
fn main() {}