A Rust library providing foundational types for BitTorrent applications. BitTorrent Primitives is designed to offer efficient and reliable building blocks that simplify development for BitTorrent-related projects in Rust.
Disclaimer: This project is actively under development. We’re currently extracting and refining common types from the ]Torrust Tracker and Index to make them available to the BitTorrent community in Rust. While these types are functional, they are not yet ready for use in production or third-party projects.
- InfoHash: A core type for torrent info-hashes (coming soon).
- Additional types planned for managing BitTorrent data structures and protocols.
Add bittorrent-primitives
to your Cargo.toml
to begin using basic types for BitTorrent.
[dependencies]
bittorrent-primitives = "0.1.0"
Note: The crate is not yet stable, so check back for updates or contribute to help us reach production-readiness.
Contributions are welcome once we stabilize the package! Please feel free to open issues or pull requests. We’re excited to collaborate with the Rust BitTorrent community to improve and expand this library.
Copyright (c) 2024 The Torrust Developers.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Some files include explicit copyright notices and/or license notices.
For prosperity, versions of Torrust BitTorrent Primitives that are older than five years are automatically granted the MIT-0 license in addition to the existing LGPL-3.0-only license.