Skip to content

Commit ac3d5e5

Browse files
Merge pull request #3286 from autonomys/gateway-http-server
Add http server to subspace-gateway.
2 parents e9e31da + aaa6d7e commit ac3d5e5

File tree

11 files changed

+538
-147
lines changed

11 files changed

+538
-147
lines changed

Cargo.lock

+150-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/subspace-gateway/Cargo.toml

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[package]
22
name = "subspace-gateway"
33
version = "0.1.0"
4-
authors = ["Teor <[email protected]>"]
4+
authors = [
5+
6+
"Shamil Gadelshin <[email protected]>"
7+
]
58
description = "A Subspace Network data gateway."
69
edition = "2021"
710
license = "MIT OR Apache-2.0"
@@ -17,6 +20,7 @@ include = [
1720
targets = ["x86_64-unknown-linux-gnu"]
1821

1922
[dependencies]
23+
actix-web = { version = "4", features = ["rustls"], default-features = false }
2024
async-lock = "3.4.0"
2125
anyhow = "1.0.89"
2226
async-trait = "0.1.83"
@@ -26,6 +30,9 @@ futures = "0.3.31"
2630
hex = "0.4.3"
2731
jsonrpsee = { version = "0.24.5", features = ["server", "ws-client"] }
2832
mimalloc = "0.1.43"
33+
reqwest = { version = "0.12.9", features = ["json", "rustls-tls"], default-features = false }
34+
serde = { version = "1.0", features = ["derive"] }
35+
serde_json = "1.0"
2936
subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primitives" }
3037
subspace-data-retrieval = { version = "0.1.0", path = "../../shared/subspace-data-retrieval" }
3138
subspace-erasure-coding = { version = "0.1.0", path = "../subspace-erasure-coding" }

crates/subspace-gateway/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ target/production/subspace-gateway --version
6161

6262
Start a gateway connected to a single node development chain:
6363
```bash
64-
target/production/subspace-gateway run \
64+
target/production/subspace-gateway rpc \
6565
--dev
6666
```
6767

0 commit comments

Comments
 (0)