webrtc: Rename signaller and protocol crates

This commit is contained in:
Thibault Saunier 2022-10-20 12:37:47 +02:00
parent 25bda89ac8
commit 71ed04d89b
6 changed files with 8 additions and 8 deletions

View file

@ -27,7 +27,7 @@ async-tungstenite = { version = "0.17", features = ["async-std-runtime", "async-
serde = "1" serde = "1"
serde_json = "1" serde_json = "1"
fastrand = "1.0" fastrand = "1.0"
webrtcsink-protocol = { version = "0.1", path="protocol" } gst_plugin_webrtc_protocol = { version = "0.1", path="protocol", package = "gst-plugin-webrtc-signalling-protocol" }
human_bytes = "0.3.1" human_bytes = "0.3.1"
[dev-dependencies] [dev-dependencies]

View file

@ -1,5 +1,5 @@
[package] [package]
name="webrtcsink-protocol" name="gst-plugin-webrtc-signalling-protocol"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mathieu Duponchelle <mathieu@centricular.com>"] authors = ["Mathieu Duponchelle <mathieu@centricular.com>"]

View file

@ -1,5 +1,5 @@
[package] [package]
name="webrtcsink-signalling" name="gst-plugin-webrtc-signalling"
version = "0.1.0" version = "0.1.0"
edition = "2018" edition = "2018"
authors = ["Mathieu Duponchelle <mathieu@centricular.com>"] authors = ["Mathieu Duponchelle <mathieu@centricular.com>"]
@ -23,4 +23,4 @@ uuid = { version = "1", features = ["v4"] }
thiserror = "1" thiserror = "1"
test-log = { version = "0.2", features = ["trace"], default-features = false } test-log = { version = "0.2", features = ["trace"], default-features = false }
pin-project-lite = "0.2" pin-project-lite = "0.2"
webrtcsink-protocol = { version = "0.1", path="../protocol" } gst_plugin_webrtc_protocol = { version = "0.1", path="../protocol", package = "gst-plugin-webrtc-signalling-protocol" }

View file

@ -2,9 +2,9 @@
use async_std::task; use async_std::task;
use clap::Parser; use clap::Parser;
use gst_plugin_webrtc_signalling::handlers::Handler;
use gst_plugin_webrtc_signalling::server::Server;
use tracing_subscriber::prelude::*; use tracing_subscriber::prelude::*;
use webrtcsink_signalling::handlers::Handler;
use webrtcsink_signalling::server::Server;
use anyhow::Error; use anyhow::Error;
use async_native_tls::TlsAcceptor; use async_native_tls::TlsAcceptor;

View file

@ -4,6 +4,7 @@ use anyhow::{anyhow, Error};
use anyhow::{bail, Context}; use anyhow::{bail, Context};
use futures::prelude::*; use futures::prelude::*;
use futures::ready; use futures::ready;
use gst_plugin_webrtc_protocol as p;
use p::PeerStatus; use p::PeerStatus;
use pin_project_lite::pin_project; use pin_project_lite::pin_project;
use std::collections::{HashMap, HashSet, VecDeque}; use std::collections::{HashMap, HashSet, VecDeque};
@ -11,7 +12,6 @@ use std::pin::Pin;
use std::task::{Context as TaskContext, Poll}; use std::task::{Context as TaskContext, Poll};
use tracing::log::error; use tracing::log::error;
use tracing::{info, instrument, warn}; use tracing::{info, instrument, warn};
use webrtcsink_protocol as p;
type PeerId = String; type PeerId = String;

View file

@ -10,11 +10,11 @@ use gst::glib::prelude::*;
use gst::glib::{self, Type}; use gst::glib::{self, Type};
use gst::prelude::*; use gst::prelude::*;
use gst::subclass::prelude::*; use gst::subclass::prelude::*;
use gst_plugin_webrtc_protocol as p;
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
use std::collections::HashMap; use std::collections::HashMap;
use std::path::PathBuf; use std::path::PathBuf;
use std::sync::Mutex; use std::sync::Mutex;
use webrtcsink_protocol as p;
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new( gst::DebugCategory::new(