594 releases (66 breaking)

0.110.4 Oct 9, 2024
0.110.1 Sep 24, 2024
0.109.0 Jul 29, 2024
0.105.2 Mar 28, 2024
0.44.11 Dec 30, 2020

#339 in Network programming

Download history 141/week @ 2024-07-08 18/week @ 2024-07-15 7/week @ 2024-07-22 147/week @ 2024-07-29 4/week @ 2024-08-05 18/week @ 2024-08-12 3/week @ 2024-08-19 162/week @ 2024-08-26 4/week @ 2024-09-02 152/week @ 2024-09-09 71/week @ 2024-09-16 192/week @ 2024-09-23 259/week @ 2024-09-30 354/week @ 2024-10-07 51/week @ 2024-10-14 15/week @ 2024-10-21

686 downloads per month
Used in 4 crates

GPL-3.0 license

1.5MB
23K SLoC

sn_client - SAFE Network Client Library

Overview

The 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.

Table of Contents

Installation

To include sn_client in your Rust project, add the following to your Cargo.toml:

[dependencies]
sn_client = "latest_version_here"

Usage

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?;

Running Tests

Prerequisites:

  • A running local network. Refer to 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

Contributing

Please refer to the Contributing Guidelines from the main directory for details on how to contribute to this project.

Conventional Commits

We follow the Conventional Commits specification for commit messages. Please adhere to this standard when contributing.

License

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).

Dependencies

~66–105MB
~2M SLoC