Files
codex/codex-rs/exec-server/src/server.rs
2026-03-18 21:39:10 -07:00

26 lines
719 B
Rust

mod filesystem;
mod handler;
mod processor;
mod registry;
mod transport;
pub(crate) use handler::ExecServerHandler;
pub use transport::DEFAULT_LISTEN_URL;
pub use transport::ExecServerListenUrlParseError as ExecServerTransportParseError;
pub async fn run_main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
run_main_with_transport(DEFAULT_LISTEN_URL).await
}
pub async fn run_main_with_listen_url(
listen_url: &str,
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
transport::run_transport(listen_url).await
}
pub async fn run_main_with_transport(
listen_url: &str,
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
transport::run_transport(listen_url).await
}