Giter Site home page Giter Site logo

bencode-parser-rs's Introduction

Hey there 👋!

I am Nemesis™

My Github Stats

Nemesis' Github Stats Nemesis' Most Used Languages

Stuff I Know

HTML5 CSS3 JavaScript Rust Python Godot Game Engine

Frameworks & Libraries I'm Comfortable With

Svelte React Vue JS Next JS Nuxt JS Bootstrap Tailwind CSS

Tools I Use

VIsual Studio Code Visual Studio Neovim Git NodeJS

My Trophies

Trophies

bencode-parser-rs's People

Contributors

nemesis-as avatar

Stargazers

 avatar

Watchers

 avatar

bencode-parser-rs's Issues

Add clap

Add clap to parse the following inputs -

  • Input file path => The torrent file to parse
  • Output file path => The file where the BEncode object would be written

Add bencode encoder

Is your feature request related to a problem? Please describe.

For calculating info hash, the raw bencode info dictionary is required, which itself requires a method to encode a BEncode object back to a bencode string

Describe the solution you'd like

Add a method to encode a BEncode object as bencode string

Describe alternatives you've considered

None

Additional context

None

Docs

Write docs for all the functions and structs
The documentation needs to have at least one example for all the functions

Organize files and Finalize Crate

The current file structure defines bencode as a module, which is not ideal if it has to be published as a crate.
The cli needs to be moved into examples which relies on the bencode lib

Add hex string decoder for info hashes

Is your feature request related to a problem? Please describe.

Extracting piece hashes from a parsed BEncode object is still a hassle.

Describe the solution you'd like

Add a hex parser so the pieces are also parsed when the bencode is parsed

Describe alternatives you've considered

The info_hash_extractor example

Additional context

--

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.