Giter VIP home page Giter VIP logo

rustorrent's Introduction

rustorrent

A BitTorrent library implemented in Rust


Rustorrent is intented to be a full featured BitTorrent implementation.
It is in active development and is not usable yet. The API might change any time.

Notable features

Implemented BEPs

As noted, the library is not usable yet, though you might try it with:

$ cargo run scripts/Fedora-Workstation-Live-x86_64-33.torrent

rustorrent's People

Contributors

kodraus avatar sebastiencs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rustorrent's Issues

UtpStream is not "Send"

Hi,

I write an example of sending message through a utp stream: jason-ni@76b93ec

However, it can not be compiled. It seems the "Send" marker is not sufficient to allow spawning a future with UtpStream. I tried to add the "Sync" marker. Then it can be compiled and run as expected. But I don't think that's the correct fix. My simple code may not be complicated enough to trigger some race condition.

Another issue is the UtpStream is hard to be split into read half and write half like tokio's TcpStream. Splitting to 2 separated halves is critical to implement a full-duplex proxy, as I understand(tokio-rs/tokio#1108).

Maybe we need to add another layer of indirection by using channel. How do you think?

Documentation

Hi,
I really love this library. I've been looking through other Rust bittorrent libraries, and none seem to work quite as well. While cargotorrent seems to be the other main rust torrenting library, I have issues running it (though I'm using a proot container in Termux, so I'd expect some issues). The only issue I have with this repo is a lack of documentation, which is to be expected from a crate in active development. If you wouldn't mind, though, even some very basic documentation on starting and stopping a torrent would be great.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.