Skip to content

Commit af9ec7e

Browse files
Add client (#3)
* add client to WASM test * compiles * remove WASM test * add client cleanup * update names
1 parent f5030f4 commit af9ec7e

File tree

9 files changed

+550
-0
lines changed

9 files changed

+550
-0
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
continue-on-error: true
2323
env:
2424
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
25+
- name: Publish client
26+
run: cargo publish --manifest-path client/Cargo.toml
27+
continue-on-error: true
28+
env:
29+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2530
- name: Publish chain
2631
run: cargo publish --manifest-path chain/Cargo.toml
2732
continue-on-error: true

Cargo.lock

Lines changed: 73 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
[workspace]
22
members = [
33
"chain",
4+
"client",
45
"types",
56
]
67
resolver = "2"
78

89
[workspace.dependencies]
10+
alto-client = { version = "0.0.2", path = "client" }
911
alto-types = { version = "0.0.2", path = "types" }
1012
commonware-consensus = { version = "0.0.40" }
1113
commonware-cryptography = { version = "0.0.40" }

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
## Components
88

99
* [chain](./chain/README.md): A minimal blockchain built with the [Commonware Library](https://github.com/commonwarexyz/monorepo).
10+
* [client](./client/README.md): Client for interacting with `alto`.
1011
* [types](./types/README.md): Common types used throughout `alto`.
1112

1213
## Licensing

client/Cargo.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[package]
2+
name = "alto-client"
3+
version = "0.0.2"
4+
publish = true
5+
edition = "2021"
6+
license = "MIT OR Apache-2.0"
7+
description = "Client for interacting with alto."
8+
readme = "README.md"
9+
homepage = "https://alto.commonware.xyz"
10+
repository = "https://github.com/commonwarexyz/alto/tree/main/client"
11+
documentation = "https://docs.rs/alto-client"
12+
13+
[dependencies]
14+
alto-types = { workspace = true }
15+
commonware-cryptography = { workspace = true }
16+
commonware-utils = { workspace = true }
17+
bytes = { workspace = true }
18+
rand = { workspace = true }
19+
thiserror = { workspace = true }
20+
futures = { workspace = true }
21+
reqwest = "0.12.12"
22+
tokio-tungstenite = { version = "0.17", features = ["native-tls"] }
23+
tokio = { version = "1.40.0", features = ["full"] }

client/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# alto-client
2+
3+
[![Crates.io](https://img.shields.io/crates/v/alto-client.svg)](https://crates.io/crates/alto-client)
4+
[![Docs.rs](https://docs.rs/alto-client/badge.svg)](https://docs.rs/alto-client)
5+
6+
Client for interacting with `alto`.
7+
8+
## Status
9+
10+
`alto-client` is **ALPHA** software and is not yet recommended for production use. Developers should expect breaking changes and occasional instability.

0 commit comments

Comments
 (0)