-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rc-2024.09.2' into stable
- Loading branch information
Showing
115 changed files
with
2,606 additions
and
589 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"autonomi", | ||
"sn_auditor", | ||
"sn_build_info", | ||
"sn_cli", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[package] | ||
authors = ["MaidSafe Developers <[email protected]>"] | ||
description = "Autonomi client API" | ||
name = "autonomi" | ||
license = "GPL-3.0" | ||
version = "0.1.0" | ||
edition = "2021" | ||
homepage = "https://maidsafe.net" | ||
readme = "README.md" | ||
repository = "https://github.com/maidsafe/safe_network" | ||
|
||
[features] | ||
default = [] | ||
full = ["data", "files", "fs", "registers", "transfers"] | ||
data = ["transfers"] | ||
files = ["transfers"] | ||
fs = [] | ||
local = ["sn_client/local-discovery"] | ||
registers = ["transfers"] | ||
transfers = [] | ||
|
||
[dependencies] | ||
bip39 = "2.0.0" | ||
bls = { package = "blsttc", version = "8.0.1" } | ||
bytes = { version = "1.0.1", features = ["serde"] } | ||
libp2p = "0.53" | ||
rand = "0.8.5" | ||
rmp-serde = "1.1.1" | ||
self_encryption = "~0.29.0" | ||
serde = { version = "1.0.133", features = ["derive", "rc"] } | ||
sn_client = { path = "../sn_client", version = "0.110.1" } | ||
sn_protocol = { version = "0.17.9", path = "../sn_protocol" } | ||
sn_registers = { path = "../sn_registers", version = "0.3.19" } | ||
sn_transfers = { path = "../sn_transfers", version = "0.19.1" } | ||
thiserror = "1.0.23" | ||
tokio = { version = "1.35.0", features = ["sync", "fs"] } | ||
tracing = { version = "~0.1.26" } | ||
walkdir = "2.5.0" | ||
xor_name = "5.0.0" | ||
|
||
[dev-dependencies] | ||
tracing-subscriber = { version = "0.3", features = ["env-filter"] } | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
rustdoc-args = ["--cfg", "docsrs"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# `autonomi` - Autonomi client API | ||
|
||
[![Crates.io](https://img.shields.io/crates/v/autonomi.svg)](https://crates.io/crates/autonomi) | ||
[![docs.rs](https://img.shields.io/badge/api-rustdoc-blue.svg)](https://docs.rs/autonomi) | ||
|
||
Connect to and build on the Autonomi network. | ||
|
||
## Usage | ||
|
||
See [docs.rs/autonomi](https://docs.rs/autonomi) for usage examples. | ||
|
||
## Running tests | ||
|
||
Run a local network with the `local-discovery` feature: | ||
|
||
```sh | ||
cargo run --bin=safenode-manager --features=local-discovery -- local run --build --clean | ||
``` | ||
|
||
Then run the tests with the `local` feature: | ||
```sh | ||
$ cargo test --package=autonomi --features=local | ||
# Or with logs | ||
$ RUST_LOG=autonomi cargo test --package=autonomi --features=local -- --nocapture | ||
``` |
Oops, something went wrong.