Skip to content

Commit a1f2733

Browse files
committed
update dependencies, bump to 0.7.0
Signed-off-by: stevelr <steve@cosmonic.com>
1 parent 1536328 commit a1f2733

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

wasmcloud-test-util/Cargo.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasmcloud-test-util"
3-
version = "0.6.5"
3+
version = "0.7.0"
44
edition = "2021"
55
authors = [ "wasmcloud Team" ]
66
license = "Apache-2.0"
@@ -10,21 +10,20 @@ repository = "https://github.com/wasmcloud/wasmcloud-test"
1010
readme = "README.md"
1111

1212
[dependencies]
13-
smithy-bindgen = { git="https://github.com/wasmcloud/weld", branch="feat/smithy-bindgen" }
14-
wasmbus-rpc = { git="https://github.com/wasmcloud/weld", rev="4faec462d1dd41efbfe95c9e2d2061a9a40f2fcc", features = [ "otel" ] }
13+
smithy-bindgen = "0.1.0"
14+
wasmbus-rpc = { version = "0.12", features = [ "otel" ] }
1515
serde_bytes = "0.11"
1616
regex = "1"
1717

1818
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
1919
anyhow = "1.0"
2020
async-trait = "0.1"
21-
async-nats = "0.23.0"
2221
futures = "0.3"
23-
base64 = "0.13"
22+
base64 = "0.21"
2423
log = "0.4"
2524
nkeys = "0.2.0"
2625
serde = { version = "1.0", features=["derive"]}
2726
serde_json = "1.0"
2827
termcolor = "1.1"
2928
tokio = { version = "1", features = ["full"]}
30-
toml = "0.5"
29+
toml = "0.7"

wasmcloud-test-util/src/provider_test.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use crate::testing::TestResult;
66
use anyhow::anyhow;
77
use async_trait::async_trait;
8+
use base64::{engine::general_purpose::STANDARD_NO_PAD, engine::Engine};
89
use futures::future::BoxFuture;
910
use nkeys::{KeyPair, KeyPairType};
1011
use serde::Serialize;
@@ -20,6 +21,7 @@ use std::{
2021
use tokio::sync::OnceCell;
2122
use toml::value::Value as TomlValue;
2223
use wasmbus_rpc::{
24+
async_nats,
2325
common::{Context, Message, SendOpts, Transport},
2426
core::{HealthCheckRequest, HealthCheckResponse, HostData, LinkDefinition, WasmCloudEntity},
2527
error::{RpcError, RpcResult},
@@ -59,7 +61,7 @@ fn to_value_map(data: &toml::map::Map<String, TomlValue>) -> RpcResult<SimpleVal
5961
// copy the entire map as base64-encoded json with value "config_b64"
6062
let json = serde_json::to_string(data)
6163
.map_err(|e| RpcError::Ser(format!("invalid 'values' map: {}", e)))?;
62-
let b64 = base64::encode_config(json, base64::STANDARD_NO_PAD);
64+
let b64 = STANDARD_NO_PAD.encode(json);
6365
map.insert("config_b64".to_string(), b64);
6466
Ok(map)
6567
}
@@ -352,7 +354,7 @@ pub async fn start_provider_test(
352354
host_data.structured_logging = false;
353355

354356
let buf = serde_json::to_vec(&host_data).map_err(|e| RpcError::Ser(e.to_string()))?;
355-
let mut encoded = base64::encode_config(&buf, base64::STANDARD_NO_PAD);
357+
let mut encoded = STANDARD_NO_PAD.encode(&buf);
356358
encoded.push_str("\r\n");
357359

358360
// provider's stdout is piped through our stdout

0 commit comments

Comments
 (0)