mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
26 lines
719 B
Rust
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
|
|
}
|