Integrate with tokio console
This commit is contained in:
parent
99c5830b97
commit
e10da1c7dd
4 changed files with 466 additions and 123 deletions
|
|
@ -16,7 +16,7 @@ rust-tls = ["librqbit/rust-tls"]
|
|||
[dependencies]
|
||||
librqbit = {path="../librqbit", default-features=false}
|
||||
dht = {path="../dht"}
|
||||
tokio = {version = "1", features = ["macros", "rt-multi-thread"]}
|
||||
tokio = {version = "1.15", features = ["macros", "rt-multi-thread", "tracing"]}
|
||||
anyhow = "1"
|
||||
clap = "3.0.0-beta.5"
|
||||
log = "0.4"
|
||||
|
|
@ -28,6 +28,7 @@ reqwest = "*"
|
|||
serde = {version = "1", features=["derive"]}
|
||||
serde_json = "1"
|
||||
size_format = "1"
|
||||
console-subscriber = "0.1"
|
||||
|
||||
[dev-dependencies]
|
||||
futures = {version = "0.3"}
|
||||
|
|
@ -193,6 +193,8 @@ fn main() -> anyhow::Result<()> {
|
|||
}
|
||||
|
||||
async fn async_main(opts: Opts, spawner: BlockingSpawner) -> anyhow::Result<()> {
|
||||
console_subscriber::init();
|
||||
|
||||
let sopts = SessionOptions {
|
||||
disable_dht: opts.disable_dht,
|
||||
disable_dht_persistence: opts.disable_dht_persistence,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue