Skip to content

Commit

Permalink
add ortc and update ortc
Browse files Browse the repository at this point in the history
  • Loading branch information
yngrtc committed Dec 7, 2024
1 parent 993c65b commit f4d70cd
Show file tree
Hide file tree
Showing 20 changed files with 82 additions and 30 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[workspace]
members = [
"ortc",
"rtc",
"rtc-datachannel",
"rtc-dtls",
Expand Down
14 changes: 14 additions & 0 deletions ortc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "ortc"
version = "0.0.0"
authors = ["Rusty Rain <y@ngr.tc>"]
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]
21 changes: 21 additions & 0 deletions ortc/LICENSE
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 2 additions & 0 deletions ortc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ortc
OpenRTC or ObjectRTC?
14 changes: 14 additions & 0 deletions ortc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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);
}
}
4 changes: 2 additions & 2 deletions reserved/rtc-interceptor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
4 changes: 2 additions & 2 deletions reserved/rtc-mdns/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
4 changes: 2 additions & 2 deletions reserved/rtc-media/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
4 changes: 2 additions & 2 deletions rtc-datachannel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
4 changes: 2 additions & 2 deletions rtc-dtls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
4 changes: 2 additions & 2 deletions rtc-ice/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [] }
Expand Down
4 changes: 2 additions & 2 deletions rtc-rtcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
4 changes: 2 additions & 2 deletions rtc-rtp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
4 changes: 2 additions & 2 deletions rtc-sctp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [] }
Expand Down
4 changes: 2 additions & 2 deletions rtc-sdp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [] }
Expand Down
4 changes: 2 additions & 2 deletions rtc-shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 2 additions & 2 deletions rtc-srtp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
4 changes: 2 additions & 2 deletions rtc-stun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
4 changes: 2 additions & 2 deletions rtc-turn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [] }
Expand Down
4 changes: 2 additions & 2 deletions rtc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f4d70cd

Please sign in to comment.