[refactor] removed unused api.rs
module to streamline code structure
This commit is contained in:
11
backend-rust/crates/app/Cargo.toml
Normal file
11
backend-rust/crates/app/Cargo.toml
Normal file
@@ -0,0 +1,11 @@
|
||||
[package]
|
||||
name = "owly-news"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
[dependencies]
|
||||
owly-news-api = { path = "../api" }
|
||||
tokio = { workspace = true, features = ["full"] }
|
||||
tracing = { workspace = true }
|
||||
tracing-subscriber = { workspace = true, features = ["env-filter", "json"] }
|
||||
anyhow = "1.0.99"
|
19
backend-rust/crates/app/src/main.rs
Normal file
19
backend-rust/crates/app/src/main.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
// Basic tracing setup (adjust as needed)
|
||||
tracing_subscriber::registry()
|
||||
.with(
|
||||
tracing_subscriber::EnvFilter::try_from_default_env()
|
||||
.unwrap_or_else(|_| "info".into()),
|
||||
)
|
||||
.with(tracing_subscriber::fmt::layer())
|
||||
.init();
|
||||
|
||||
// TODO: invoke your API server bootstrap here.
|
||||
// For example, if you have a function like `owly-news-api::run_server().await`
|
||||
// call it here. This is just a placeholder:
|
||||
tracing::info!("owly-news app starting...");
|
||||
Ok(())
|
||||
}
|
Reference in New Issue
Block a user