diff --git a/Cargo.toml b/Cargo.toml index 50ad364..806f24b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,6 @@ [workspace] members = [ + "ortc", "rtc", "rtc-datachannel", "rtc-dtls", diff --git a/ortc/Cargo.toml b/ortc/Cargo.toml new file mode 100644 index 0000000..7e9dd6d --- /dev/null +++ b/ortc/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "ortc" +version = "0.0.0" +authors = ["Rusty Rain "] +edition = "2021" +description = "OpenRTC or ObjectRTC?" +license = "MIT/Apache-2.0" +documentation = "https://docs.rs/ortc" +repository = "https://github.com/webrtc-rs/ortc" +homepage = "https://ortc.rs" +keywords = ["networking", "protocols", "webrtc", "sans-io", "rtc"] +categories = ["network-programming", "asynchronous", "multimedia"] + +[dependencies] diff --git a/ortc/LICENSE b/ortc/LICENSE new file mode 100644 index 0000000..07d575a --- /dev/null +++ b/ortc/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 ngRTC + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/ortc/README.md b/ortc/README.md new file mode 100644 index 0000000..43c60d9 --- /dev/null +++ b/ortc/README.md @@ -0,0 +1,2 @@ +# ortc +OpenRTC or ObjectRTC? diff --git a/ortc/src/lib.rs b/ortc/src/lib.rs new file mode 100644 index 0000000..b93cf3f --- /dev/null +++ b/ortc/src/lib.rs @@ -0,0 +1,14 @@ +pub fn add(left: u64, right: u64) -> u64 { + left + right +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn it_works() { + let result = add(2, 2); + assert_eq!(result, 4); + } +} diff --git a/reserved/rtc-interceptor/Cargo.toml b/reserved/rtc-interceptor/Cargo.toml index b0b8e6d..fccd750 100644 --- a/reserved/rtc-interceptor/Cargo.toml +++ b/reserved/rtc-interceptor/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC Interceptor in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-interceptor" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [dependencies] diff --git a/reserved/rtc-mdns/Cargo.toml b/reserved/rtc-mdns/Cargo.toml index 52ce5c0..865cd60 100644 --- a/reserved/rtc-mdns/Cargo.toml +++ b/reserved/rtc-mdns/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC mDNS in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-mdns" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [dependencies] diff --git a/reserved/rtc-media/Cargo.toml b/reserved/rtc-media/Cargo.toml index 7beb769..7403244 100644 --- a/reserved/rtc-media/Cargo.toml +++ b/reserved/rtc-media/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC Media in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-media" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [dependencies] diff --git a/rtc-datachannel/Cargo.toml b/rtc-datachannel/Cargo.toml index 6b2184d..f8203e0 100644 --- a/rtc-datachannel/Cargo.toml +++ b/rtc-datachannel/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC DataChannel in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-datachannel" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [dependencies] shared = { version = "0.2.0", path = "../rtc-shared", package = "rtc-shared", default-features = false, features = ["marshal"] } diff --git a/rtc-dtls/Cargo.toml b/rtc-dtls/Cargo.toml index 861518e..6920440 100644 --- a/rtc-dtls/Cargo.toml +++ b/rtc-dtls/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC DTLS in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-dtls" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [dependencies] shared = { version = "0.2.0", path = "../rtc-shared", package = "rtc-shared", default-features = false, features = ["crypto", "replay"] } diff --git a/rtc-ice/Cargo.toml b/rtc-ice/Cargo.toml index 3794202..72f6b6e 100644 --- a/rtc-ice/Cargo.toml +++ b/rtc-ice/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC ICE in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-ice" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [dependencies] shared = { version = "0.2.0", path = "../rtc-shared", package = "rtc-shared", default-features = false, features = [] } diff --git a/rtc-rtcp/Cargo.toml b/rtc-rtcp/Cargo.toml index ddc03d2..e11fffc 100644 --- a/rtc-rtcp/Cargo.toml +++ b/rtc-rtcp/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC RTCP in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-rtcp" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [dependencies] shared = { version = "0.2.0", path = "../rtc-shared", package = "rtc-shared", default-features = false, features = ["marshal"] } diff --git a/rtc-rtp/Cargo.toml b/rtc-rtp/Cargo.toml index c968160..3458e18 100644 --- a/rtc-rtp/Cargo.toml +++ b/rtc-rtp/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC RTP in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-rtp" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [dependencies] shared = { version = "0.2.0", path = "../rtc-shared", package = "rtc-shared", default-features = false, features = ["marshal"] } diff --git a/rtc-sctp/Cargo.toml b/rtc-sctp/Cargo.toml index 7a14d00..63d02dd 100644 --- a/rtc-sctp/Cargo.toml +++ b/rtc-sctp/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC SCTP in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-sctp" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [dependencies] shared = { version = "0.2.0", path = "../rtc-shared", package = "rtc-shared", default-features = false, features = [] } diff --git a/rtc-sdp/Cargo.toml b/rtc-sdp/Cargo.toml index 05ee49c..a9c521b 100644 --- a/rtc-sdp/Cargo.toml +++ b/rtc-sdp/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC SDP in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-sdp" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [dependencies] shared = { version = "0.2.1", path = "../rtc-shared", package = "rtc-shared", default-features = false, features = [] } diff --git a/rtc-shared/Cargo.toml b/rtc-shared/Cargo.toml index b752da9..04be4ec 100644 --- a/rtc-shared/Cargo.toml +++ b/rtc-shared/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC Shared in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-shared" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [features] default = ["crypto", "marshal", "replay"] diff --git a/rtc-srtp/Cargo.toml b/rtc-srtp/Cargo.toml index 2fc5c60..6721fd7 100644 --- a/rtc-srtp/Cargo.toml +++ b/rtc-srtp/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC SRTP in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-srtp" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [dependencies] shared = { version = "0.2.0", path = "../rtc-shared", package = "rtc-shared", default-features = false, features = ["crypto", "marshal", "replay"] } diff --git a/rtc-stun/Cargo.toml b/rtc-stun/Cargo.toml index 9b1bafc..8301f43 100644 --- a/rtc-stun/Cargo.toml +++ b/rtc-stun/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC STUN in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-stun" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [features] default = [] diff --git a/rtc-turn/Cargo.toml b/rtc-turn/Cargo.toml index cdf2a1a..d124a09 100644 --- a/rtc-turn/Cargo.toml +++ b/rtc-turn/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC TURN in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc-turn" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" [dependencies] shared = { version = "0.2.0", path = "../rtc-shared", package = "rtc-shared", default-features = false, features = [] } diff --git a/rtc/Cargo.toml b/rtc/Cargo.toml index b30a7e7..263b23c 100644 --- a/rtc/Cargo.toml +++ b/rtc/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" description = "RTC in Rust" license = "MIT/Apache-2.0" documentation = "https://docs.rs/rtc" -homepage = "https://webrtc.rs" -repository = "https://github.com/webrtc-rs/rtc" +homepage = "https://ortc.rs" +repository = "https://github.com/webrtc-rs/ortc" readme = "../README.md" [dependencies]