diff --git a/README.adoc b/README.adoc index 56260b8..e4ce4d3 100644 --- a/README.adoc +++ b/README.adoc @@ -2,7 +2,7 @@ :toc: left :icons: font -= Patagia Control Plane += Patagia Run - Control Plane [link=https://ci.patagia.dev/repos/5,window=_blank] image::https://ci.patagia.dev/api/badges/5/status.svg[Build Status] diff --git a/agent/src/main.rs b/agent/src/main.rs index a3e4a95..b483f1a 100644 --- a/agent/src/main.rs +++ b/agent/src/main.rs @@ -23,6 +23,7 @@ async fn main() -> Result<()> { let result = client.version().await?; tracing::info!("Result: {:?}", result); + sleep(Duration::from_secs(3)).await; Ok(()) } diff --git a/client/Cargo.toml b/client/Cargo.toml index b619654..6cee066 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" [dependencies] anyhow.workspace = true -chrono = { version = "0.4.0", default-features = false, features = ["serde"] } progenitor.workspace = true reqwest.workspace = true schemars.workspace = true serde.workspace = true +chrono = { version = "0.4.0", default-features = false, features = ["serde"] } diff --git a/client/src/lib.rs b/client/src/lib.rs index 841b609..4fed3f8 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -1,3 +1,3 @@ use progenitor::generate_api; -generate_api!(spec = "../api.json", derives = [schemars::JsonSchema]); +generate_api!(spec = "../api.json", derives = [schemars::JsonSchema],); diff --git a/flake.lock b/flake.lock index 3b29c1b..7b2cdc3 100644 --- a/flake.lock +++ b/flake.lock @@ -3,11 +3,11 @@ "advisory-db": { "flake": false, "locked": { - "lastModified": 1733749954, - "narHash": "sha256-2Ug80Uf/oUujxgh02Iy5vTG0V+Ab9+YUHuRLRY0ayiY=", + "lastModified": 1731808107, + "narHash": "sha256-HSx5EDsO07KULW4bNPVeGVAfpQqzwwS005vqISdOzNg=", "owner": "rustsec", "repo": "advisory-db", - "rev": "ec9ce28714bb38d77a2223e7266df705500a7f11", + "rev": "8e353a172f1baf11c0c917cfc9ae3c5eff8b9d06", "type": "github" }, "original": { @@ -18,11 +18,11 @@ }, "crane": { "locked": { - "lastModified": 1733688869, - "narHash": "sha256-KrhxxFj1CjESDrL5+u/zsVH0K+Ik9tvoac/oFPoxSB8=", + "lastModified": 1731974733, + "narHash": "sha256-enYSSZVVl15FI5p+0Y5/Ckf5DZAvXe6fBrHxyhA/njc=", "owner": "ipetkov", "repo": "crane", - "rev": "604637106e420ad99907cae401e13ab6b452e7d9", + "rev": "3cb338ce81076ce5e461cf77f7824476addb0e1c", "type": "github" }, "original": { @@ -98,11 +98,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1733097829, - "narHash": "sha256-9hbb1rqGelllb4kVUCZ307G2k3/UhmA8PPGBoyuWaSw=", + "lastModified": 1731890469, + "narHash": "sha256-D1FNZ70NmQEwNxpSSdTXCSklBH1z2isPR84J6DQrJGs=", "owner": "nixos", "repo": "nixpkgs", - "rev": "2c15aa59df0017ca140d9ba302412298ab4bf22a", + "rev": "5083ec887760adfe12af64830a66807423a859a7", "type": "github" }, "original": { @@ -128,11 +128,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1734230139, - "narHash": "sha256-zsp0Mz8VgyIAnU8UhP/YT1g+zlsl+NIJTBMAbY+RifQ=", + "lastModified": 1732328983, + "narHash": "sha256-RHt12f/slrzDpSL7SSkydh8wUE4Nr4r23HlpWywed9E=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "150fbc8aa2bc501041810bbc1dbfe73694a861be", + "rev": "ed8aa5b64f7d36d9338eb1d0a3bb60cf52069a72", "type": "github" }, "original": { @@ -161,11 +161,11 @@ "nixpkgs": "nixpkgs_3" }, "locked": { - "lastModified": 1733761991, - "narHash": "sha256-s4DalCDepD22jtKL5Nw6f4LP5UwoMcPzPZgHWjAfqbQ=", + "lastModified": 1732292307, + "narHash": "sha256-5WSng844vXt8uytT5djmqBCkopyle6ciFgteuA9bJpw=", "owner": "numtide", "repo": "treefmt-nix", - "rev": "0ce9d149d99bc383d1f2d85f31f6ebd146e46085", + "rev": "705df92694af7093dfbb27109ce16d828a79155f", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 6e8ca38..6c90e4b 100644 --- a/flake.nix +++ b/flake.nix @@ -26,7 +26,7 @@ flake-utils.lib.eachDefaultSystem ( system: let - rustVersion = "1.83.0"; + rustVersion = "1.81.0"; # Skipping 1.82 because of https://github.com/rust-lang/rust/issues/132064 overlays = [ (import rust-overlay) @@ -92,7 +92,6 @@ ./Cargo.toml ./Cargo.lock (craneLib.fileset.commonCargoSources ./agent) - (craneLib.fileset.commonCargoSources ./client) (craneLib.fileset.commonCargoSources ./controller) (craneLib.fileset.commonCargoSources ./xtask) (craneLib.fileset.commonCargoSources crate) @@ -144,7 +143,7 @@ } ); - # fmt = craneLib.cargoFmt (commonArgs // { inherit src; }); + fmt = craneLib.cargoFmt (commonArgs // { inherit src; }); audit = craneLib.cargoAudit (commonArgs // { inherit src advisory-db; });