v7.0.0 prep further
This commit is contained in:
parent
31a254103c
commit
5717f33f68
6 changed files with 45 additions and 39 deletions
60
Cargo.lock
generated
60
Cargo.lock
generated
|
|
@ -1522,6 +1522,7 @@ dependencies = [
|
||||||
"librqbit-sha1-wrapper",
|
"librqbit-sha1-wrapper",
|
||||||
"librqbit-tracker-comms",
|
"librqbit-tracker-comms",
|
||||||
"librqbit-upnp",
|
"librqbit-upnp",
|
||||||
|
"librqbit-upnp-serve",
|
||||||
"lru",
|
"lru",
|
||||||
"memmap2",
|
"memmap2",
|
||||||
"mime_guess",
|
"mime_guess",
|
||||||
|
|
@ -1545,7 +1546,6 @@ dependencies = [
|
||||||
"tower-http",
|
"tower-http",
|
||||||
"tracing",
|
"tracing",
|
||||||
"tracing-subscriber",
|
"tracing-subscriber",
|
||||||
"upnp-serve",
|
|
||||||
"url",
|
"url",
|
||||||
"urlencoding",
|
"urlencoding",
|
||||||
"uuid",
|
"uuid",
|
||||||
|
|
@ -1691,6 +1691,34 @@ dependencies = [
|
||||||
"url",
|
"url",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "librqbit-upnp-serve"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"axum 0.7.5",
|
||||||
|
"bstr",
|
||||||
|
"gethostname",
|
||||||
|
"http 1.1.0",
|
||||||
|
"httparse",
|
||||||
|
"librqbit-core",
|
||||||
|
"librqbit-sha1-wrapper",
|
||||||
|
"librqbit-upnp",
|
||||||
|
"mime_guess",
|
||||||
|
"parking_lot",
|
||||||
|
"quick-xml",
|
||||||
|
"reqwest",
|
||||||
|
"serde",
|
||||||
|
"socket2",
|
||||||
|
"tokio",
|
||||||
|
"tokio-util",
|
||||||
|
"tower-http",
|
||||||
|
"tracing",
|
||||||
|
"tracing-subscriber",
|
||||||
|
"url",
|
||||||
|
"uuid",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libsqlite3-sys"
|
name = "libsqlite3-sys"
|
||||||
version = "0.28.0"
|
version = "0.28.0"
|
||||||
|
|
@ -2515,6 +2543,7 @@ dependencies = [
|
||||||
"futures",
|
"futures",
|
||||||
"libc",
|
"libc",
|
||||||
"librqbit",
|
"librqbit",
|
||||||
|
"librqbit-upnp-serve",
|
||||||
"openssl",
|
"openssl",
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
"parse_duration",
|
"parse_duration",
|
||||||
|
|
@ -2527,7 +2556,6 @@ dependencies = [
|
||||||
"tokio-util",
|
"tokio-util",
|
||||||
"tracing",
|
"tracing",
|
||||||
"tracing-subscriber",
|
"tracing-subscriber",
|
||||||
"upnp-serve",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -3583,34 +3611,6 @@ version = "0.9.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
|
checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "upnp-serve"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"anyhow",
|
|
||||||
"axum 0.7.5",
|
|
||||||
"bstr",
|
|
||||||
"gethostname",
|
|
||||||
"http 1.1.0",
|
|
||||||
"httparse",
|
|
||||||
"librqbit-core",
|
|
||||||
"librqbit-sha1-wrapper",
|
|
||||||
"librqbit-upnp",
|
|
||||||
"mime_guess",
|
|
||||||
"parking_lot",
|
|
||||||
"quick-xml",
|
|
||||||
"reqwest",
|
|
||||||
"serde",
|
|
||||||
"socket2",
|
|
||||||
"tokio",
|
|
||||||
"tokio-util",
|
|
||||||
"tower-http",
|
|
||||||
"tracing",
|
|
||||||
"tracing-subscriber",
|
|
||||||
"url",
|
|
||||||
"uuid",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "url"
|
name = "url"
|
||||||
version = "2.5.2"
|
version = "2.5.2"
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ peer_binary_protocol = { path = "../peer_binary_protocol", default-features = fa
|
||||||
sha1w = { path = "../sha1w", default-features = false, package = "librqbit-sha1-wrapper", version = "4" }
|
sha1w = { path = "../sha1w", default-features = false, package = "librqbit-sha1-wrapper", version = "4" }
|
||||||
dht = { path = "../dht", package = "librqbit-dht", version = "5.1.0" }
|
dht = { path = "../dht", package = "librqbit-dht", version = "5.1.0" }
|
||||||
librqbit-upnp = { path = "../upnp", version = "0.1.1" }
|
librqbit-upnp = { path = "../upnp", version = "0.1.1" }
|
||||||
upnp-serve = { path = "../upnp-serve", default-features = false, version = "0.1.0", optional = true }
|
upnp-serve = { path = "../upnp-serve", package = "librqbit-upnp-serve", default-features = false, version = "0.1.0", optional = true }
|
||||||
|
|
||||||
tokio = { version = "1", features = [
|
tokio = { version = "1", features = [
|
||||||
"macros",
|
"macros",
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ serde_json = "1"
|
||||||
size_format = "1"
|
size_format = "1"
|
||||||
bytes = "1.5.0"
|
bytes = "1.5.0"
|
||||||
openssl = { version = "0.10", features = ["vendored"], optional = true }
|
openssl = { version = "0.10", features = ["vendored"], optional = true }
|
||||||
upnp-serve = { path = "../upnp-serve" }
|
upnp-serve = { path = "../upnp-serve", version = "0.1.0", package = "librqbit-upnp-serve" }
|
||||||
libc = "0.2.158"
|
libc = "0.2.158"
|
||||||
signal-hook = "0.3.17"
|
signal-hook = "0.3.17"
|
||||||
tokio-util = "0.7.11"
|
tokio-util = "0.7.11"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
[package]
|
[package]
|
||||||
name = "upnp-serve"
|
name = "librqbit-upnp-serve"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
description = "Simple UPnP MediaServer implementation"
|
||||||
|
license = "Apache-2.0"
|
||||||
|
documentation = "https://docs.rs/librqbit-upnp-serve"
|
||||||
|
repository = "https://github.com/ikatson/rqbit"
|
||||||
|
readme = "README.md"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["sha1-crypto-hash"]
|
default = ["sha1-crypto-hash"]
|
||||||
|
|
@ -18,10 +23,10 @@ serde = { version = "1", features = ["derive"] }
|
||||||
http = "1.1.0"
|
http = "1.1.0"
|
||||||
httparse = "1.9.4"
|
httparse = "1.9.4"
|
||||||
uuid = { version = "1.10.0", features = ["v4"] }
|
uuid = { version = "1.10.0", features = ["v4"] }
|
||||||
librqbit-upnp = { path = "../upnp", default-features = false }
|
librqbit-upnp = { version = "0.1", path = "../upnp", default-features = false }
|
||||||
gethostname = "0.5.0"
|
gethostname = "0.5.0"
|
||||||
librqbit-sha1-wrapper = { path = "../sha1w", default-features = false }
|
librqbit-sha1-wrapper = { path = "../sha1w", version = "4", default-features = false }
|
||||||
librqbit-core = { path = "../librqbit_core", default-features = false }
|
librqbit-core = { version = "4", path = "../librqbit_core", default-features = false }
|
||||||
mime_guess = "2.0.5"
|
mime_guess = "2.0.5"
|
||||||
url = "2.5.2"
|
url = "2.5.2"
|
||||||
parking_lot = "0.12.3"
|
parking_lot = "0.12.3"
|
||||||
|
|
|
||||||
1
crates/upnp-serve/README.md
Symbolic link
1
crates/upnp-serve/README.md
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
../README.md
|
||||||
|
|
@ -5,12 +5,12 @@ use std::{
|
||||||
|
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
use axum::routing::get;
|
use axum::routing::get;
|
||||||
use mime_guess::Mime;
|
use librqbit_upnp_serve::{
|
||||||
use tracing::{error, info};
|
|
||||||
use upnp_serve::{
|
|
||||||
upnp_types::content_directory::response::{Item, ItemOrContainer},
|
upnp_types::content_directory::response::{Item, ItemOrContainer},
|
||||||
UpnpServer, UpnpServerOptions,
|
UpnpServer, UpnpServerOptions,
|
||||||
};
|
};
|
||||||
|
use mime_guess::Mime;
|
||||||
|
use tracing::{error, info};
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> anyhow::Result<()> {
|
async fn main() -> anyhow::Result<()> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue