Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/billvog/my-torrent

Yet one more BitTorrent implementation.. this time in Zig 🦎
https://github.com/billvog/my-torrent

bittorrent zig

Last synced: 10 days ago
JSON representation

Yet one more BitTorrent implementation.. this time in Zig 🦎

Awesome Lists containing this project

README

        

# my-torrent

A simple BitTorrent client written in Zig ⚡️

## Supported Specifications

- [The BitTorrent Protocol Specification — bep 3](https://www.bittorrent.org/beps/bep_0003.html)
- [UDP Tracker Protocol — bep 15](https://www.bittorrent.org/beps/bep_0015.html)
- [Tracker Returns Compact Peer Lists — bep 23](https://www.bittorrent.org/beps/bep_0023.html)

## Build & Run

### Requirements

- Zig (version 0.13.0)

### Instructions

To build & run for **Debuging**:

`zig build run -- info -f ./samples/sample.torrent`

To build for **Release**:

`zig build -Doptimize=ReleaseFast`

and then run from `./zig-out/bin/my-torrent`.

## Contribute

I'll be happy to review your PR 😎