@@ -19,36 +19,36 @@ pub mod info {
1919}
2020
2121static_lazy_lock ! {
22+ /// The port to listen to.
2223 pub PORT : u16 = parse_env!( "PORT" => |s| s. parse:: <u16 >( ) ; anyhow) . expect( "PORT not set in environment" ) ;
23- "The port to listen to."
2424}
2525
2626static_lazy_lock ! {
27+ /// The username of the API key.
2728 pub KTT_API_USERNAME : String = env:: var( "KTT_API_USERNAME" ) . expect( "KTT_API_USERNAME not set in environment" ) ;
28- "The username of the API key."
2929}
3030
3131static_lazy_lock ! {
32+ /// The password of the API key.
3233 pub KTT_API_PASSWORD : String = env:: var( "KTT_API_PASSWORD" ) . expect( "KTT_API_PASSWORD not set in environment" ) ;
33- "The password of the API key."
3434}
3535
3636static_lazy_lock ! {
37+ /// The maximum file count to use for tracing.
3738 pub TRACING_MAX_FILES : usize = parse_env!( "TRACING_MAX_FILES" => |s| s. parse:: <usize >( ) ; anyhow) . unwrap_or( 5 ) ;
38- "The maximum file count to use for tracing."
3939}
4040
4141static_lazy_lock ! {
42+ /// The directory for tracing files. Defaults to `/tmp/tracing/main` if not specified.
4243 pub TRACING_DIR : PathBuf = parse_env!( "TRACING_DIR" => |s| Ok ( PathBuf :: from( s) ) ) . unwrap_or( PathBuf :: from( "/tmp/tracing" ) ) . join( clap:: crate_name!( ) ) ;
43- "The directory for tracing files. Defaults to `/tmp/tracing/main` if not specified."
4444}
4545
4646static_lazy_lock ! {
47+ /// The name of the Docker container that runs this service.
4748 pub DOCKER_CONTAINER_NAME : String = env:: var( "DOCKER_CONTAINER_NAME" ) . unwrap_or_else( |_| format!( "api-{}" , clap:: crate_name!( ) ) ) ;
48- "The name of the Docker container that runs this service."
4949}
5050
5151static_lazy_lock ! {
52+ /// The path to the Docker Compose file.
5253 pub DOCKER_COMPOSE_FILE : PathBuf = parse_env!( "DOCKER_COMPOSE_FILE" => |s| Ok ( PathBuf :: from( s) ) ) . unwrap( ) ;
53- "The path to the Docker Compose file."
5454}
0 commit comments