Skip to content

Commit 8d4a7a1

Browse files
committed
build: update dependencies
Signed-off-by: Yaroslav Bolyukin <[email protected]>
1 parent 81e3c77 commit 8d4a7a1

File tree

12 files changed

+91
-593
lines changed

12 files changed

+91
-593
lines changed

Cargo.lock

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

cmds/fleet/Cargo.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "fleet"
33
description = "NixOS configuration management"
44
version = "0.1.0"
55
authors = ["Yaroslav Bolyukin <[email protected]>"]
6-
edition = "2018"
6+
edition = "2021"
77

88
[dependencies]
99
anyhow = "1.0"
@@ -14,17 +14,16 @@ tempfile = "3.2"
1414
once_cell = "1.5"
1515
hostname = "0.3.1"
1616
age-core = "0.7.0"
17-
peg = "0.7.0"
17+
peg = "0.8.0"
1818
nixlike = {path = "../../crates/nixlike"}
1919
age = { version = "0.7.0", features = ["ssh", "armor"] }
2020
base64 = "0.13.0"
2121
chrono = { version = "0.4.19", features = ["serde"] }
2222
z85 = "3.0.3"
23-
base58 = "*"
2423
structopt = "0.3.23"
2524
tokio = { version = "1.14.0", features = ["full"] }
2625
tracing = "0.1.29"
2726
tracing-subscriber = { version = "0.3.3", features = ["fmt", "env-filter"] }
28-
tokio-util = { version = "0.6.9", features = ["codec"] }
27+
tokio-util = { version = "0.7.0", features = ["codec"] }
2928
async-trait = "0.1.52"
3029
futures = "0.3.17"

cmds/fleet/src/cmds/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pub mod build_systems;
2-
pub mod secrets;
32
pub mod info;
3+
pub mod secrets;

cmds/fleet/src/command.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use async_trait::async_trait;
55
use futures::StreamExt;
66
use serde::{
77
de::{DeserializeOwned, Visitor},
8-
Deserialize,
8+
Deserialize,
99
};
1010
use tokio::{process::Command, select};
1111
use tokio_util::codec::{BytesCodec, FramedRead, LinesCodec};
@@ -153,9 +153,15 @@ impl CommandExt for Command {
153153
NixLog::Start { text, level: 0, typ: 108, .. } if text == "" => {
154154
// Cache lookup? Coupled with copy log
155155
},
156+
NixLog::Start { text, level: 4, typ: 109, .. } if text.starts_with("querying info about ") => {
157+
// Cache lookup
158+
}
156159
NixLog::Start { text, level: 4, typ: 101, .. } if text.starts_with("downloading ") => {
157160
// NAR downloading, coupled with copy log
158161
}
162+
NixLog::Start { text, level: 1, typ: 111, .. } if text.starts_with("waiting for a machine to build ") => {
163+
// Useless repeating notification about build
164+
}
159165
NixLog::Stop { .. } => {},
160166
NixLog::Result { .. } => {},
161167
_ => warn!("unknown log: {:?}", log)

cmds/fleet/src/host.rs

+7-3
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ impl Config {
7272
str.push("#");
7373
str.push(&format!(
7474
"fleetConfigurations.default.{}.{}",
75-
self.local_system,
76-
name
75+
self.local_system, name
7776
));
7877
str
7978
}
@@ -89,7 +88,12 @@ impl Config {
8988
pub async fn config_attr<T: DeserializeOwned>(&self, host: &str, attr: &str) -> Result<T> {
9089
Command::new("nix")
9190
.arg("eval")
92-
.arg(self.configuration_attr_name(&format!("configuredSystems.{}.config.{}", host, attr)))
91+
.arg(
92+
self.configuration_attr_name(&format!(
93+
"configuredSystems.{}.config.{}",
94+
host, attr
95+
)),
96+
)
9397
.args(&["--json", "--show-trace"])
9498
.run_nix_json()
9599
.await

cmds/fleet/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
pub mod cmds;
12
pub mod command;
23
pub mod host;
34
pub mod keys;
4-
pub mod cmds;
55

66
mod fleetdata;
77

cmds/install-secrets/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "fleet-install-secrets"
33
version = "0.1.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies]
7-
age = { version = "0.6.0", features = ["ssh"] }
7+
age = { version = "0.7.1", features = ["ssh"] }
88
anyhow = "1.0.44"
99
env_logger = "0.9.0"
1010
log = "0.4.14"
11-
nix = "0.22.1"
11+
nix = "0.23.1"
1212
serde = "1.0.130"
1313
serde_json = "1.0.68"
1414
structopt = "0.3.23"

crates/nixlike/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "nixlike"
33
version = "0.1.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies]
7-
dprint-core = "0.46.2"
7+
dprint-core = "0.50.0"
88
linked-hash-map = "0.5.4"
9-
peg = "0.7.0"
9+
peg = "0.8.0"
1010
serde = "1.0.130"
1111
thiserror = "1.0.29"

crates/nixlike/fuzz/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name = "nixlike-fuzz"
44
version = "0.0.0"
55
authors = ["Automatically generated"]
66
publish = false
7-
edition = "2018"
7+
edition = "2021"
88

99
[package.metadata]
1010
cargo-fuzz = true

crates/nixlike/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! Serialization/deserialization for nix subset usable for static configurations
2+
//! Serialized results from this library are readable by both this library and standard nix tools
3+
14
use linked_hash_map::LinkedHashMap;
25
use peg::str::LineCol;
36
use se_impl::MySerialize;

flake.lock

-60
This file was deleted.

flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
inherit system; overlays = [ (import rust-overlay) ];
1616
};
1717
llvmPkgs = pkgs.buildPackages.llvmPackages_11;
18-
rust = (pkgs.rustChannelOf { date = "2021-08-16"; channel = "nightly"; }).default.override { extensions = [ "rust-src" ]; };
18+
rust = (pkgs.rustChannelOf { date = "2022-02-02"; channel = "nightly"; }).default.override { extensions = [ "rust-src" ]; };
1919
rustPlatform = pkgs.makeRustPlatform { cargo = rust; rustc = rust; };
2020
in
2121
{

0 commit comments

Comments
 (0)