diff --git a/Cargo.lock b/Cargo.lock index 10962e41b..b465054fb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -249,121 +249,58 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" -[[package]] -name = "aws-config" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc6b3804dca60326e07205179847f17a4fce45af3a1106939177ad41ac08a6de" -dependencies = [ - "aws-credential-types 0.56.1", - "aws-http 0.56.1", - "aws-sdk-sso 0.30.0", - "aws-sdk-sts 0.30.0", - "aws-smithy-async 0.56.1", - "aws-smithy-client", - "aws-smithy-http 0.56.1", - "aws-smithy-http-tower", - "aws-smithy-json 0.56.1", - "aws-smithy-types 0.56.1", - "aws-types 0.56.1", - "bytes", - "fastrand", - "hex", - "http", - "hyper", - "ring 0.16.20", - "time", - "tokio", - "tower", - "tracing", - "zeroize", -] - [[package]] name = "aws-config" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "80c950a809d39bc9480207cb1cfc879ace88ea7e3a4392a8e9999e45d6e5692e" dependencies = [ - "aws-credential-types 1.0.1", - "aws-http 0.60.0", - "aws-runtime 1.0.1", - "aws-sdk-sso 1.1.0", + "aws-credential-types", + "aws-http", + "aws-runtime", + "aws-sdk-sso", "aws-sdk-ssooidc", - "aws-sdk-sts 1.1.0", - "aws-smithy-async 1.0.1", - "aws-smithy-http 0.60.0", - "aws-smithy-json 0.60.0", - "aws-smithy-runtime 1.0.1", - "aws-smithy-runtime-api 1.0.1", - "aws-smithy-types 1.0.1", - "aws-types 1.0.1", + "aws-sdk-sts", + "aws-smithy-async", + "aws-smithy-http", + "aws-smithy-json", + "aws-smithy-runtime", + "aws-smithy-runtime-api", + "aws-smithy-types", + "aws-types", "bytes", "fastrand", "hex", "http", "hyper", - "ring 0.17.5", + "ring 0.17.6", "time", "tokio", "tracing", "zeroize", ] -[[package]] -name = "aws-credential-types" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70a66ac8ef5fa9cf01c2d999f39d16812e90ec1467bd382cbbb74ba23ea86201" -dependencies = [ - "aws-smithy-async 0.56.1", - "aws-smithy-types 0.56.1", - "fastrand", - "tokio", - "tracing", - "zeroize", -] - [[package]] name = "aws-credential-types" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c1317e1a3514b103cf7d5828bbab3b4d30f56bd22d684f8568bc51b6cfbbb1c" dependencies = [ - "aws-smithy-async 1.0.1", - "aws-smithy-runtime-api 1.0.1", - "aws-smithy-types 1.0.1", + "aws-smithy-async", + "aws-smithy-runtime-api", + "aws-smithy-types", "zeroize", ] -[[package]] -name = "aws-http" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e626370f9ba806ae4c439e49675fd871f5767b093075cdf4fef16cac42ba900" -dependencies = [ - "aws-credential-types 0.56.1", - "aws-smithy-http 0.56.1", - "aws-smithy-types 0.56.1", - "aws-types 0.56.1", - "bytes", - "http", - "http-body", - "lazy_static", - "percent-encoding", - "pin-project-lite", - "tracing", -] - [[package]] name = "aws-http" version = "0.60.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "361c4310fdce94328cc2d1ca0c8a48c13f43009c61d3367585685a50ca8c66b6" dependencies = [ - "aws-smithy-runtime-api 1.0.1", - "aws-smithy-types 1.0.1", - "aws-types 1.0.1", + "aws-smithy-runtime-api", + "aws-smithy-types", + "aws-types", "bytes", "http", "http-body", @@ -371,41 +308,20 @@ dependencies = [ "tracing", ] -[[package]] -name = "aws-runtime" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07ac5cf0ff19c1bca0cea7932e11b239d1025a45696a4f44f72ea86e2b8bdd07" -dependencies = [ - "aws-credential-types 0.56.1", - "aws-http 0.56.1", - "aws-sigv4 0.56.1", - "aws-smithy-async 0.56.1", - "aws-smithy-http 0.56.1", - "aws-smithy-runtime-api 0.56.1", - "aws-smithy-types 0.56.1", - "aws-types 0.56.1", - "fastrand", - "http", - "percent-encoding", - "tracing", - "uuid", -] - [[package]] name = "aws-runtime" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ed7ef604a15fd0d4d9e43701295161ea6b504b63c44990ead352afea2bc15e9" dependencies = [ - "aws-credential-types 1.0.1", - "aws-http 0.60.0", - "aws-sigv4 1.0.1", - "aws-smithy-async 1.0.1", - "aws-smithy-http 0.60.0", - "aws-smithy-runtime-api 1.0.1", - "aws-smithy-types 1.0.1", - "aws-types 1.0.1", + "aws-credential-types", + "aws-http", + "aws-sigv4", + "aws-smithy-async", + "aws-smithy-http", + "aws-smithy-runtime-api", + "aws-smithy-types", + "aws-types", "fastrand", "http", "percent-encoding", @@ -415,117 +331,89 @@ dependencies = [ [[package]] name = "aws-sdk-ec2" -version = "0.33.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85092ae53cec4fb99eed322e2b5b5946818e23e92b36db07cf344a6e77e4b617" -dependencies = [ - "aws-credential-types 0.56.1", - "aws-http 0.56.1", - "aws-runtime 0.56.1", - "aws-smithy-async 0.56.1", - "aws-smithy-client", - "aws-smithy-http 0.56.1", - "aws-smithy-json 0.56.1", - "aws-smithy-query 0.56.1", - "aws-smithy-runtime 0.56.1", - "aws-smithy-runtime-api 0.56.1", - "aws-smithy-types 0.56.1", - "aws-smithy-xml 0.56.1", - "aws-types 0.56.1", +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e3c8f50ef601c7c38da0319262760a7bc15efa25cb805e6a837818bbf77c4f9" +dependencies = [ + "aws-credential-types", + "aws-http", + "aws-runtime", + "aws-smithy-async", + "aws-smithy-http", + "aws-smithy-json", + "aws-smithy-query", + "aws-smithy-runtime", + "aws-smithy-runtime-api", + "aws-smithy-types", + "aws-smithy-xml", + "aws-types", "fastrand", "http", "regex", - "tokio-stream", "tracing", ] [[package]] name = "aws-sdk-iam" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c156518d848e19806efacdd92d84de7e199107c0b17b3a06d8944db5f7982b09" -dependencies = [ - "aws-credential-types 0.56.1", - "aws-http 0.56.1", - "aws-runtime 0.56.1", - "aws-smithy-async 0.56.1", - "aws-smithy-client", - "aws-smithy-http 0.56.1", - "aws-smithy-json 0.56.1", - "aws-smithy-query 0.56.1", - "aws-smithy-runtime 0.56.1", - "aws-smithy-runtime-api 0.56.1", - "aws-smithy-types 0.56.1", - "aws-smithy-xml 0.56.1", - "aws-types 0.56.1", +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33d6b7720b6185d37a756d22400ca6c4ec97fab7bac50f71e9506b30e8e54002" +dependencies = [ + "aws-credential-types", + "aws-http", + "aws-runtime", + "aws-smithy-async", + "aws-smithy-http", + "aws-smithy-json", + "aws-smithy-query", + "aws-smithy-runtime", + "aws-smithy-runtime-api", + "aws-smithy-types", + "aws-smithy-xml", + "aws-types", "http", "regex", - "tokio-stream", "tracing", ] [[package]] name = "aws-sdk-kms" -version = "1.1.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dccfccda9157537a70ec33ed7f29f32dad67d0e901d14fe6f45035b80b769f58" -dependencies = [ - "aws-credential-types 1.0.1", - "aws-http 0.60.0", - "aws-runtime 1.0.1", - "aws-smithy-async 1.0.1", - "aws-smithy-http 0.60.0", - "aws-smithy-json 0.60.0", - "aws-smithy-runtime 1.0.1", - "aws-smithy-runtime-api 1.0.1", - "aws-smithy-types 1.0.1", - "aws-types 1.0.1", - "bytes", - "http", - "regex", - "tracing", -] - -[[package]] -name = "aws-sdk-sso" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "903f888ff190e64f6f5c83fb0f8d54f9c20481f1dc26359bb8896f5d99908949" -dependencies = [ - "aws-credential-types 0.56.1", - "aws-http 0.56.1", - "aws-runtime 0.56.1", - "aws-smithy-async 0.56.1", - "aws-smithy-client", - "aws-smithy-http 0.56.1", - "aws-smithy-json 0.56.1", - "aws-smithy-runtime 0.56.1", - "aws-smithy-runtime-api 0.56.1", - "aws-smithy-types 0.56.1", - "aws-types 0.56.1", +checksum = "e5a1b6e2e95bc32f3b88d00de3b48156fbece5d8112dc76d975b9c2d2837dc8d" +dependencies = [ + "aws-credential-types", + "aws-http", + "aws-runtime", + "aws-smithy-async", + "aws-smithy-http", + "aws-smithy-json", + "aws-smithy-runtime", + "aws-smithy-runtime-api", + "aws-smithy-types", + "aws-types", "bytes", "http", "regex", - "tokio-stream", "tracing", ] [[package]] name = "aws-sdk-sso" -version = "1.1.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76fd8cdd232b7545cdea38aec8b3a57236c006a5aee15380d3f80e0c967511da" -dependencies = [ - "aws-credential-types 1.0.1", - "aws-http 0.60.0", - "aws-runtime 1.0.1", - "aws-smithy-async 1.0.1", - "aws-smithy-http 0.60.0", - "aws-smithy-json 0.60.0", - "aws-smithy-runtime 1.0.1", - "aws-smithy-runtime-api 1.0.1", - "aws-smithy-types 1.0.1", - "aws-types 1.0.1", +checksum = "0619ab97a5ca8982e7de073cdc66f93e5f6a1b05afc09e696bec1cb3607cd4df" +dependencies = [ + "aws-credential-types", + "aws-http", + "aws-runtime", + "aws-smithy-async", + "aws-smithy-http", + "aws-smithy-json", + "aws-smithy-runtime", + "aws-smithy-runtime-api", + "aws-smithy-types", + "aws-types", "bytes", "http", "regex", @@ -534,20 +422,20 @@ dependencies = [ [[package]] name = "aws-sdk-ssooidc" -version = "1.1.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e506b514aba8f58804c5678c6f3507d0f74bc7ec746ff2752acd7cd2839bdb4b" -dependencies = [ - "aws-credential-types 1.0.1", - "aws-http 0.60.0", - "aws-runtime 1.0.1", - "aws-smithy-async 1.0.1", - "aws-smithy-http 0.60.0", - "aws-smithy-json 0.60.0", - "aws-smithy-runtime 1.0.1", - "aws-smithy-runtime-api 1.0.1", - "aws-smithy-types 1.0.1", - "aws-types 1.0.1", +checksum = "f04b9f5474cc0f35d829510b2ec8c21e352309b46bf9633c5a81fb9321e9b1c7" +dependencies = [ + "aws-credential-types", + "aws-http", + "aws-runtime", + "aws-smithy-async", + "aws-smithy-http", + "aws-smithy-json", + "aws-smithy-runtime", + "aws-smithy-runtime-api", + "aws-smithy-types", + "aws-types", "bytes", "http", "regex", @@ -556,67 +444,24 @@ dependencies = [ [[package]] name = "aws-sdk-sts" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47ad6bf01afc00423d781d464220bf69fb6a674ad6629cbbcb06d88cdc2be82" -dependencies = [ - "aws-credential-types 0.56.1", - "aws-http 0.56.1", - "aws-runtime 0.56.1", - "aws-smithy-async 0.56.1", - "aws-smithy-client", - "aws-smithy-http 0.56.1", - "aws-smithy-json 0.56.1", - "aws-smithy-query 0.56.1", - "aws-smithy-runtime 0.56.1", - "aws-smithy-runtime-api 0.56.1", - "aws-smithy-types 0.56.1", - "aws-smithy-xml 0.56.1", - "aws-types 0.56.1", - "http", - "regex", - "tracing", -] - -[[package]] -name = "aws-sdk-sts" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71ee97976777dab4ad4ef07982a0a94a719dd0f65a0bab1b59d5447d11e17ab4" -dependencies = [ - "aws-credential-types 1.0.1", - "aws-http 0.60.0", - "aws-runtime 1.0.1", - "aws-smithy-async 1.0.1", - "aws-smithy-http 0.60.0", - "aws-smithy-json 0.60.0", - "aws-smithy-query 0.60.0", - "aws-smithy-runtime 1.0.1", - "aws-smithy-runtime-api 1.0.1", - "aws-smithy-types 1.0.1", - "aws-smithy-xml 0.60.0", - "aws-types 1.0.1", - "http", - "regex", - "tracing", -] - -[[package]] -name = "aws-sigv4" -version = "0.56.1" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7b28f4910bb956b7ab320b62e98096402354eca976c587d1eeccd523d9bac03" -dependencies = [ - "aws-smithy-http 0.56.1", - "form_urlencoded", - "hex", - "hmac", +checksum = "798c8d82203af9e15a8b406574e0b36da91dd6db533028b74676489a1bc8bc7d" +dependencies = [ + "aws-credential-types", + "aws-http", + "aws-runtime", + "aws-smithy-async", + "aws-smithy-http", + "aws-smithy-json", + "aws-smithy-query", + "aws-smithy-runtime", + "aws-smithy-runtime-api", + "aws-smithy-types", + "aws-smithy-xml", + "aws-types", "http", - "once_cell", - "percent-encoding", "regex", - "sha2", - "time", "tracing", ] @@ -626,10 +471,10 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "380adcc8134ad8bbdfeb2ace7626a869914ee266322965276cbc54066186d236" dependencies = [ - "aws-credential-types 1.0.1", - "aws-smithy-http 0.60.0", - "aws-smithy-runtime-api 1.0.1", - "aws-smithy-types 1.0.1", + "aws-credential-types", + "aws-smithy-http", + "aws-smithy-runtime-api", + "aws-smithy-types", "bytes", "form_urlencoded", "hex", @@ -645,81 +490,23 @@ dependencies = [ [[package]] name = "aws-smithy-async" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cdb73f85528b9d19c23a496034ac53703955a59323d581c06aa27b4e4e247af" -dependencies = [ - "futures-util", - "pin-project-lite", - "tokio", - "tokio-stream", -] - -[[package]] -name = "aws-smithy-async" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fbfa248f7f966d73e325dbc85851a5500042b6d96e3c3b535a8527707f36fe4" +checksum = "3e37ca17d25fe1e210b6d4bdf59b81caebfe99f986201a1228cb5061233b4b13" dependencies = [ "futures-util", "pin-project-lite", "tokio", ] -[[package]] -name = "aws-smithy-client" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c27b2756264c82f830a91cb4d2d485b2d19ad5bea476d9a966e03d27f27ba59a" -dependencies = [ - "aws-smithy-async 0.56.1", - "aws-smithy-http 0.56.1", - "aws-smithy-http-tower", - "aws-smithy-types 0.56.1", - "bytes", - "fastrand", - "http", - "http-body", - "hyper", - "hyper-rustls", - "lazy_static", - "pin-project-lite", - "rustls", - "tokio", - "tower", - "tracing", -] - -[[package]] -name = "aws-smithy-http" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54cdcf365d8eee60686885f750a34c190e513677db58bbc466c44c588abf4199" -dependencies = [ - "aws-smithy-types 0.56.1", - "bytes", - "bytes-utils", - "futures-core", - "http", - "http-body", - "hyper", - "once_cell", - "percent-encoding", - "pin-project-lite", - "pin-utils", - "tokio", - "tokio-util", - "tracing", -] - [[package]] name = "aws-smithy-http" version = "0.60.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b1de8aee22f67de467b2e3d0dd0fb30859dc53f579a63bd5381766b987db644" dependencies = [ - "aws-smithy-runtime-api 1.0.1", - "aws-smithy-types 1.0.1", + "aws-smithy-runtime-api", + "aws-smithy-types", "bytes", "bytes-utils", "futures-core", @@ -732,48 +519,13 @@ dependencies = [ "tracing", ] -[[package]] -name = "aws-smithy-http-tower" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "822de399d0ce62829a69dfa8c5cd08efdbe61a7426b953e2268f8b8b52a607bd" -dependencies = [ - "aws-smithy-http 0.56.1", - "aws-smithy-types 0.56.1", - "bytes", - "http", - "http-body", - "pin-project-lite", - "tower", - "tracing", -] - -[[package]] -name = "aws-smithy-json" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb1e7ab8fa7ad10c193af7ae56d2420989e9f4758bf03601a342573333ea34f" -dependencies = [ - "aws-smithy-types 0.56.1", -] - [[package]] name = "aws-smithy-json" version = "0.60.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a46dd338dc9576d6a6a5b5a19bd678dcad018ececee11cf28ecd7588bd1a55c" dependencies = [ - "aws-smithy-types 1.0.1", -] - -[[package]] -name = "aws-smithy-query" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28556a3902091c1f768a34f6c998028921bdab8d47d92586f363f14a4a32d047" -dependencies = [ - "aws-smithy-types 0.56.1", - "urlencoding", + "aws-smithy-types", ] [[package]] @@ -782,44 +534,23 @@ version = "0.60.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "feb5b8c7a86d4b6399169670723b7e6f21a39fc833a30f5c5a2f997608178129" dependencies = [ - "aws-smithy-types 1.0.1", + "aws-smithy-types", "urlencoding", ] [[package]] name = "aws-smithy-runtime" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "745e096b3553e7e0f40622aa04971ce52765af82bebdeeac53aa6fc82fe801e6" -dependencies = [ - "aws-smithy-async 0.56.1", - "aws-smithy-client", - "aws-smithy-http 0.56.1", - "aws-smithy-runtime-api 0.56.1", - "aws-smithy-types 0.56.1", - "bytes", - "fastrand", - "http", - "http-body", - "once_cell", - "pin-project-lite", - "pin-utils", - "tokio", - "tracing", -] - -[[package]] -name = "aws-smithy-runtime" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "064b808143d80b50744b1b22cce801238a545b84859c6cf8e275997252dd1d25" +checksum = "273479291efc55e7b0bce985b139d86b6031adb8e50f65c1f712f20ba38f6388" dependencies = [ - "aws-smithy-async 1.0.1", - "aws-smithy-http 0.60.0", - "aws-smithy-runtime-api 1.0.1", - "aws-smithy-types 1.0.1", + "aws-smithy-async", + "aws-smithy-http", + "aws-smithy-runtime-api", + "aws-smithy-types", "bytes", "fastrand", + "h2", "http", "http-body", "hyper", @@ -834,27 +565,12 @@ dependencies = [ [[package]] name = "aws-smithy-runtime-api" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93d0ae0c9cfd57944e9711ea610b48a963fb174a53aabacc08c5794a594b1d02" -dependencies = [ - "aws-smithy-async 0.56.1", - "aws-smithy-http 0.56.1", - "aws-smithy-types 0.56.1", - "bytes", - "http", - "tokio", - "tracing", -] - -[[package]] -name = "aws-smithy-runtime-api" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d27c3235d4972ed976b5c1a82286e7c4457f618f3c2ae6d4ae44f081dd24575" +checksum = "c6cebff0d977b6b6feed2fd07db52aac58ba3ccaf26cdd49f1af4add5061bef9" dependencies = [ - "aws-smithy-async 1.0.1", - "aws-smithy-types 1.0.1", + "aws-smithy-async", + "aws-smithy-types", "bytes", "http", "pin-project-lite", @@ -865,23 +581,9 @@ dependencies = [ [[package]] name = "aws-smithy-types" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d90dbc8da2f6be461fa3c1906b20af8f79d14968fe47f2b7d29d086f62a51728" -dependencies = [ - "base64-simd", - "itoa", - "num-integer", - "ryu", - "serde", - "time", -] - -[[package]] -name = "aws-smithy-types" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fc32035dc0636a8583cf0c6dd7f1e6d5404103b836d26228b8730907a88d9f" +checksum = "d7f48b3f27ddb40ab19892a5abda331f403e3cb877965e4e51171447807104af" dependencies = [ "base64-simd", "bytes", @@ -900,15 +602,6 @@ dependencies = [ "tokio-util", ] -[[package]] -name = "aws-smithy-xml" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e01d2dedcdd8023043716cfeeb3c6c59f2d447fce365d8e194838891794b23b6" -dependencies = [ - "xmlparser", -] - [[package]] name = "aws-smithy-xml" version = "0.60.0" @@ -920,13 +613,13 @@ dependencies = [ [[package]] name = "aws-throwaway" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23fb86ed7fe1e3beb88436bf15fb9abf772eb673cc669ab37bc3d3481484943f" +checksum = "16ad72c0aeec3582aade25e6364283aff13fb2feacb1294bb0b41dc5bb5315d4" dependencies = [ "anyhow", "async-trait", - "aws-config 0.56.1", + "aws-config", "aws-sdk-ec2", "aws-sdk-iam", "base64", @@ -938,32 +631,16 @@ dependencies = [ "uuid", ] -[[package]] -name = "aws-types" -version = "0.56.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85aa0451bf8af1bf22a4f028d5d28054507a14be43cb8ac0597a8471fba9edfe" -dependencies = [ - "aws-credential-types 0.56.1", - "aws-smithy-async 0.56.1", - "aws-smithy-client", - "aws-smithy-http 0.56.1", - "aws-smithy-types 0.56.1", - "http", - "rustc_version", - "tracing", -] - [[package]] name = "aws-types" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8403fc56b1f3761e8efe45771ddc1165e47ec3417c68e68a4519b5cb030159ca" dependencies = [ - "aws-credential-types 1.0.1", - "aws-smithy-async 1.0.1", - "aws-smithy-runtime-api 1.0.1", - "aws-smithy-types 1.0.1", + "aws-credential-types", + "aws-smithy-async", + "aws-smithy-runtime-api", + "aws-smithy-types", "http", "rustc_version", "tracing", @@ -1407,9 +1084,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.4.8" +version = "4.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2275f18819641850fa26c89acc84d465c1bf91ce57bc2748b28c420473352f64" +checksum = "41fffed7514f420abec6d183b1d3acfd9099c79c3a10a06ade4f8203f1411272" dependencies = [ "clap_builder", "clap_derive", @@ -1417,9 +1094,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.4.8" +version = "4.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07cdf1b148b25c1e1f7a42225e30a0d99a615cd4637eae7365548dd4529b95bc" +checksum = "63361bae7eef3771745f02d8d892bec2fee5f6e34af316ba556e7f97a7069ff1" dependencies = [ "anstream", "anstyle", @@ -2018,11 +1695,12 @@ dependencies = [ [[package]] name = "docker-compose-runner" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9b25dd136b29813ea84b16d2ff9c48fdd727a6a6f3fcf736523bb5d946c41e7" +checksum = "3b036571bf708c18acbc0adc4928af31ec3a194003681d9475111469b68d5f63" dependencies = [ "anyhow", + "redis", "regex", "serde_yaml", "subprocess", @@ -2151,12 +1829,12 @@ dependencies = [ [[package]] name = "errno" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f258a7194e7f7c2a7837a8913aeab7fd8c383457034fa20ce4dd3dcb813e8eb8" +checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" dependencies = [ "libc", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -2843,9 +2521,9 @@ checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "js-sys" -version = "0.3.65" +version = "0.3.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54c0c35952f67de54bb584e9fd912b3023117cbafc0a77d8f3dee1fb5f572fe8" +checksum = "cee9c64da59eae3b50095c18d3e74f8b73c0b86d2792824ff01bbce68ba229ca" dependencies = [ "wasm-bindgen", ] @@ -3585,26 +3263,6 @@ version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" -[[package]] -name = "pin-project" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422" -dependencies = [ - "pin-project-internal", -] - -[[package]] -name = "pin-project-internal" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.39", -] - [[package]] name = "pin-project-lite" version = "0.2.13" @@ -4144,9 +3802,9 @@ dependencies = [ [[package]] name = "ring" -version = "0.17.5" +version = "0.17.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb0205304757e5d899b9c2e448b867ffd03ae7f988002e47cd24954391394d0b" +checksum = "684d5e6e18f669ccebf64a92236bb7db9a34f07be010e3627368182027180866" dependencies = [ "cc", "getrandom 0.2.11", @@ -4158,9 +3816,9 @@ dependencies = [ [[package]] name = "rsa" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a3211b01eea83d80687da9eef70e39d65144a3894866a5153a2723e425a157f" +checksum = "af6c4b23d99685a1408194da11270ef8e9809aff951cc70ec9b17350b087e474" dependencies = [ "const-oid", "digest", @@ -4334,7 +3992,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "629648aced5775d558af50b2b4c7b02983a04b312126d45eeead26e7caa498b9" dependencies = [ "log", - "ring 0.17.5", + "ring 0.17.6", "rustls-webpki", "sct", ] @@ -4366,7 +4024,7 @@ version = "0.101.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" dependencies = [ - "ring 0.17.5", + "ring 0.17.6", "untrusted 0.9.0", ] @@ -4435,7 +4093,7 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" dependencies = [ - "ring 0.17.5", + "ring 0.17.6", "untrusted 0.9.0", ] @@ -4677,9 +4335,9 @@ dependencies = [ [[package]] name = "shell-quote" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa19afd2451f16c915aa675202c353b5cbc829e9292e9c38cd3b81a55c8e41b2" +checksum = "a09e78d1f98bc5db3fa689ae39f90c0b9af72fe83b0bb4a13b9636edad92fcbd" [[package]] name = "shellfish" @@ -4704,7 +4362,7 @@ dependencies = [ "async-trait", "atoi", "atomic_enum", - "aws-config 1.0.1", + "aws-config", "aws-sdk-kms", "backtrace", "backtrace-ext", @@ -4897,9 +4555,9 @@ checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] name = "spki" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d1e996ef02c474957d681f1b05213dfb0abab947b446a62d37770b23500184a" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" dependencies = [ "base64ct", "der", @@ -5367,28 +5025,6 @@ dependencies = [ "winnow", ] -[[package]] -name = "tower" -version = "0.4.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" -dependencies = [ - "futures-core", - "futures-util", - "pin-project", - "pin-project-lite", - "tokio", - "tower-layer", - "tower-service", - "tracing", -] - -[[package]] -name = "tower-layer" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" - [[package]] name = "tower-service" version = "0.3.2" @@ -5401,7 +5037,6 @@ version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ - "log", "pin-project-lite", "tracing-attributes", "tracing-core", @@ -5756,9 +5391,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.88" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7daec296f25a1bae309c0cd5c29c4b260e510e6d813c286b19eaadf409d40fce" +checksum = "0ed0d4f68a3015cc185aff4db9506a015f4b96f95303897bfa23f846db54064e" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -5766,9 +5401,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.88" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e397f4664c0e4e428e8313a469aaa58310d302159845980fd23b0f22a847f217" +checksum = "1b56f625e64f3a1084ded111c4d5f477df9f8c92df113852fa5a374dbda78826" dependencies = [ "bumpalo", "log", @@ -5781,9 +5416,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.38" +version = "0.4.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9afec9963e3d0994cac82455b2b3502b81a7f40f9a0d32181f7528d9f4b43e02" +checksum = "ac36a15a220124ac510204aec1c3e5db8a22ab06fd6706d881dc6149f8ed9a12" dependencies = [ "cfg-if", "js-sys", @@ -5793,9 +5428,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.88" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5961017b3b08ad5f3fe39f1e79877f8ee7c23c5e5fd5eb80de95abc41f1f16b2" +checksum = "0162dbf37223cd2afce98f3d0785506dcb8d266223983e4b5b525859e6e182b2" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -5803,9 +5438,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.88" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5353b8dab669f5e10f5bd76df26a9360c748f054f862ff5f3f8aae0c7fb3907" +checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283" dependencies = [ "proc-macro2", "quote", @@ -5816,15 +5451,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.88" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d046c5d029ba91a1ed14da14dca44b68bf2f124cfbaf741c54151fdb3e0750b" +checksum = "7ab9b36309365056cd639da3134bf87fa8f3d86008abf99e612384a6eecd459f" [[package]] name = "web-sys" -version = "0.3.65" +version = "0.3.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5db499c5f66323272151db0e666cd34f78617522fb0c1604d31a27c50c206a85" +checksum = "50c24a44ec86bb68fbecd1b3efed7e85ea5621b39b35ef2766b66cd984f8010f" dependencies = [ "js-sys", "wasm-bindgen", @@ -5888,6 +5523,15 @@ dependencies = [ "windows-targets 0.48.5", ] +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.0", +] + [[package]] name = "windows-targets" version = "0.42.2" @@ -5918,6 +5562,21 @@ dependencies = [ "windows_x86_64_msvc 0.48.5", ] +[[package]] +name = "windows-targets" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd" +dependencies = [ + "windows_aarch64_gnullvm 0.52.0", + "windows_aarch64_msvc 0.52.0", + "windows_i686_gnu 0.52.0", + "windows_i686_msvc 0.52.0", + "windows_x86_64_gnu 0.52.0", + "windows_x86_64_gnullvm 0.52.0", + "windows_x86_64_msvc 0.52.0", +] + [[package]] name = "windows_aarch64_gnullvm" version = "0.42.2" @@ -5930,6 +5589,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea" + [[package]] name = "windows_aarch64_msvc" version = "0.42.2" @@ -5942,6 +5607,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef" + [[package]] name = "windows_i686_gnu" version = "0.42.2" @@ -5954,6 +5625,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" +[[package]] +name = "windows_i686_gnu" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313" + [[package]] name = "windows_i686_msvc" version = "0.42.2" @@ -5966,6 +5643,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" +[[package]] +name = "windows_i686_msvc" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a" + [[package]] name = "windows_x86_64_gnu" version = "0.42.2" @@ -5978,6 +5661,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd" + [[package]] name = "windows_x86_64_gnullvm" version = "0.42.2" @@ -5990,6 +5679,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e" + [[package]] name = "windows_x86_64_msvc" version = "0.42.2" @@ -6002,6 +5697,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" + [[package]] name = "windsock" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index 42624f302..57ca3563d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,11 +12,11 @@ resolver = "2" # https://deterministic.space/high-performance-rust.html [profile.release] -lto = "fat" +#lto = "fat" codegen-units = 1 [profile.bench] -lto = "fat" +#lto = "fat" codegen-units = 1 # used for e.g. generating flamegraphs @@ -61,8 +61,8 @@ rand_distr = "0.4.1" clap = { version = "4.0.4", features = ["cargo", "derive"] } async-trait = "0.1.30" typetag = "0.2.5" -aws-throwaway = "0.4.0" +aws-throwaway = "0.5.0" tokio-bin-process = "0.4.0" ordered-float = { version = "4.0.0", features = ["serde"] } hyper = { version = "0.14.14", features = ["server"] } -shell-quote = "0.4.0" +shell-quote = { default-features = false, version = "0.5.0" } diff --git a/ec2-cargo/src/main.rs b/ec2-cargo/src/main.rs index fd73909bc..f937bb5e1 100644 --- a/ec2-cargo/src/main.rs +++ b/ec2-cargo/src/main.rs @@ -74,12 +74,6 @@ sudo /bin/docker1 "$@" ' | sudo dd of=/bin/docker sudo chmod +x /bin/docker -# hack to work around docker-compose command not being present on this machine -echo '#!/bin/bash -docker compose "$@" -' | sudo dd of=/bin/docker-compose -sudo chmod +x /bin/docker-compose - echo "export RUST_BACKTRACE=1" >> .profile echo "export CARGO_TERM_COLOR=always" >> .profile echo 'source "$HOME/.cargo/env"' >> .profile diff --git a/shotover-proxy/benches/windsock/aws/mod.rs b/shotover-proxy/benches/windsock/aws/mod.rs index bfb99d70f..b7fb256f1 100644 --- a/shotover-proxy/benches/windsock/aws/mod.rs +++ b/shotover-proxy/benches/windsock/aws/mod.rs @@ -12,7 +12,7 @@ use std::{ path::{Path, PathBuf}, sync::Arc, }; -use test_helpers::docker_compose::get_image_waiters; +use test_helpers::docker_compose::IMAGE_WAITERS; use tokio::sync::RwLock; use tokio_bin_process::bin_path; use tokio_bin_process::event::{Event, Level}; @@ -218,7 +218,7 @@ sudo docker system prune -af"#, .ssh() .shell_stdout_lines(&format!("sudo docker logs -f {container_id} 2>&1")) .await; - let image_waiter = get_image_waiters() + let image_waiter = IMAGE_WAITERS .iter() .find(|x| x.name == image) .unwrap_or_else(|| { diff --git a/test-helpers/Cargo.toml b/test-helpers/Cargo.toml index 0a5876ceb..10566566f 100644 --- a/test-helpers/Cargo.toml +++ b/test-helpers/Cargo.toml @@ -32,5 +32,5 @@ tracing-subscriber.workspace = true serde_yaml.workspace = true anyhow.workspace = true rcgen.workspace = true -docker-compose-runner = "0.2.0" rdkafka = { version = "0.36", features = ["cmake-build"], optional = true } +docker-compose-runner = "0.3.0" diff --git a/test-helpers/src/docker_compose.rs b/test-helpers/src/docker_compose.rs index baf43bffa..c15291c30 100644 --- a/test-helpers/src/docker_compose.rs +++ b/test-helpers/src/docker_compose.rs @@ -1,5 +1,5 @@ use docker_compose_runner::*; -use std::env; +use std::{env, time::Duration}; use tracing_subscriber::fmt::TestWriter; pub use docker_compose_runner::DockerCompose; @@ -14,7 +14,7 @@ fn setup_tracing_subscriber_for_test_logic() { pub fn docker_compose(file_path: &str) -> DockerCompose { setup_tracing_subscriber_for_test_logic(); - DockerCompose::new(get_image_waiters(), |_| {}, file_path) + DockerCompose::new(&IMAGE_WAITERS, |_| {}, file_path) } /// Creates a new DockerCompose running an instance of moto the AWS mocking server @@ -27,59 +27,57 @@ pub fn new_moto() -> DockerCompose { docker_compose("tests/transforms/docker-compose-moto.yaml") } -pub fn get_image_waiters() -> &'static [Image] { - &[ - Image { - name: "motoserver/moto", - log_regex_to_wait_for: r"Press CTRL\+C to quit", - timeout: 120, - }, - Image { - name: "library/redis:5.0.9", - log_regex_to_wait_for: r"Ready to accept connections", - timeout: 120, - }, - Image { - name: "library/redis:6.2.5", - log_regex_to_wait_for: r"Ready to accept connections", - timeout: 120, - }, - Image { - name: "bitnami/redis:6.2.13-debian-11-r73", - log_regex_to_wait_for: r"Ready to accept connections", - timeout: 120, - }, - Image { - name: "bitnami/redis-cluster:6.2.12-debian-11-r26", - //`Cluster state changed` is created by the node services - //`Cluster correctly created` is created by the init service - log_regex_to_wait_for: r"Cluster state changed|Cluster correctly created", - timeout: 120, - }, - Image { - name: "bitnami/cassandra:4.0.6", - log_regex_to_wait_for: r"Startup complete", - timeout: 120, - }, - Image { - name: "shotover/cassandra-test:4.0.6-r1", - log_regex_to_wait_for: r"Startup complete", - timeout: 120, - }, - Image { - name: "shotover/cassandra-test:3.11.13-r1", - log_regex_to_wait_for: r"Startup complete", - timeout: 120, - }, - Image { - name: "bitnami/kafka:3.4.0-debian-11-r22", - log_regex_to_wait_for: r"Kafka Server started", - timeout: 120, - }, - Image { - name: "opensearchproject/opensearch:2.9.0", - log_regex_to_wait_for: r"Node started", - timeout: 120, - }, - ] -} +pub static IMAGE_WAITERS: [Image; 10] = [ + Image { + name: "motoserver/moto", + log_regex_to_wait_for: r"Press CTRL\+C to quit", + timeout: Duration::from_secs(120), + }, + Image { + name: "library/redis:5.0.9", + log_regex_to_wait_for: r"Ready to accept connections", + timeout: Duration::from_secs(120), + }, + Image { + name: "library/redis:6.2.5", + log_regex_to_wait_for: r"Ready to accept connections", + timeout: Duration::from_secs(120), + }, + Image { + name: "bitnami/redis:6.2.13-debian-11-r73", + log_regex_to_wait_for: r"Ready to accept connections", + timeout: Duration::from_secs(120), + }, + Image { + name: "bitnami/redis-cluster:6.2.12-debian-11-r26", + //`Cluster state changed` is created by the node services + //`Cluster correctly created` is created by the init service + log_regex_to_wait_for: r"Cluster state changed|Cluster correctly created", + timeout: Duration::from_secs(120), + }, + Image { + name: "bitnami/cassandra:4.0.6", + log_regex_to_wait_for: r"Startup complete", + timeout: Duration::from_secs(120), + }, + Image { + name: "shotover/cassandra-test:4.0.6-r1", + log_regex_to_wait_for: r"Startup complete", + timeout: Duration::from_secs(120), + }, + Image { + name: "shotover/cassandra-test:3.11.13-r1", + log_regex_to_wait_for: r"Startup complete", + timeout: Duration::from_secs(120), + }, + Image { + name: "bitnami/kafka:3.4.0-debian-11-r22", + log_regex_to_wait_for: r"Kafka Server started", + timeout: Duration::from_secs(120), + }, + Image { + name: "opensearchproject/opensearch:2.9.0", + log_regex_to_wait_for: r"Node started", + timeout: Duration::from_secs(120), + }, +]; diff --git a/windsock/Cargo.toml b/windsock/Cargo.toml index df22a391d..7686c1f2b 100644 --- a/windsock/Cargo.toml +++ b/windsock/Cargo.toml @@ -20,4 +20,4 @@ tokio.workspace = true [dev-dependencies] scylla = { version = "0.10.0", features = ["ssl"] } -docker-compose-runner = "0.2.0" +docker-compose-runner = "0.3.0" diff --git a/windsock/examples/cassandra.rs b/windsock/examples/cassandra.rs index a9f751fde..c6a8aa59d 100644 --- a/windsock/examples/cassandra.rs +++ b/windsock/examples/cassandra.rs @@ -138,16 +138,14 @@ impl BenchTask for BenchTaskCassandra { } fn docker_compose(file_path: &str) -> DockerCompose { - DockerCompose::new(get_image_waiters(), |_| {}, file_path) + DockerCompose::new(&IMAGE_WAITERS, |_| {}, file_path) } -fn get_image_waiters() -> &'static [Image] { - &[Image { - name: "bitnami/cassandra:4.0.6", - log_regex_to_wait_for: r"Startup complete", - timeout: 120, - }] -} +static IMAGE_WAITERS: [Image; 1] = [Image { + name: "bitnami/cassandra:4.0.6", + log_regex_to_wait_for: r"Startup complete", + timeout: Duration::from_secs(120), +}]; fn set_working_dir() { // tests and benches will set the directory to the directory of the crate, we are acting as a benchmark so we do the same