Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update cargo dependencies #1267

Merged
merged 2 commits into from
Jan 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
595 changes: 317 additions & 278 deletions sources/Cargo.lock

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions sources/api/apiclient/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ exclude = ["README.md"]
http = "0.2"
hyper = { version = "0.13", default-features = false }
hyper-unix-connector = "0.1"
# when we update hyper to 0.14+ and tokio to 1
# hyper-unix-connector = "0.2"
log = "0.4"
serde_json = "1.0"
simplelog = "0.8"
simplelog = "0.9"
snafu = "0.6"
tokio = { version = "0.2", default-features = false, features = ["macros", "rt-threaded", "time"] }
# When hyper updates to tokio 0.3:
#tokio = { version = "0.3", default-features = false, features = ["macros", "rt-multi-thread", "time"] }
# When we update hyper to 0.14+ which has tokio 1:
#tokio = { version = "1", default-features = false, features = ["macros", "rt-multi-thread", "time"] }
unindent = "0.1"

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion sources/api/apiclient/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ mod error {
Check { source: update::Error },

#[snafu(display("Logger setup error: {}", source))]
Logger { source: simplelog::TermLogError },
Logger { source: log::SetLoggerError },

#[snafu(display("Failed {} request to '{}': {}", method, uri, source))]
Request {
Expand Down
2 changes: 1 addition & 1 deletion sources/api/apiserver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ percent-encoding = "2.1"
semver = "0.11"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
simplelog = "0.8"
simplelog = "0.9"
snafu = "0.6"
thar-be-updates = { path = "../thar-be-updates" }
walkdir = "2.2"
Expand Down
2 changes: 1 addition & 1 deletion sources/api/apiserver/src/bin/apiserver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mod error {
Server { source: apiserver::server::Error },

#[snafu(display("Logger setup error: {}", source))]
Logger { source: simplelog::TermLogError },
Logger { source: log::SetLoggerError },
}
}

Expand Down
2 changes: 1 addition & 1 deletion sources/api/bork/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ publish = false
exclude = ["README.md"]

[dependencies]
rand = "0.7.0"
rand = "0.8"
serde_json = "1"
2 changes: 1 addition & 1 deletion sources/api/bork/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use rand::{thread_rng, Rng};

fn main() {
let mut rng = thread_rng();
let val = rng.gen_range(0, 2048);
let val = rng.gen_range(0..2048);

// sundog expects JSON-serialized output so that many types can be represented, allowing the
// API model to use more accurate types.
Expand Down
2 changes: 1 addition & 1 deletion sources/api/corndog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ log = "0.4"
models = { path = "../../models" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1"
simplelog = "0.8"
simplelog = "0.9"
snafu = "0.6"
tokio = { version = "0.2", default-features = false, features = ["macros", "rt-threaded"] }
# When hyper updates to tokio 0.3:
Expand Down
2 changes: 1 addition & 1 deletion sources/api/corndog/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ mod error {
},

#[snafu(display("Logger setup error: {}", source))]
Logger { source: simplelog::TermLogError },
Logger { source: log::SetLoggerError },

#[snafu(display(
"Error deserializing response as JSON from {} to '{}': {}",
Expand Down
2 changes: 1 addition & 1 deletion sources/api/early-boot-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ log = "0.4"
reqwest = { version = "0.10", default-features = false, features = ["blocking"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1"
simplelog = "0.8"
simplelog = "0.9"
snafu = "0.6"
tokio = { version = "0.2", default-features = false, features = ["macros", "rt-threaded"] }
# When hyper updates to tokio 0.3:
Expand Down
2 changes: 1 addition & 1 deletion sources/api/early-boot-config/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ mod error {
IdentityDocMissingData { missing: String },

#[snafu(display("Logger setup error: {}", source))]
Logger { source: simplelog::TermLogError },
Logger { source: log::SetLoggerError },
}
}

Expand Down
2 changes: 1 addition & 1 deletion sources/api/host-containers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ log = "0.4"
models = { path = "../../models" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1"
simplelog = "0.8"
simplelog = "0.9"
snafu = "0.6"
tokio = { version = "0.2", default-features = false, features = ["macros", "rt-threaded"] }
# When hyper updates to tokio 0.3:
Expand Down
2 changes: 1 addition & 1 deletion sources/api/host-containers/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ mod error {
ManageContainersFailed { failed: usize, tried: usize },

#[snafu(display("Logger setup error: {}", source))]
Logger { source: simplelog::TermLogError },
Logger { source: log::SetLoggerError },

#[snafu(display("Unable to base64 decode user-data '{}': '{}'", base64_string, source))]
Base64Decode {
Expand Down
4 changes: 2 additions & 2 deletions sources/api/migration/migrator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ log = "0.4"
lz4 = "1.23.1"
nix = "0.19"
pentacle = "1.0.0"
rand = { version = "0.7", default-features = false, features = ["std"] }
rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] }
regex = "1.1"
semver = "0.11"
simplelog = "0.8"
simplelog = "0.9"
snafu = "0.6"
tempfile = "3.1.0"
tough = "0.8"
Expand Down
6 changes: 5 additions & 1 deletion sources/api/migration/migrator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ pub(crate) fn run(args: &Args) -> Result<()> {
/// Generates a random ID, affectionately known as a 'rando', that can be used to avoid timing
/// issues and identify unique migration attempts.
fn rando() -> String {
thread_rng().sample_iter(&Alphanumeric).take(16).collect()
thread_rng()
.sample_iter(&Alphanumeric)
.take(16)
.map(char::from)
.collect()
tjkirch marked this conversation as resolved.
Show resolved Hide resolved
}

/// Generates a path for a new data store, given the path of the existing data store,
Expand Down
2 changes: 1 addition & 1 deletion sources/api/netdog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dns-lookup = "1.0"
ipnet = { version = "2.0", features = ["serde"] }
envy = "0.4"
lazy_static = "1.2"
rand = { version = "0.7", default-features = false, features = ["std"] }
rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] }
regex = "1.1"
serde = { version = "1.0", features = ["derive"] }
serde_plain = "0.3.0"
Expand Down
2 changes: 1 addition & 1 deletion sources/api/servicedog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ log = "0.4"
models = { path = "../../models" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1"
simplelog = "0.8"
simplelog = "0.9"
snafu = "0.6"
tokio = { version = "0.2", default-features = false, features = ["macros", "rt-threaded"] }
# When hyper updates to tokio 0.3:
Expand Down
2 changes: 1 addition & 1 deletion sources/api/servicedog/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ mod error {
SystemdCommandFailure { output: Output },

#[snafu(display("Logger setup error: {}", source))]
Logger { source: simplelog::TermLogError },
Logger { source: log::SetLoggerError },
}
}

Expand Down
6 changes: 3 additions & 3 deletions sources/api/settings-committer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ http = "0.2"
log = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1"
simplelog = "0.8"
simplelog = "0.9"
tokio = { version = "0.2", default-features = false, features = ["macros", "rt-threaded"] }
# When hyper updates to tokio 0.3:
#tokio = { version = "0.3", default-features = false, features = ["macros", "rt-multi-thread"] }
# When hyper updates to tokio 1:
#tokio = { version = "1", default-features = false, features = ["macros", "rt-multi-thread"] }

[build-dependencies]
cargo-readme = "3.1"
2 changes: 1 addition & 1 deletion sources/api/settings-committer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ mod error {
},

#[snafu(display("Logger setup error: {}", source))]
Logger { source: simplelog::TermLogError },
Logger { source: log::SetLoggerError },
}
}

Expand Down
4 changes: 2 additions & 2 deletions sources/api/storewolf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ bottlerocket-release = { path = "../../bottlerocket-release" }
datastore = { path = "../datastore" }
log = "0.4"
models = { path = "../../models" }
rand = { version = "0.7", default-features = false, features = ["std"] }
rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] }
semver = "0.11"
simplelog = "0.8"
simplelog = "0.9"
snafu = "0.6"
toml = "0.5"

