Rust implementation of transferring files between devices over Wi-Fi network using a QR code. Tool is inspired by https://github.com/claudiodangelis/qrcp
The Axum server is bound to the local IP address of the machine the server is running on. The available port can be selected by providing the --port
on the command line or it will be allocated automatically.
The QR code that is printed to stdout encodes a http url which is typically of the following format:
http://{ip}:{port}/{send|receive}/[optional suffix]
swiftfile is published on crates.io (https://crates.io/crates/swiftfile) and can be directly installed.
sh
cargo install swift_file
Releases page provides an option to manually install the sf binary from an archive. The archive is available for Linux, MacOS, and Windows. Download, extract and move the binary to the desired directory, and set execution permissions.
```
Usage: sf
Commands: send Send a file receive Receive a file help Print this message or the help of the given subcommand(s)
Options: -h, --help Print help -V, --version Print version ```
``` Send a file
Usage: sf send [OPTIONS]
Arguments:
Options:
-p, --port
``` Receive a file
Usage: sf receive [OPTIONS]
Options:
-d, --dest-dir