Skip to content

Commit ebea539

Browse files
committed
Add librespot-discovery crate
1 parent 6881875 commit ebea539

11 files changed

Lines changed: 473 additions & 314 deletions

File tree

Cargo.lock

Lines changed: 22 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ path = "core"
3333
version = "0.2.0"
3434
features = ["apresolve"]
3535

36+
[dependencies.librespot-discovery]
37+
path = "discovery"
38+
version = "0.2.0"
39+
3640
[dependencies.librespot-metadata]
3741
path = "metadata"
3842
version = "0.2.0"
@@ -72,7 +76,7 @@ gstreamer-backend = ["librespot-playback/gstreamer-backend"]
7276
with-tremor = ["librespot-playback/with-tremor"]
7377
with-vorbis = ["librespot-playback/with-vorbis"]
7478

75-
with-dns-sd = ["librespot-connect/with-dns-sd"]
79+
with-dns-sd = ["librespot-discovery/with-dns-sd"]
7680

7781
default = ["rodio-backend"]
7882

connect/Cargo.toml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,15 @@ repository = "https://github.com/librespot-org/librespot"
88
edition = "2018"
99

1010
[dependencies]
11-
aes-ctr = "0.6"
12-
base64 = "0.13"
1311
form_urlencoded = "1.0"
14-
futures-core = "0.3"
1512
futures-util = { version = "0.3.5", default_features = false }
16-
hmac = "0.11"
17-
hyper = { version = "0.14", features = ["server", "http1", "tcp"] }
18-
libmdns = "0.6"
1913
log = "0.4"
2014
protobuf = "2.14.0"
2115
rand = "0.8"
2216
serde = { version = "1.0", features = ["derive"] }
23-
serde_json = "1.0.25"
24-
sha-1 = "0.9"
25-
tokio = { version = "1.0", features = ["macros", "rt", "sync"] }
17+
serde_json = "1.0"
18+
tokio = { version = "1.0", features = ["macros", "sync"] }
2619
tokio-stream = "0.1.1"
27-
url = "2.1"
28-
29-
dns-sd = { version = "0.1.3", optional = true }
3020

3121
[dependencies.librespot-core]
3222
path = "../core"
@@ -39,7 +29,3 @@ version = "0.2.0"
3929
[dependencies.librespot-protocol]
4030
path = "../protocol"
4131
version = "0.2.0"
42-
43-
[features]
44-
with-dns-sd = ["dns-sd"]
45-

connect/src/discovery.rs

Lines changed: 0 additions & 263 deletions
This file was deleted.

connect/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ use librespot_playback as playback;
66
use librespot_protocol as protocol;
77

88
pub mod context;
9-
pub mod discovery;
109
pub mod spirc;

0 commit comments

Comments
 (0)