Expand Down
6 changes: 5 additions & 1 deletion sources/api/storewolf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ pub fn create_new_datastore<P: AsRef<Path>>(
};

// Create random string to append to the end of the new datastore path
let random_id: String = thread_rng().sample_iter(&Alphanumeric).take(16).collect();
let random_id: String = thread_rng()
.sample_iter(&Alphanumeric)
.take(16)
.map(char::from)
.collect();

// Build the various paths to which we'll symlink

Expand Down
2 changes: 1 addition & 1 deletion sources/api/storewolf/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ mod error {
DataStoreLinkToRoot { path: PathBuf },

#[snafu(display("Logger setup error: {}", source))]
Logger { source: simplelog::TermLogError },
Logger { source: log::SetLoggerError },

#[snafu(display("Internal error: {}", msg))]
Internal { msg: String },
Expand Down
2 changes: 1 addition & 1 deletion sources/api/sundog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ log = "0.4"
models = { path = "../../models" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1"
simplelog = "0.8"
simplelog = "0.9"
snafu = "0.6"
tokio = { version = "0.2", default-features = false, features = ["macros", "rt-threaded"] }
# When hyper updates to tokio 0.3:
Expand Down
2 changes: 1 addition & 1 deletion sources/api/sundog/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ mod error {
},

#[snafu(display("Logger setup error: {}", source))]
Logger { source: simplelog::TermLogError },
Logger { source: log::SetLoggerError },
}
}

