Crates.io | sn_client |
lib.rs | sn_client |
version | 0.110.4 |
source | src |
created_at | 2020-12-07 15:16:56.221026 |
updated_at | 2024-10-09 10:31:09.557108 |
description | Safe Network Client |
homepage | https://maidsafe.net |
repository | https://github.com/maidsafe/safe_network |
max_upload_size | |
id | 320521 |
size | 516,517 |
sn_client
- SAFE Network Client LibraryThe sn_client
library provides the core functionalities for interacting with the SAFE Network. It handles tasks such as connecting to the network, managing concurrency, and performing various network operations like data storage and retrieval.
To include sn_client
in your Rust project, add the following to your Cargo.toml
:
[dependencies]
sn_client = "latest_version_here"
To use sn_client
, you first need to instantiate a client. Here's a simple example:
use sn_client::Client;
let client = Client::new(signer, peers, req_response_timeout, custom_concurrency_limit).await?;
Prerequisites:
safe_network/README.md
to run a local test network.SAFE_PEERS
environment variable or running the tests with --feature=local-discovery
:$ cargo test --package sn_client --release --tests --features=local-discovery
Please refer to the Contributing Guidelines from the main directory for details on how to contribute to this project.
We follow the Conventional Commits specification for commit messages. Please adhere to this standard when contributing.
This Safe Network repository is licensed under the General Public License (GPL), version 3 (LICENSE http://www.gnu.org/licenses/gpl-3.0.en.html).