| Crates.io | http-relay |
| lib.rs | http-relay |
| version | 0.5.1 |
| created_at | 2025-02-12 07:11:53.45829+00 |
| updated_at | 2025-06-27 07:48:54.223722+00 |
| description | A Rust implementation of _some_ of [Http relay spec](https://httprelay.io/). |
| homepage | https://github.com/pubky/pubky-core |
| repository | https://github.com/pubky/pubky-core |
| max_upload_size | |
| id | 1552668 |
| size | 36,740 |
A Rust implementation of some of Http relay spec.
Normally you are better off running the reference implementation's binary.
This implementation, for the time being is meant for having a convenient library to be used in unit tests, and testnets in Pubky.
#[tokio::main]
async fn main() {
let http_relay = http_relay::HttpRelay::builder()
.http_port(15412)
.build()
.await
.unwrap();
println!(
"Running http relay {}",
http_relay.local_link_url().as_str()
);
tokio::signal::ctrl_c().await.unwrap();
http_relay.shutdown();
}