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

#242 in Network programming

Download history 13/week @ 2024-07-18 127/week @ 2024-07-25 27/week @ 2024-08-01 9/week @ 2024-08-08 12/week @ 2024-08-15 133/week @ 2024-08-22 33/week @ 2024-08-29 118/week @ 2024-09-05 87/week @ 2024-09-12 180/week @ 2024-09-19 213/week @ 2024-09-26 346/week @ 2024-10-03 121/week @ 2024-10-10 26/week @ 2024-10-17 7/week @ 2024-10-24 6/week @ 2024-10-31

297 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

~67–105MB
~2M SLoC