| Crates.io | ss |
| lib.rs | ss |
| version | 0.1.0 |
| created_at | 2026-01-15 13:11:06.534532+00 |
| updated_at | 2026-01-15 13:11:06.534532+00 |
| description | A simple and lightweight file sharing server |
| homepage | |
| repository | https://git.sr.ht/~hkl/ss |
| max_upload_size | |
| id | 2045522 |
| size | 71,847 |
SS is a small, lightweight file sharing server inspired by dufs. It provides a simple HTTP static file server and a library you can use in your own applications.
Features
lib and bin targets for embedding or runningQuick start
Run:
cargo run -- --path . --host 127.0.0.1 --port 3000
Or use as a library:
use ss::{ServerConfig, start_server};
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let c = ServerConfig { host: "127.0.0.1".into(), port: 3000, path: ".".into(), enable_cors: true };
start_server(c).await?;
Ok(())
}
License
Dual licensed under MIT OR Apache-2.0.