mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Create new librespot-metadata crate
This commit is contained in:
parent
bf60f6e7ab
commit
a51b562487
7 changed files with 43 additions and 7 deletions
13
Cargo.lock
generated
13
Cargo.lock
generated
|
@ -254,6 +254,7 @@ dependencies = [
|
|||
"lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libpulse-sys 0.0.0 (git+https://github.com/astro/libpulse-sys)",
|
||||
"librespot-core 0.1.0",
|
||||
"librespot-metadata 0.1.0",
|
||||
"librespot-protocol 0.1.0",
|
||||
"linear-map 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -325,6 +326,18 @@ dependencies = [
|
|||
"vorbis 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "librespot-metadata"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"futures 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"librespot-core 0.1.0",
|
||||
"librespot-protocol 0.1.0",
|
||||
"linear-map 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"protobuf 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "linear-map"
|
||||
version = "1.1.0"
|
||||
|
|
|
@ -20,11 +20,12 @@ name = "librespot"
|
|||
path = "src/main.rs"
|
||||
doc = false
|
||||
|
||||
[dependencies.librespot-protocol]
|
||||
path = "protocol"
|
||||
|
||||
[dependencies.librespot-core]
|
||||
path = "core"
|
||||
[dependencies.librespot-metadata]
|
||||
path = "metadata"
|
||||
[dependencies.librespot-protocol]
|
||||
path = "protocol"
|
||||
|
||||
[dependencies]
|
||||
base64 = "0.5.0"
|
||||
|
|
15
metadata/Cargo.toml
Normal file
15
metadata/Cargo.toml
Normal file
|
@ -0,0 +1,15 @@
|
|||
[package]
|
||||
name = "librespot-metadata"
|
||||
version = "0.1.0"
|
||||
authors = ["Paul Lietar <paul@lietar.net>"]
|
||||
|
||||
[dependencies]
|
||||
byteorder = "1.0"
|
||||
futures = "0.1.8"
|
||||
linear-map = "1.0"
|
||||
protobuf = "1.1"
|
||||
|
||||
[dependencies.librespot-core]
|
||||
path = "../core"
|
||||
[dependencies.librespot-protocol]
|
||||
path = "../protocol"
|
|
@ -1,9 +1,17 @@
|
|||
pub extern crate librespot_core as core;
|
||||
pub extern crate librespot_protocol as protocol;
|
||||
|
||||
extern crate byteorder;
|
||||
extern crate futures;
|
||||
extern crate linear_map;
|
||||
extern crate protobuf;
|
||||
|
||||
pub mod cover;
|
||||
|
||||
use futures::{Future, BoxFuture};
|
||||
use linear_map::LinearMap;
|
||||
use protobuf;
|
||||
|
||||
use core::mercury::MercuryError;
|
||||
use protocol;
|
||||
use core::session::Session;
|
||||
use core::util::{SpotifyId, FileId, StrChunksExt};
|
||||
|
0
metadata/src/metadata.rs
Normal file
0
metadata/src/metadata.rs
Normal file
|
@ -34,6 +34,7 @@ extern crate uuid;
|
|||
|
||||
pub extern crate librespot_core as core;
|
||||
pub extern crate librespot_protocol as protocol;
|
||||
pub extern crate librespot_metadata as metadata;
|
||||
|
||||
#[cfg(not(feature = "with-tremor"))]
|
||||
extern crate vorbis;
|
||||
|
@ -49,13 +50,11 @@ extern crate portaudio_rs;
|
|||
#[cfg(feature = "libpulse-sys")]
|
||||
extern crate libpulse_sys;
|
||||
|
||||
pub mod album_cover;
|
||||
pub mod audio_backend;
|
||||
pub mod audio_decrypt;
|
||||
pub mod audio_file;
|
||||
pub mod discovery;
|
||||
pub mod keymaster;
|
||||
pub mod metadata;
|
||||
pub mod mixer;
|
||||
pub mod player;
|
||||
|
||||
|
|
Loading…
Reference in a new issue