41 releases (26 stable)
new 3.1.1 | Feb 11, 2025 |
---|---|
2.3.1 | Jan 12, 2025 |
2.2.1 | Dec 17, 2024 |
2.2.1-alpha.2 | Oct 25, 2024 |
0.3.0 | Oct 25, 2023 |
#384 in Network programming
12,370 downloads per month
Used in 36 crates
(10 directly)
190KB
4K
SLoC
Pkarr
Rust implementation of Pkarr.
Publish and resolve DNS packets over Mainline DHT.
Get started
Check the Examples.
Using the Pkarr Client
Blocking API Support
By default, Pkarr client is designed to be asynchronous. However, if you prefer, you can easily obtain a blocking version of all methods by calling Client::as_blocking()
.
Compatibility with Non-Tokio Runtimes
This client utilizes Tokio, but it remains compatible with other futures-based libraries thanks to the async_compat
crate. This ensures seamless integration with various asynchronous runtimes.
WebAssembly support
This version of Pkarr assumes that you are running Wasm in a JavaScript environment, and calling relays over thew web browser Fetch API, so you can't use it in Wasi for example, nor can you use some Wasi bindings to use the DHT directly.
lib.rs
:
Feature flags
Exported errors
Dependencies
~3–36MB
~545K SLoC