From 9e58b3d25557fbfbe5949649b039c67ff09c45ca Mon Sep 17 00:00:00 2001 From: magine Date: Wed, 7 Feb 2024 14:10:19 +0800 Subject: [PATCH] fix: case error in js proto and bump version (#551) * Fix case error in js proto and bump version * Fix skip position --- Cargo.lock | 16 ++++++++-------- Cargo.toml | 2 +- .../core/src/tests/default/test_stabilization.rs | 6 +++--- package.json | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d05bd1d3d..24369de8f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4267,7 +4267,7 @@ dependencies = [ [[package]] name = "rings-core" -version = "0.5.5" +version = "0.5.6" dependencies = [ "arrayref", "async-channel", @@ -4331,7 +4331,7 @@ dependencies = [ [[package]] name = "rings-derive" -version = "0.5.5" +version = "0.5.6" dependencies = [ "proc-macro2", "quote", @@ -4341,7 +4341,7 @@ dependencies = [ [[package]] name = "rings-native-example" -version = "0.5.5" +version = "0.5.6" dependencies = [ "async-trait", "rings-core", @@ -4353,7 +4353,7 @@ dependencies = [ [[package]] name = "rings-node" -version = "0.5.5" +version = "0.5.6" dependencies = [ "anyhow", "arrayref", @@ -4416,7 +4416,7 @@ dependencies = [ [[package]] name = "rings-rpc" -version = "0.5.5" +version = "0.5.6" dependencies = [ "async-trait", "base64 0.13.1", @@ -4436,7 +4436,7 @@ dependencies = [ [[package]] name = "rings-snark" -version = "0.5.5" +version = "0.5.6" dependencies = [ "bellman_ce", "bellpepper-core", @@ -4464,7 +4464,7 @@ dependencies = [ [[package]] name = "rings-snark-example" -version = "0.5.5" +version = "0.5.6" dependencies = [ "async-trait", "rings-core", @@ -4476,7 +4476,7 @@ dependencies = [ [[package]] name = "rings-transport" -version = "0.5.5" +version = "0.5.6" dependencies = [ "async-trait", "bincode", diff --git a/Cargo.toml b/Cargo.toml index 804cc6b3b..f0e1890ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = ["crates/*", "examples/native", "examples/snark"] [workspace.package] -version = "0.5.5" +version = "0.5.6" edition = "2021" license = "GPL-3.0" authors = ["RND "] diff --git a/crates/core/src/tests/default/test_stabilization.rs b/crates/core/src/tests/default/test_stabilization.rs index 64fc35305..a3892b029 100644 --- a/crates/core/src/tests/default/test_stabilization.rs +++ b/crates/core/src/tests/default/test_stabilization.rs @@ -44,9 +44,6 @@ async fn run_node(swarm: Arc) { futures::future::join(message_handler, stabilization).await; } -// this function not work for dummy test -// TODO: need to fix it -#[cfg(not(feature = "dummy"))] #[tokio::test] async fn test_stabilization_once() -> Result<()> { let mut key1 = SecretKey::random(); @@ -129,6 +126,9 @@ async fn test_stabilization() -> Result<()> { Ok(()) } +// this function not work for dummy test +// TODO: need to fix it +#[cfg(not(feature = "dummy"))] #[tokio::test] async fn test_stabilization_final_dht() -> Result<()> { let mut nodes = vec![]; diff --git a/package.json b/package.json index e65d934db..8d3fe4e95 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "RND " ], "description": "Rings is a structured peer-to-peer network implementation using WebRTC, Chord algorithm, and full WebAssembly (WASM) support.\n", - "version": "0.5.5", + "version": "0.5.6", "license": "GPL-3.0", "repository": { "type": "git", @@ -12,7 +12,7 @@ }, "scripts": { "wasm_pack": "wasm-pack build crates/node --release --scope ringsnetwork -t web --no-default-features --features browser --features console_error_panic_hook", - "proto_generate": "mkdir -p dist && pbjs -t static-module -o dist/rings_node_proto.js crates/rpc/src/protos/rings_node.proto && pbts -o dist/rings_node_proto.d.ts dist/rings_node_proto.js", + "proto_generate": "mkdir -p dist && pbjs -t static-module --keep-case -o dist/rings_node_proto.js crates/rpc/src/protos/rings_node.proto && pbts -o dist/rings_node_proto.d.ts dist/rings_node_proto.js", "prepare": "npm run wasm_pack && npm run proto_generate && cp crates/node/pkg/rings_node* ./dist && cp index.ts ./dist && tsc ./dist/index.ts" }, "dependencies": {