Expand Down
4 changes: 2 additions & 2 deletions sources/api/thar-be-settings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ exclude = ["README.md"]
apiclient = { path = "../apiclient" }
handlebars = "3.0"
http = "0.2"
itertools = "0.9"
itertools = "0.10"
log = "0.4"
models = { path = "../../models" }
schnauzer = { path = "../schnauzer" }
serde_json = "1"
simplelog = "0.8"
simplelog = "0.9"
snafu = "0.6"
tokio = { version = "0.2", default-features = false, features = ["macros", "rt-threaded"] }
# When hyper updates to tokio 0.3:
Expand Down
2 changes: 1 addition & 1 deletion sources/api/thar-be-settings/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ mod error {
#[snafu(visibility = "pub(super)")]
pub(super) enum Error {
#[snafu(display("Logger setup error: {}", source))]
Logger { source: simplelog::TermLogError },
Logger { source: log::SetLoggerError },

#[snafu(display("Failure to read template '{}' from '{}': {}", name, path.display(), source))]
TemplateRegister {
Expand Down
2 changes: 1 addition & 1 deletion sources/api/thar-be-updates/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ serde = { version = "1.0.111", features = [ "derive" ] }
serde_json = "1.0.53"
serde_plain = "0.3.0"
signpost = { path = "../../updater/signpost" }
simplelog = "0.8.0"
simplelog = "0.9"
snafu = "0.6.8"
tempfile = "3.1.0"
tokio = { version = "0.2", default-features = false, features = ["macros", "rt-threaded"] }
Expand Down
2 changes: 1 addition & 1 deletion sources/api/thar-be-updates/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ pub enum Error {
ActivePartition,

#[snafu(display("Logger setup error: {}", source))]
Logger { source: simplelog::TermLogError },
Logger { source: log::SetLoggerError },

#[snafu(display("Unable to create a tokio runtime: {}", source))]
Runtime { source: std::io::Error },
Expand Down
7 changes: 7 additions & 0 deletions sources/clarify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[clarify.actix-macros]
expression = "MIT OR Apache-2.0"
license-files = [
{ path = "LICENSE-APACHE", hash = 0xe11aded0 },
{ path = "LICENSE-MIT", hash = 0x6427cfb9 },
]

[clarify.backtrace-sys]
# backtrace-sys is MIT/Apache-2.0, libbacktrace is BSD-3-Clause
expression = "(MIT OR Apache-2.0) AND BSD-3-Clause"
Expand Down
2 changes: 1 addition & 1 deletion sources/deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ confidence-threshold = 0.93

allow = [
"Apache-2.0",
"BSD-2-Clause",
#"BSD-2-Clause", # OK but currently unused; commenting to prevent warning
"BSD-3-Clause",
"BSL-1.0",
#"CC0-1.0", # OK but currently unused; commenting to prevent warning
Expand Down
2 changes: 1 addition & 1 deletion sources/models/model-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ path = "src/lib.rs"
proc-macro = true

[dependencies]
darling = "0.10"
darling = "0.12"
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0", default-features = false, features = ["full", "parsing", "printing", "proc-macro", "visit-mut"] }
Expand Down
5 changes: 3 additions & 2 deletions sources/updater/updog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,22 @@ bottlerocket-release = { path = "../../bottlerocket-release" }
chrono = "0.4.9"
log = "0.4"
lz4 = "1.23.1"
rand = "0.7.0"
rand = "0.8"
reqwest = { version = "0.10.1", default-features = false, features = ["rustls-tls", "blocking"] }
semver = "0.11.0"
serde = { version = "1.0.100", features = ["derive"] }
serde_json = "1.0.40"
serde_plain = "0.3.0"
signpost = { path = "../signpost" }
simplelog = "0.8"
simplelog = "0.9"
snafu = "0.6.0"
tempfile = "3.1.0"
toml = "0.5.1"
tough = { version = "0.8", features = ["http"] }
update_metadata = { path = "../update_metadata" }
structopt = "0.3"
url = "2.1.0"
# TODO - update signal-hook to the latest version. https://github.com/bottlerocket-os/bottlerocket/issues/1268
signal-hook = "0.1.13"
models = { path = "../../models" }

Expand Down
2 changes: 1 addition & 1 deletion sources/updater/updog/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub(crate) enum Error {
},

#[snafu(display("Logger setup error: {}", source))]
Logger { source: simplelog::TermLogError },
Logger { source: log::SetLoggerError },

#[snafu(display("Could not mark inactive partition for boot: {}", source))]
InactivePartitionUpgrade { source: signpost::Error },
Expand Down
2 changes: 1 addition & 1 deletion sources/webpki-roots-shim/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "webpki-roots"
version = "0.19.0"
version = "0.20.0"
authors = ["iliana destroyer of worlds <[email protected]>"]
license = "Apache-2.0 OR MIT"
edition = "2018"
Expand Down
Loading