Loading Cargo.lock +35 −4 Original line number Diff line number Diff line Loading @@ -143,7 +143,7 @@ dependencies = [ "serde_urlencoded", "sha-1", "slab", "time", "time 0.2.18", ] [[package]] Loading Loading @@ -330,7 +330,7 @@ dependencies = [ "serde_json", "serde_urlencoded", "socket2", "time", "time 0.2.18", "tinyvec", "url", ] Loading Loading @@ -595,6 +595,18 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" [[package]] name = "chrono" version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "942f72db697d8767c22d46a598e01f2d3b475501ea43d0db4f16d90259182d0b" dependencies = [ "num-integer", "num-traits", "serde", "time 0.1.44", ] [[package]] name = "clap" version = "2.33.3" Loading Loading @@ -632,7 +644,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1373a16a4937bc34efec7b391f9c1500c30b8478a701a4f44c9165cc0475a6e0" dependencies = [ "percent-encoding", "time", "time 0.2.18", "version_check 0.9.2", ] Loading Loading @@ -921,7 +933,7 @@ checksum = "fc587bc0ec293155d5bfa6b9891ec18a1e330c234f896ea47fbada4cadbe47e6" dependencies = [ "cfg-if", "libc", "wasi", "wasi 0.9.0+wasi-snapshot-preview1", ] [[package]] Loading Loading @@ -2115,6 +2127,17 @@ dependencies = [ "num_cpus", ] [[package]] name = "time" version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" dependencies = [ "libc", "wasi 0.10.0+wasi-snapshot-preview1", "winapi 0.3.9", ] [[package]] name = "time" version = "0.2.18" Loading Loading @@ -2453,6 +2476,12 @@ version = "0.9.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" [[package]] name = "wasi" version = "0.10.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" [[package]] name = "wasm-bindgen" version = "0.2.68" Loading Loading @@ -2533,6 +2562,7 @@ dependencies = [ name = "webrtc-audio-publishing" version = "0.1.0" dependencies = [ "chrono", "serde", "uuid", ] Loading @@ -2548,6 +2578,7 @@ dependencies = [ "actix-web", "actix-web-actors", "anyhow", "chrono", "env_logger", "futures", "glib", Loading common/Cargo.toml +1 −0 Original line number Diff line number Diff line Loading @@ -8,4 +8,5 @@ license = "MIT" [dependencies] serde = "1" uuid = { version = "0.8", features = ["serde"] } chrono = { version = "0.4", features = ["serde"] } common/src/api.rs +3 −0 Original line number Diff line number Diff line Loading @@ -16,4 +16,7 @@ pub struct Room { pub id: uuid::Uuid, pub name: String, pub description: Option<String>, pub number_of_subscribers: u32, #[serde(with = "chrono::serde::ts_seconds")] pub creation_date: chrono::DateTime<chrono::Utc>, } server/Cargo.toml +1 −0 Original line number Diff line number Diff line Loading @@ -27,4 +27,5 @@ serde = "1" serde_json = "1" structopt = "0.3" uuid = { version = "0.8", features = ["v4"] } chrono = "0.4" webrtc-audio-publishing = { path = "../common" } server/src/api.rs +2 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,8 @@ pub async fn rooms(rooms: web::Data<Addr<Rooms>>) -> Result<HttpResponse, actix_ id: room_desc.id.0, name: room_desc.name.clone(), description: room_desc.description.clone(), creation_date: room_desc.creation_date, number_of_subscribers: room_desc.number_of_subscribers, }); } Loading Loading
Cargo.lock +35 −4 Original line number Diff line number Diff line Loading @@ -143,7 +143,7 @@ dependencies = [ "serde_urlencoded", "sha-1", "slab", "time", "time 0.2.18", ] [[package]] Loading Loading @@ -330,7 +330,7 @@ dependencies = [ "serde_json", "serde_urlencoded", "socket2", "time", "time 0.2.18", "tinyvec", "url", ] Loading Loading @@ -595,6 +595,18 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" [[package]] name = "chrono" version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "942f72db697d8767c22d46a598e01f2d3b475501ea43d0db4f16d90259182d0b" dependencies = [ "num-integer", "num-traits", "serde", "time 0.1.44", ] [[package]] name = "clap" version = "2.33.3" Loading Loading @@ -632,7 +644,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1373a16a4937bc34efec7b391f9c1500c30b8478a701a4f44c9165cc0475a6e0" dependencies = [ "percent-encoding", "time", "time 0.2.18", "version_check 0.9.2", ] Loading Loading @@ -921,7 +933,7 @@ checksum = "fc587bc0ec293155d5bfa6b9891ec18a1e330c234f896ea47fbada4cadbe47e6" dependencies = [ "cfg-if", "libc", "wasi", "wasi 0.9.0+wasi-snapshot-preview1", ] [[package]] Loading Loading @@ -2115,6 +2127,17 @@ dependencies = [ "num_cpus", ] [[package]] name = "time" version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" dependencies = [ "libc", "wasi 0.10.0+wasi-snapshot-preview1", "winapi 0.3.9", ] [[package]] name = "time" version = "0.2.18" Loading Loading @@ -2453,6 +2476,12 @@ version = "0.9.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" [[package]] name = "wasi" version = "0.10.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" [[package]] name = "wasm-bindgen" version = "0.2.68" Loading Loading @@ -2533,6 +2562,7 @@ dependencies = [ name = "webrtc-audio-publishing" version = "0.1.0" dependencies = [ "chrono", "serde", "uuid", ] Loading @@ -2548,6 +2578,7 @@ dependencies = [ "actix-web", "actix-web-actors", "anyhow", "chrono", "env_logger", "futures", "glib", Loading
common/Cargo.toml +1 −0 Original line number Diff line number Diff line Loading @@ -8,4 +8,5 @@ license = "MIT" [dependencies] serde = "1" uuid = { version = "0.8", features = ["serde"] } chrono = { version = "0.4", features = ["serde"] }
common/src/api.rs +3 −0 Original line number Diff line number Diff line Loading @@ -16,4 +16,7 @@ pub struct Room { pub id: uuid::Uuid, pub name: String, pub description: Option<String>, pub number_of_subscribers: u32, #[serde(with = "chrono::serde::ts_seconds")] pub creation_date: chrono::DateTime<chrono::Utc>, }
server/Cargo.toml +1 −0 Original line number Diff line number Diff line Loading @@ -27,4 +27,5 @@ serde = "1" serde_json = "1" structopt = "0.3" uuid = { version = "0.8", features = ["v4"] } chrono = "0.4" webrtc-audio-publishing = { path = "../common" }
server/src/api.rs +2 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,8 @@ pub async fn rooms(rooms: web::Data<Addr<Rooms>>) -> Result<HttpResponse, actix_ id: room_desc.id.0, name: room_desc.name.clone(), description: room_desc.description.clone(), creation_date: room_desc.creation_date, number_of_subscribers: room_desc.number_of_subscribers, }); } Loading