nextgraph preview.6

pull/19/head v0.1.0-preview.6
Niko PLP 4 months ago
parent 035fe0ad7f
commit c078be8924
  1. 4
      nextgraph/Cargo.toml
  2. 10
      nextgraph/src/local_broker.rs

@ -2,7 +2,7 @@
name = "nextgraph" name = "nextgraph"
description = "NextGraph client library. Nextgraph is a decentralized, secure and local-first web 3.0 ecosystem based on Semantic Web and CRDTs" description = "NextGraph client library. Nextgraph is a decentralized, secure and local-first web 3.0 ecosystem based on Semantic Web and CRDTs"
categories = ["asynchronous","text-editors","web-programming","development-tools","database-implementations"] categories = ["asynchronous","text-editors","web-programming","development-tools","database-implementations"]
version = "0.1.0-preview.5" version = "0.1.0-preview.6"
edition.workspace = true edition.workspace = true
license.workspace = true license.workspace = true
authors.workspace = true authors.workspace = true
@ -32,7 +32,7 @@ ng-wallet = { path = "../ng-wallet", version = "0.1.0-preview.5" }
ng-client-ws = { path = "../ng-client-ws", version = "0.1.0-preview.1" } ng-client-ws = { path = "../ng-client-ws", version = "0.1.0-preview.1" }
ng-verifier = { path = "../ng-verifier", version = "0.1.0-preview.5" } ng-verifier = { path = "../ng-verifier", version = "0.1.0-preview.5" }
[target.'cfg(all(not(target_arch = "wasm32")))'.dependencies] [target.'cfg(all(not(target_family = "wasm"),not(docsrs)))'.dependencies]
ng-storage-rocksdb = { path = "../ng-storage-rocksdb", version = "0.1.0-preview.6" } ng-storage-rocksdb = { path = "../ng-storage-rocksdb", version = "0.1.0-preview.6" }
[[example]] [[example]]

@ -42,11 +42,11 @@ use ng_verifier::verifier::Verifier;
use ng_wallet::emojis::encode_pazzle; use ng_wallet::emojis::encode_pazzle;
use ng_wallet::{create_wallet_first_step_v0, create_wallet_second_step_v0, types::*}; use ng_wallet::{create_wallet_first_step_v0, create_wallet_second_step_v0, types::*};
#[cfg(not(target_arch = "wasm32"))] #[cfg(not(target_family = "wasm"))]
use ng_client_ws::remote_ws::ConnectionWebSocket; use ng_client_ws::remote_ws::ConnectionWebSocket;
#[cfg(target_arch = "wasm32")] #[cfg(target_family = "wasm")]
use ng_client_ws::remote_ws_wasm::ConnectionWebSocket; use ng_client_ws::remote_ws_wasm::ConnectionWebSocket;
#[cfg(not(any(target_family = "wasm")))] #[cfg(not(any(target_family = "wasm",docsrs)))]
use ng_storage_rocksdb::block_storage::RocksDbBlockStorage; use ng_storage_rocksdb::block_storage::RocksDbBlockStorage;
#[doc(hidden)] #[doc(hidden)]
@ -911,7 +911,7 @@ impl LocalBroker {
Arc::new(std::sync::RwLock::new(HashMapBlockStorage::new())) Arc::new(std::sync::RwLock::new(HashMapBlockStorage::new()))
as Arc<std::sync::RwLock<dyn BlockStorage + Send + Sync + 'static>> as Arc<std::sync::RwLock<dyn BlockStorage + Send + Sync + 'static>>
} else { } else {
#[cfg(all(not(target_family = "wasm")))] #[cfg(all(not(target_family = "wasm"),not(docsrs)))]
{ {
let key_material = wallet let key_material = wallet
.client() .client()
@ -932,7 +932,7 @@ impl LocalBroker {
)?)) )?))
as Arc<std::sync::RwLock<dyn BlockStorage + Send + Sync + 'static>> as Arc<std::sync::RwLock<dyn BlockStorage + Send + Sync + 'static>>
} }
#[cfg(target_family = "wasm")] #[cfg(any(target_family = "wasm",docsrs))]
{ {
Arc::new(std::sync::RwLock::new(HashMapBlockStorage::new())) Arc::new(std::sync::RwLock::new(HashMapBlockStorage::new()))
as Arc<std::sync::RwLock<dyn BlockStorage + Send + Sync + 'static>> as Arc<std::sync::RwLock<dyn BlockStorage + Send + Sync + 'static>>

Loading…
Cancel
Save