Skip to content

Commit

Permalink
Merge pull request #3286 from autonomys/gateway-http-server
Browse files Browse the repository at this point in the history
Add http server to subspace-gateway.
  • Loading branch information
shamil-gadelshin authored Dec 9, 2024
2 parents e9e31da + aaa6d7e commit ac3d5e5
Show file tree
Hide file tree
Showing 11 changed files with 538 additions and 147 deletions.
151 changes: 150 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion crates/subspace-gateway/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[package]
name = "subspace-gateway"
version = "0.1.0"
authors = ["Teor <teor@riseup.net>"]
authors = [
"Teor <teor@riseup.net>",
"Shamil Gadelshin <shamilgadelshin@gmail.com>"
]
description = "A Subspace Network data gateway."
edition = "2021"
license = "MIT OR Apache-2.0"
Expand All @@ -17,6 +20,7 @@ include = [
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
actix-web = { version = "4", features = ["rustls"], default-features = false }
async-lock = "3.4.0"
anyhow = "1.0.89"
async-trait = "0.1.83"
Expand All @@ -26,6 +30,9 @@ futures = "0.3.31"
hex = "0.4.3"
jsonrpsee = { version = "0.24.5", features = ["server", "ws-client"] }
mimalloc = "0.1.43"
reqwest = { version = "0.12.9", features = ["json", "rustls-tls"], default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primitives" }
subspace-data-retrieval = { version = "0.1.0", path = "../../shared/subspace-data-retrieval" }
subspace-erasure-coding = { version = "0.1.0", path = "../subspace-erasure-coding" }
Expand Down
2 changes: 1 addition & 1 deletion crates/subspace-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ target/production/subspace-gateway --version

Start a gateway connected to a single node development chain:
```bash
target/production/subspace-gateway run \
target/production/subspace-gateway rpc \
--dev
```

Expand Down
Loading

0 comments on commit ac3d5e5

Please sign in to comment.