static-auth-rocket

Check-in Differences
Login

Check-in Differences

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Difference From static-auth-rocket-0.1.0 To trunk

2024-11-20
07:29
Use service registry description from crate metadata. Leaf check-in: f19ba45db9 user: jan tags: trunk
07:15
Add README.md. check-in: 73a64016c5 user: jan tags: trunk
07:04
Move from old repo. check-in: 54e4c85362 user: jan tags: trunk, static-auth-rocket-0.1.0
05:14
initial empty check-in check-in: 9e4db6af68 user: jan tags: trunk

Changes to .efiles.

1

2
3
4
5
6
7
8
Cargo.toml

www/index.md
www/getting-it.md
www/running-it.md
www/run-as-service.md
www/systemd.md
www/winsvc.md
www/changelog.md

>







1
2
3
4
5
6
7
8
9
Cargo.toml
README.md
www/index.md
www/getting-it.md
www/running-it.md
www/run-as-service.md
www/systemd.md
www/winsvc.md
www/changelog.md

Changes to Cargo.toml.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[package]
name = "static-auth-rocket"
version = "0.1.0"
edition = "2021"
license = "0BSD"
# https://crates.io/category_slugs
categories = [ "web-programming::http-server" ]
keywords = [ "web", "server", "service" ]
repository = "https://repos.qrnch.tech/pub/static-auth-rocket"
description = "Simple authenticated http server for serving static content."
rust-version = "1.70"
exclude = [
  ".fossil-settings",
  ".efiles",
  ".fslckout",
  "www",
  "bacon.toml",









|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[package]
name = "static-auth-rocket"
version = "0.1.0"
edition = "2021"
license = "0BSD"
# https://crates.io/category_slugs
categories = [ "web-programming::http-server" ]
keywords = [ "web", "server", "service" ]
repository = "https://repos.qrnch.tech/pub/static-auth-rocket"
description = "Simple basic auth http server for serving static content."
rust-version = "1.70"
exclude = [
  ".fossil-settings",
  ".efiles",
  ".fslckout",
  "www",
  "bacon.toml",

Added README.md.











>
>
>
>
>
1
2
3
4
5
# Static Auth Rocket

This a [Rocket](https://rocket.rs)-based HTTP server used to serve static
content, requiring basic http authentication.

Changes to src/argp.rs.

65
66
67
68
69
70
71


72
73
74
75
76
77
78
79
80
81
82
83
    _sub_m: &ArgMatches,
    regsvc: RegSvc
  ) -> Result<RegSvc, Error> {
    // Use current working directory as the service's workdir
    let cwd = std::env::current_dir()?.to_str().unwrap().to_string();
    let regsvc = regsvc.workdir(cwd);



    let regsvc = regsvc
      .display_name("Static Auth Rocket")
      .description(
        "A static content HTTP server that requires basic authentication."
      )
      .conf_reload()
      .netservice();

    // ToDo: Print a warning if Rocket.toml doesn't exist in current directory?
    Ok(regsvc)
  }








>
>


|
<
<







65
66
67
68
69
70
71
72
73
74
75
76


77
78
79
80
81
82
83
    _sub_m: &ArgMatches,
    regsvc: RegSvc
  ) -> Result<RegSvc, Error> {
    // Use current working directory as the service's workdir
    let cwd = std::env::current_dir()?.to_str().unwrap().to_string();
    let regsvc = regsvc.workdir(cwd);

    let desc = env!("CARGO_PKG_DESCRIPTION");

    let regsvc = regsvc
      .display_name("Static Auth Rocket")
      .description(desc)


      .conf_reload()
      .netservice();

    // ToDo: Print a warning if Rocket.toml doesn't exist in current directory?
    Ok(regsvc)
  }