1 个不稳定版本
使用旧的Rust 2015
0.1.0 | 2018年3月30日 |
---|
#57 in #bittorrent
16KB
185 代码行
maketorrent
Bittorrent元文件生成器
用法
USAGE:
maketorrent [OPTIONS] <source directory or filename> --announce <url>
OPTIONS:
-a, --announce <url> Announce URL.
-c, --comment <comment> Add a comment to the Torrent file.
-h, --help Prints help information
-n, --name <name> Set the name of the Torrent file.[default: basename of the target]
-d, --no-date Don't write the creation date.
-o, --output <filename> Set the path and filename of the Torrent file.[default: <name>.torrent]
-l, --piece-length <n> Set the piece length to 2^n Bytes. [default: auto]
-p, --private Set the private flag.
-t, --threads Number of threads to use for hashing.[default: number of logical cores]
-V, --version Prints version information
-v, --verbose Explain what is being done.
ARGS:
<source directory or filename>
安装
cargo install maketorrent
或
git clone https://github.com/fuchsi/maketorrent.git
cd maketorrent
cargo install
依赖项
~10MB
~163K SLoC