Prepare dht for publishing
This commit is contained in:
parent
c0d608bd35
commit
22eb0fca57
5 changed files with 29 additions and 29 deletions
48
Cargo.lock
generated
48
Cargo.lock
generated
|
|
@ -363,28 +363,6 @@ dependencies = [
|
||||||
"winapi",
|
"winapi",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "dht"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"anyhow",
|
|
||||||
"directories",
|
|
||||||
"futures",
|
|
||||||
"hex 0.4.3",
|
|
||||||
"indexmap",
|
|
||||||
"librqbit-bencode",
|
|
||||||
"librqbit-clone-to-owned",
|
|
||||||
"librqbit-core",
|
|
||||||
"log",
|
|
||||||
"parking_lot",
|
|
||||||
"pretty_env_logger",
|
|
||||||
"rand",
|
|
||||||
"serde",
|
|
||||||
"serde_json",
|
|
||||||
"tokio",
|
|
||||||
"tokio-stream",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "digest"
|
name = "digest"
|
||||||
version = "0.10.7"
|
version = "0.10.7"
|
||||||
|
|
@ -889,7 +867,6 @@ dependencies = [
|
||||||
"bitvec",
|
"bitvec",
|
||||||
"byteorder",
|
"byteorder",
|
||||||
"crypto-hash",
|
"crypto-hash",
|
||||||
"dht",
|
|
||||||
"futures",
|
"futures",
|
||||||
"hex 0.4.3",
|
"hex 0.4.3",
|
||||||
"http",
|
"http",
|
||||||
|
|
@ -897,6 +874,7 @@ dependencies = [
|
||||||
"librqbit-buffers",
|
"librqbit-buffers",
|
||||||
"librqbit-clone-to-owned",
|
"librqbit-clone-to-owned",
|
||||||
"librqbit-core",
|
"librqbit-core",
|
||||||
|
"librqbit-dht",
|
||||||
"librqbit-peer-protocol",
|
"librqbit-peer-protocol",
|
||||||
"librqbit-sha1-wrapper",
|
"librqbit-sha1-wrapper",
|
||||||
"log",
|
"log",
|
||||||
|
|
@ -958,6 +936,28 @@ dependencies = [
|
||||||
"uuid",
|
"uuid",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "librqbit-dht"
|
||||||
|
version = "2.2.1"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"directories",
|
||||||
|
"futures",
|
||||||
|
"hex 0.4.3",
|
||||||
|
"indexmap",
|
||||||
|
"librqbit-bencode",
|
||||||
|
"librqbit-clone-to-owned",
|
||||||
|
"librqbit-core",
|
||||||
|
"log",
|
||||||
|
"parking_lot",
|
||||||
|
"pretty_env_logger",
|
||||||
|
"rand",
|
||||||
|
"serde",
|
||||||
|
"serde_json",
|
||||||
|
"tokio",
|
||||||
|
"tokio-stream",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "librqbit-peer-protocol"
|
name = "librqbit-peer-protocol"
|
||||||
version = "2.2.1"
|
version = "2.2.1"
|
||||||
|
|
@ -1487,9 +1487,9 @@ version = "2.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"clap",
|
"clap",
|
||||||
"dht",
|
|
||||||
"futures",
|
"futures",
|
||||||
"librqbit",
|
"librqbit",
|
||||||
|
"librqbit-dht",
|
||||||
"log",
|
"log",
|
||||||
"parse_duration",
|
"parse_duration",
|
||||||
"pretty_env_logger",
|
"pretty_env_logger",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "dht"
|
name = "librqbit-dht"
|
||||||
version = "0.1.0"
|
version = "2.2.1"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
use std::{str::FromStr, time::Duration};
|
use std::{str::FromStr, time::Duration};
|
||||||
|
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
use dht::{Dht, Id20};
|
use librqbit_dht::{Dht, Id20};
|
||||||
use log::info;
|
use log::info;
|
||||||
use tokio_stream::StreamExt;
|
use tokio_stream::StreamExt;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ librqbit-core = {path = "../librqbit_core", version = "2.2.1"}
|
||||||
clone_to_owned = {path = "../clone_to_owned", package="librqbit-clone-to-owned", version = "2.2.1"}
|
clone_to_owned = {path = "../clone_to_owned", package="librqbit-clone-to-owned", version = "2.2.1"}
|
||||||
peer_binary_protocol = {path = "../peer_binary_protocol", package="librqbit-peer-protocol", version = "2.2.1"}
|
peer_binary_protocol = {path = "../peer_binary_protocol", package="librqbit-peer-protocol", version = "2.2.1"}
|
||||||
sha1w = {path = "../sha1w", default-features=false, package="librqbit-sha1-wrapper", version="2.2.1"}
|
sha1w = {path = "../sha1w", default-features=false, package="librqbit-sha1-wrapper", version="2.2.1"}
|
||||||
dht = {path = "../dht"}
|
dht = {path = "../dht", package="librqbit-dht", version="2.2.1"}
|
||||||
|
|
||||||
tokio = {version = "1", features = ["macros", "rt-multi-thread"]}
|
tokio = {version = "1", features = ["macros", "rt-multi-thread"]}
|
||||||
axum = {version = "0.6"}
|
axum = {version = "0.6"}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ rust-tls = ["librqbit/rust-tls"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
librqbit = {path="../librqbit", default-features=false}
|
librqbit = {path="../librqbit", default-features=false}
|
||||||
dht = {path="../dht"}
|
dht = {path="../dht", package="librqbit-dht", version="2.2.1"}
|
||||||
tokio = {version = "1", features = ["macros", "rt-multi-thread"]}
|
tokio = {version = "1", features = ["macros", "rt-multi-thread"]}
|
||||||
anyhow = "1"
|
anyhow = "1"
|
||||||
clap = {version = "4", features = ["derive"]}
|
clap = {version = "4", features = ["derive"]}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue