Rename server module

This commit is contained in:
Danielle Jenkins 2025-03-11 12:21:40 -07:00
parent dc4bb7f567
commit 12b077b7be
6 changed files with 4 additions and 4 deletions

View file

@ -52,5 +52,5 @@ name = "doc-server"
path = "src/bin/doc_server.rs" path = "src/bin/doc_server.rs"
[[bin]] [[bin]]
name = "axum-docs" name = "http-sse-server"
path = "src/bin/axum_docs.rs" path = "src/bin/axum_docs.rs"

View file

@ -1,7 +1,7 @@
use anyhow::Result; use anyhow::Result;
use std::net::SocketAddr; use std::net::SocketAddr;
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt}; use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
use cratedocs_mcp::server::axum_docs::App; use cratedocs_mcp::server::http_sse_server::App;
const BIND_ADDRESS: &str = "127.0.0.1:8080"; const BIND_ADDRESS: &str = "127.0.0.1:8080";

View file

@ -95,7 +95,7 @@ async fn run_http_server(address: String, debug: bool) -> Result<()> {
tracing::info!("Access the Rust Documentation Server at http://{}/sse", addr); tracing::info!("Access the Rust Documentation Server at http://{}/sse", addr);
// Create app and run server // Create app and run server
let app = cratedocs_mcp::server::axum_docs::App::new(); let app = cratedocs_mcp::server::http_sse_server::App::new();
axum::serve(listener, app.router()).await?; axum::serve(listener, app.router()).await?;
Ok(()) Ok(())

View file

@ -1,4 +1,4 @@
pub mod axum_docs; pub mod http_sse_server;
#[cfg(test)] #[cfg(test)]
mod tests; mod tests;