Skip to content

Commit 0084896

Browse files
committed
Add server help text. v0.3.1
1 parent 6d0a52c commit 0084896

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rusty-runner-server/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rusty-runner-server"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
edition = "2021"
55

66
[lints]

rusty-runner-server/src/main.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Runs a server complying with the [`rusty_runner_api`].
22
//!
3-
//! Listens on `localhost:8000` unless changed by the [`CliArgs`].
3+
//! Listens on `http://localhost:8000`, e.g. `http://localhost:8000/api/info` unless changed by the [`CliArgs`].
44
//! The working directory is determined by [`{std::env::temp_dir()}/rusty-runner`][process::working_directory].
55
66
use axum::routing::get;
@@ -53,6 +53,10 @@ async fn main() -> std::io::Result<()> {
5353
.await
5454
}
5555

56+
/// Runs a server complying with the `rusty_runner_api`.
57+
///
58+
/// By default listens on `http://localhost:8000`, e.g. `http://localhost:8000/api/info` unless changed by the command line arguments.
59+
/// The working directory is determined by `{std::env::temp_dir()}/rusty-runner`.
5660
#[derive(Parser)]
5761
struct CliArgs {
5862
/// The host address for the rusty-runner server.

rusty-runner-server/src/routes.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ compile_error!("Unix and Windows are exclusive!");
1717
#[cfg(not(any(windows, unix)))]
1818
compile_error!("Either Unix or Windows must be targeted!");
1919

20+
/// Routes under `/api`.
2021
pub fn routes() -> Router {
2122
Router::new()
2223
.route("/info", get(info))

0 commit comments

Comments
 (0)