2 releases
new 0.1.1 | Feb 20, 2025 |
---|---|
0.1.0 | Feb 13, 2025 |
#1021 in Network programming
126 downloads per month
Used in pubky-testnet
120KB
3K
SLoC
Pubky Homeserver
A pubky-core homeserver that acts as users' agent on the Internet, providing data availability and more.
Usage
Library
You can use the Homeserver as a library in other crates/binaries or for testing purposes.
#[tokio::main]
async fn main() -> Result<()> {
Homeserver::builder().run().await?
tokio::signal::ctrl_c().await?;
tracing::info!("Shutting down Homeserver");
server.shutdown();
Ok(())
}
Binary
Use cargo run
cargo run -- --config=./src/config.toml
Or Build first then run from target.
Build
cargo build --release
Run with an optional config file
../target/release/pubky-homeserver --config=./src/config.toml
Dependencies
~34–47MB
~844K SLoC