| Crates.io | crane-rs |
| lib.rs | crane-rs |
| version | 0.1.6 |
| created_at | 2025-10-22 17:23:54.536316+00 |
| updated_at | 2026-01-22 11:35:20.516826+00 |
| description | A simple file sharing server written in Rust using Actix-web framework. |
| homepage | https://github.com/santoshxshrestha/crane-rs |
| repository | https://github.com/santoshxshrestha/crane-rs |
| max_upload_size | |
| id | 1895989 |
| size | 120,541 |
A simple, self-contained file sharing server written in Rust using the Actix-web framework. Easily upload and download files from any device on your local network via a modern web interface.
You can install crane-rs using the provided installation script. This will automatically install Rust (if needed), clone the repository, build the project, and install the binary to /usr/local/bin.
curl -fsSL https://raw.githubusercontent.com/santoshxshrestha/crane-rs/main/scripts/install.sh | bash
Options:
--dry-run Show what would be done without making changes--repo=URL Use a custom repository URL-h, --help Show help messageAfter installation, you can run crane-rs from anywhere in your terminal.
For more details about installation and uninstallation scripts, see scripts/README.md.
You can install crane-rs directly from crates.io (or GitHub) using Cargo:
cargo install crane-rs
Or, to install the latest version from GitHub:
cargo install --git https://github.com/santoshxshrestha/crane-rs
nix run github:santoshxshrestha/crane-rs
git clone https://github.com/santoshxshrestha/crane-rs.git
cd crane-rs
cargo build --release
./target/release/crane-rs
| Option | Description | Default |
|---|---|---|
-p, --port |
Port to run the server on | 8080 |
-f, --file |
File(s) to preload and share | |
-n, --nuke |
Nuke (delete) all temporary shared files | false |
-a, --auth |
Enable password authentication | false |
Examples:
./crane-rs --port 9000
./crane-rs -f ./myfile.txt -f ./photo.jpg
./crane-rs --nuke
./crane-rs --auth
You will be prompted to enter a password interactively. All users must log in with this password to access the server.crane-rs./login and /authentication require a valid session cookie./login if not authenticated.--auth flag when starting the server.MIT License. See LICENSE for details.
Contributions, issues, and feature requests are welcome! Please open an issue or PR on GitHub.