Crates.io | distrans |
lib.rs | distrans |
version | 0.3.1 |
source | src |
created_at | 2024-02-25 00:25:49.05812 |
updated_at | 2024-06-07 04:42:14.637886 |
description | Anonymous decentralized file distribution and transfer |
homepage | https://github.com/cmars/distrans |
repository | https://github.com/cmars/distrans |
max_upload_size | |
id | 1152049 |
size | 191,924 |
"The bytes must flow."
Distrans (distribution and transfer) sends and receives file content anonymously over the Veilid network.
distrans seed <file>
indexes and seeds a file, displaying the dht key which can be used to fetch it.
distrans fetch <dht key> [directory]
fetches a file while it's being seeded (defaults to current directory).
Similar to bittorrent, distrans cannot fetch a file unless it's being seeded by a peer.
See distrans --help
for more options.
Try fetching a test file with distrans fetch VLD0:cCHB85pEaV4bvRfywxnd2fRNBScR64UaJC8hoKzyr3M
.
Install a binary release on Linux, macOS or Windows.
Install the crate with cargo install distrans
.
Crate dependencies may require system packages to be installed depending on the target platform.
Debian Bookworm needs apt-get install build-essential libssl-dev pkg-config
.
Others may be similar.
Run distrans on Nix with nix run github:cmars/distrans
.
Add this flake (github:cmars/distrans
) as an input to your home manager flake.
Or add the default package to a legacy home.nix
with something like:
(builtins.getFlake "github:cmars/distrans").packages.x86_64-linux.default
What's on the roadmap for a 1.0 release.
Trackers will enable a swarm of distrans peers to operate more like bittorrent, where blocks may be simultaneously seeded and fetched.
The distrans wire protocol and indexing structures support multi-file shares, but this hasn't been fully implemented yet.
Distrans operates an embedded Veilid node, which requires a synchronized local clock. Clock skew can prevent distrans from connecting to the Veilid network.
Logging can be configured with the RUST_LOG environment variable.
RUST_LOG=debug
will enable all debug-level logging in distrans as well as veilid-core, which may be useful for troubleshooting low-level Veilid network problems and reporting issues.
When opening an issue, note the OS type, OS release version, distrans version, and steps to reproduce. Any logs you can attach may help.
In a Nix environment, nix develop github:cmars/distrans
(or nix develop
in this directory) to get a devshell with the necessary tool dependencies.
On other platforms a Veilid development environment will suffice.
capnp
is only necessary when working on the protocol wire-format.
Github is used for CICD and especially release automation.
Branches and releases are regularly mirrored to Gitlab. Pull requests might be accepted from either, if they fit with the project plans and goals.
Open an issue and ask before picking up a branch and proposing, for best results.