Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From qsu-0.0.1 To qsu-0.0.2
2023-10-19
| ||
03:59 | Make a note about staticrocket. check-in: a54c7f6793 user: jan tags: trunk | |
03:32 | Category cleanup. check-in: 83c296e121 user: jan tags: qsu-0.0.2, trunk | |
03:29 | Cleanup. check-in: 00799d58af user: jan tags: trunk | |
2023-10-16
| ||
17:35 | Merge clap helpers. check-in: 397465de10 user: jan tags: trunk | |
00:20 | Start working on clap helpers for assisting in service registration/deregistration. check-in: 5f16ec8cf1 user: jan tags: clap-argp | |
2023-10-14
| ||
23:34 | Include examples when publishing. check-in: 429071c063 user: jan tags: qsu-0.0.1, trunk | |
23:32 | Happy clippy. check-in: 7235efb966 user: jan tags: trunk | |
Changes to .efiles.
︙ | |||
16 17 18 19 20 21 22 23 24 25 26 | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | + + + | src/rttype/sync.rs src/rttype/tokio.rs src/rttype/rocket.rs src/installer.rs src/installer/winsvc.rs src/installer/launchd.rs src/installer/systemd.rs src/argp.rs examples/hellosvc.rs examples/hellosvc-tokio.rs examples/hellosvc-rocket.rs examples/err/mod.rs examples/procres/mod.rs examples/argp/mod.rs |
Changes to Cargo.toml.
1 2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | - + - + + + - + + + + + | [package] name = "qsu" |
︙ | |||
65 66 67 68 69 70 71 | 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | - - + - - + - + - + | ] } winreg = { version = "0.51.0" } [dev-dependencies] clap = { version = "4.4.6", features = ["derive", "env", "wrap_help"] } tokio = { version = "1.33.0", features = ["time"] } |
Changes to Rocket.toml.
1 2 3 4 5 6 7 8 9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | + + + + + + + + | #[global] #port = 8000 # It is recommended that catching SIGINT,SIGTERM,Ctrl+C is left to qsu. [default.shutdown] ctrlc = false force = true signals = [] grace = 2 mercy = 3 [debug] address = "127.0.0.1" port = 8080 keep_alive = 5 log_level = "normal" #secret_key = [randomly generated at launch] |
︙ |
Added build_docs.sh.
|
Changes to examples/argp/mod.rs.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - + - - - - + - - - - - - - + + - - - + - - - - - - + + + - - - + + - - - - - - + + - - - - - - - - - - + + + + + - - - - + + + + - - - - + + - - - + - - + - - - - - - - - - - - - - |
|
Added examples/err/mod.rs.
|
Changes to examples/hellosvc-rocket.rs.
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | - + - - + - - - + + + - + | #[macro_use] extern crate rocket; mod argp; |
︙ | |||
42 43 44 45 46 47 48 | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | - - - + + + + + + + + - + - - + + + + - + - - + + + - + + - - - + + + + + + + + | ) -> Result<(), qsu::Error> { for rocket in rockets { tokio::task::spawn(async { rocket.launch().await.unwrap(); }); } |
︙ |
Changes to examples/hellosvc-tokio.rs.
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | + + - - - + - - - - + + + - + | //! Simple service that does nothing other than log/trace every N seconds. mod argp; mod err; mod procres; |
︙ | |||
47 48 49 50 51 52 53 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | - + + + + + + + | tokio::select! { _ = tokio::time::sleep(std::time::Duration::from_secs(1)) => { continue; } evt = set.arecv() => { match evt { Some(SvcEvt::Shutdown) => { |
︙ | |||
69 70 71 72 73 74 75 | 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | - - - + + + + + - + - - + + + - + + - - - + + + + + + + + | async fn shutdown(&mut self, _ss: StopState) -> Result<(), qsu::Error> { tracing::trace!("Running shutdown()"); Ok(()) } } |
Changes to examples/hellosvc.rs.
1 2 3 4 5 6 7 8 9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | + + - - - + + + + - + | //! Simple service that does nothing other than log/trace every N seconds. mod argp; mod err; mod procres; use std::{ thread, time::{Duration, Instant} }; |
︙ | |||
42 43 44 45 46 47 48 | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | - + + + + + + + - + - - - + + + + + - + - - + + + - + + - - - + + + + + + + + | last_dump = Instant::now(); } match set.try_recv() { Some(SvcEvt::Shutdown) => { tracing::info!( |
Added examples/procres/mod.rs.
|
Added src/argp.rs.