A BitTorrent client for macOS, written in Rust: a background service that runs the torrents,
the Phantom app and the phantom command line client. The torrent work is done by
librqbit; the app is drawn with
Rune.
scripts/install-mac.shThis builds a release and installs ~/Applications/Phantom.app. Rerun it to update (a running Phantom is quit and reopened). Phantom
then opens magnet links clicked anywhere. Downloads go to ~/Downloads; the service keeps its
state and log in ~/Library/Application Support/Phantom.
scripts/package-mac.shThis writes dist/Phantom-<version>-mac-arm64.zip, signed ad hoc (not by Apple), for friends.
It runs on Apple silicon only and needs macOS 13 or newer. Their steps:
- Unzip it and drag
Phantom.appto Applications. - Open it. macOS refuses, because the app isn't from an identified developer.
- Open System Settings → Privacy & Security, click Open Anyway and confirm.
Each new version needs Open Anyway again. To update: quit Phantom, drag the new app over the old one in Applications and open it; the new app replaces the old background service itself.
cargo build puts phantom in target/debug/. It starts the service if needed:
phantom add 'magnet:?xt=urn:btih:…' # or a .torrent file or URL
phantom watch # the list, refreshed every second
phantom pause 0 / resume 0
phantom remove 0 # keeps its files; `delete 0` deletes them too
phantom files 0 # its files, with their progress and priority
phantom priority 0 off 2 3 # don't download files 2 and 3; `normal` to again
phantom keepalive # keep the service running with no app open
phantom stopSee ARCHITECTURE.md for the map of the code and GLOSSARY.md
(with one per domain, linked from it) for the words it uses. cargo test runs the tests.