-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b629f61
commit 84d28e8
Showing
19 changed files
with
549 additions
and
145 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
[package] | ||
name = "librespot" | ||
version = "0.5.0-dev" | ||
rust-version = "1.74" | ||
authors = ["Librespot Org"] | ||
license = "MIT" | ||
description = "An open source client library for Spotify, with support for Spotify Connect" | ||
keywords = ["spotify"] | ||
repository = "https://github.com/librespot-org/librespot" | ||
readme = "README.md" | ||
edition = "2021" | ||
|
||
[workspace] | ||
|
||
[lib] | ||
name = "librespot" | ||
path = "src/lib.rs" | ||
|
||
[[bin]] | ||
name = "librespot" | ||
path = "src/main.rs" | ||
doc = false | ||
|
||
[dependencies.librespot-audio] | ||
path = "audio" | ||
version = "0.5.0-dev" | ||
|
||
[dependencies.librespot-connect] | ||
path = "connect" | ||
version = "0.5.0-dev" | ||
|
||
[dependencies.librespot-core] | ||
path = "core" | ||
version = "0.5.0-dev" | ||
|
||
[dependencies.librespot-discovery] | ||
path = "discovery" | ||
version = "0.5.0-dev" | ||
|
||
[dependencies.librespot-metadata] | ||
path = "metadata" | ||
version = "0.5.0-dev" | ||
|
||
[dependencies.librespot-playback] | ||
path = "playback" | ||
version = "0.5.0-dev" | ||
|
||
[dependencies.librespot-protocol] | ||
path = "protocol" | ||
version = "0.5.0-dev" | ||
|
||
[dependencies.librespot-oauth] | ||
path = "oauth" | ||
version = "0.5.0-dev" | ||
|
||
[dependencies] | ||
data-encoding = "2.5" | ||
env_logger = { version = "0.11.2", default-features = false, features = ["color", "humantime", "auto-color"] } | ||
futures-util = { version = "0.3", default-features = false } | ||
getopts = "0.2" | ||
log = "0.4" | ||
sha1 = "0.10" | ||
sysinfo = { version = "0.31.3", default-features = false, features = ["system"] } | ||
thiserror = "1.0" | ||
tokio = { version = "1", features = ["rt", "macros", "signal", "sync", "parking_lot", "process"] } | ||
url = "2.2" | ||
|
||
[features] | ||
alsa-backend = ["librespot-playback/alsa-backend"] | ||
portaudio-backend = ["librespot-playback/portaudio-backend"] | ||
pulseaudio-backend = ["librespot-playback/pulseaudio-backend"] | ||
jackaudio-backend = ["librespot-playback/jackaudio-backend"] | ||
rodio-backend = ["librespot-playback/rodio-backend"] | ||
rodiojack-backend = ["librespot-playback/rodiojack-backend"] | ||
sdl-backend = ["librespot-playback/sdl-backend"] | ||
gstreamer-backend = ["librespot-playback/gstreamer-backend"] | ||
|
||
with-dns-sd = ["librespot-core/with-dns-sd", "librespot-discovery/with-dns-sd"] | ||
|
||
passthrough-decoder = ["librespot-playback/passthrough-decoder"] | ||
|
||
default = ["rodio-backend"] | ||
|
||
[package.metadata.deb] | ||
maintainer = "librespot-org" | ||
copyright = "2018 Paul Liétar" | ||
license-file = ["LICENSE", "4"] | ||
depends = "$auto" | ||
extended-description = """\ | ||
librespot is an open source client library for Spotify. It enables applications \ | ||
to use Spotify's service, without using the official but closed-source \ | ||
libspotify. Additionally, it will provide extra features which are not \ | ||
available in the official library.""" | ||
section = "sound" | ||
priority = "optional" | ||
assets = [ | ||
["target/release/librespot", "usr/bin/", "755"], | ||
["contrib/librespot.service", "lib/systemd/system/", "644"], | ||
["contrib/librespot.user.service", "lib/systemd/user/", "644"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[package] | ||
name = "librespot-audio" | ||
version = "0.5.0-dev" | ||
rust-version = "1.74" | ||
authors = ["Paul Lietar <paul@lietar.net>"] | ||
description = "The audio fetching logic for librespot" | ||
license = "MIT" | ||
repository = "https://github.com/librespot-org/librespot" | ||
edition = "2021" | ||
|
||
[dependencies.librespot-core] | ||
path = "../core" | ||
version = "0.5.0-dev" | ||
|
||
[dependencies] | ||
aes = "0.8" | ||
bytes = "1" | ||
ctr = "0.9" | ||
futures-util = "0.3" | ||
hyper = { version = "1.3", features = [] } | ||
hyper-util = { version = "0.1", features = ["client"] } | ||
http-body-util = "0.1.1" | ||
log = "0.4" | ||
parking_lot = { version = "0.12", features = ["deadlock_detection"] } | ||
tempfile = "3" | ||
thiserror = "1.0" | ||
tokio = { version = "1", features = ["macros", "parking_lot", "sync"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[package] | ||
name = "librespot-connect" | ||
version = "0.5.0-dev" | ||
rust-version = "1.74" | ||
authors = ["Paul Lietar <paul@lietar.net>"] | ||
description = "The discovery and Spotify Connect logic for librespot" | ||
license = "MIT" | ||
repository = "https://github.com/librespot-org/librespot" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
form_urlencoded = "1.0" | ||
futures-util = "0.3" | ||
log = "0.4" | ||
protobuf = "3.5" | ||
rand = "0.8" | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
thiserror = "1.0" | ||
tokio = { version = "1", features = ["macros", "parking_lot", "sync"] } | ||
tokio-stream = "0.1" | ||
|
||
[dependencies.librespot-core] | ||
path = "../core" | ||
version = "0.5.0-dev" | ||
|
||
[dependencies.librespot-playback] | ||
path = "../playback" | ||
version = "0.5.0-dev" | ||
|
||
[dependencies.librespot-protocol] | ||
path = "../protocol" | ||
version = "0.5.0-dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
[package] | ||
name = "librespot-core" | ||
version = "0.5.0-dev" | ||
rust-version = "1.74" | ||
authors = ["Paul Lietar <paul@lietar.net>"] | ||
build = "build.rs" | ||
description = "The core functionality provided by librespot" | ||
license = "MIT" | ||
repository = "https://github.com/librespot-org/librespot" | ||
edition = "2021" | ||
|
||
[dependencies.librespot-oauth] | ||
path = "../oauth" | ||
version = "0.5.0-dev" | ||
|
||
[dependencies.librespot-protocol] | ||
path = "../protocol" | ||
version = "0.5.0-dev" | ||
|
||
[dependencies] | ||
aes = "0.8" | ||
base64 = "0.22" | ||
byteorder = "1.4" | ||
bytes = "1" | ||
dns-sd = { version = "0.1", optional = true } | ||
form_urlencoded = "1.0" | ||
futures-core = "0.3" | ||
futures-util = { version = "0.3", features = ["alloc", "bilock", "sink", "unstable"] } | ||
governor = { version = "0.6", default-features = false, features = ["std", "jitter"] } | ||
hmac = "0.12" | ||
httparse = "1.7" | ||
http = "1.0" | ||
hyper = { version = "1.3", features = ["http1", "http2"] } | ||
hyper-util = { version = "0.1", features = ["client"] } | ||
http-body-util = "0.1.1" | ||
hyper-proxy2 = { version = "0.1", default-features = false, features = ["rustls"] } | ||
hyper-rustls = { version = "0.27.2", features = ["http2"] } | ||
log = "0.4" | ||
nonzero_ext = "0.3" | ||
num-bigint = { version = "0.4", features = ["rand"] } | ||
num-derive = "0.4" | ||
num-integer = "0.1" | ||
num-traits = "0.2" | ||
once_cell = "1" | ||
parking_lot = { version = "0.12", features = ["deadlock_detection"] } | ||
pbkdf2 = { version = "0.12", default-features = false, features = ["hmac"] } | ||
pin-project-lite = "0.2" | ||
priority-queue = "2.0" | ||
protobuf = "3.5" | ||
quick-xml = { version = "0.36.1", features = ["serialize"] } | ||
rand = "0.8" | ||
rsa = "0.9.2" | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
sha1 = { version = "0.10", features = ["oid"] } | ||
shannon = "0.2" | ||
sysinfo = { version = "0.31.3", default-features = false, features = ["system"] } | ||
thiserror = "1.0" | ||
time = { version = "0.3", features = ["formatting", "parsing"] } | ||
tokio = { version = "1", features = ["io-util", "macros", "net", "parking_lot", "rt", "sync", "time"] } | ||
tokio-stream = "0.1" | ||
tokio-tungstenite = { version = "*", default-features = false, features = ["rustls-tls-native-roots"] } | ||
tokio-util = { version = "0.7", features = ["codec"] } | ||
url = "2" | ||
uuid = { version = "1", default-features = false, features = ["fast-rng", "v4"] } | ||
data-encoding = "2.5" | ||
|
||
[build-dependencies] | ||
rand = "0.8" | ||
vergen-gitcl = { version = "1.0.0", default-features = false, features = ["build"] } | ||
|
||
[dev-dependencies] | ||
tokio = { version = "1", features = ["macros", "parking_lot"] } | ||
|
||
[features] | ||
with-dns-sd = ["dns-sd"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.