diff --git a/Cargo.toml b/Cargo.toml index 525413b..e4bc4e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ members = [ "rtc", "rtc-rtcp", "rtc-rtp", - "sctp", + "rtc-sctp", "rtc-sdp", "rtc-shared", "rtc-srtp", diff --git a/data/Cargo.toml b/data/Cargo.toml index 4889398..6464f90 100644 --- a/data/Cargo.toml +++ b/data/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT/Apache-2.0" [dependencies] shared = { path = "../rtc-shared", package = "rtc-shared", default-features = false, features = ["marshal"] } -sctp = { path = "../sctp", package = "sctp" } +sctp = { path = "../rtc-sctp", package = "rtc-sctp" } bytes = "1" log = "0.4.16" diff --git a/rtc-sctp/Cargo.toml b/rtc-sctp/Cargo.toml new file mode 100644 index 0000000..cf1844b --- /dev/null +++ b/rtc-sctp/Cargo.toml @@ -0,0 +1,26 @@ +[package] +name = "rtc-sctp" +version = "0.1.0" +authors = ["Rain Liu "] +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" + +[dependencies] +shared = { version = "0.1", path = "../rtc-shared", package = "rtc-shared", default-features = false, features = [] } + +retty = "0.24" +bytes = "1" +fxhash = "0.2" +rand = "0.8" +slab = "0.4" +thiserror = "1" +log = "0.4" +crc = "3" + +[dev-dependencies] +assert_matches = "1" +lazy_static = "1" diff --git a/sctp/LICENSE-APACHE b/rtc-sctp/LICENSE-APACHE similarity index 100% rename from sctp/LICENSE-APACHE rename to rtc-sctp/LICENSE-APACHE diff --git a/sctp/LICENSE-MIT b/rtc-sctp/LICENSE-MIT similarity index 100% rename from sctp/LICENSE-MIT rename to rtc-sctp/LICENSE-MIT diff --git a/sctp/README.md b/rtc-sctp/README.md similarity index 100% rename from sctp/README.md rename to rtc-sctp/README.md diff --git a/sctp/doc/webrtc.rs.png b/rtc-sctp/doc/webrtc.rs.png similarity index 100% rename from sctp/doc/webrtc.rs.png rename to rtc-sctp/doc/webrtc.rs.png diff --git a/sctp/src/association/association_test.rs b/rtc-sctp/src/association/association_test.rs similarity index 100% rename from sctp/src/association/association_test.rs rename to rtc-sctp/src/association/association_test.rs diff --git a/sctp/src/association/mod.rs b/rtc-sctp/src/association/mod.rs similarity index 100% rename from sctp/src/association/mod.rs rename to rtc-sctp/src/association/mod.rs diff --git a/sctp/src/association/state.rs b/rtc-sctp/src/association/state.rs similarity index 100% rename from sctp/src/association/state.rs rename to rtc-sctp/src/association/state.rs diff --git a/sctp/src/association/stats.rs b/rtc-sctp/src/association/stats.rs similarity index 100% rename from sctp/src/association/stats.rs rename to rtc-sctp/src/association/stats.rs diff --git a/sctp/src/association/stream.rs b/rtc-sctp/src/association/stream.rs similarity index 100% rename from sctp/src/association/stream.rs rename to rtc-sctp/src/association/stream.rs diff --git a/sctp/src/association/timer.rs b/rtc-sctp/src/association/timer.rs similarity index 100% rename from sctp/src/association/timer.rs rename to rtc-sctp/src/association/timer.rs diff --git a/sctp/src/chunk/chunk_abort.rs b/rtc-sctp/src/chunk/chunk_abort.rs similarity index 100% rename from sctp/src/chunk/chunk_abort.rs rename to rtc-sctp/src/chunk/chunk_abort.rs diff --git a/sctp/src/chunk/chunk_cookie_ack.rs b/rtc-sctp/src/chunk/chunk_cookie_ack.rs similarity index 100% rename from sctp/src/chunk/chunk_cookie_ack.rs rename to rtc-sctp/src/chunk/chunk_cookie_ack.rs diff --git a/sctp/src/chunk/chunk_cookie_echo.rs b/rtc-sctp/src/chunk/chunk_cookie_echo.rs similarity index 100% rename from sctp/src/chunk/chunk_cookie_echo.rs rename to rtc-sctp/src/chunk/chunk_cookie_echo.rs diff --git a/sctp/src/chunk/chunk_error.rs b/rtc-sctp/src/chunk/chunk_error.rs similarity index 100% rename from sctp/src/chunk/chunk_error.rs rename to rtc-sctp/src/chunk/chunk_error.rs diff --git a/sctp/src/chunk/chunk_forward_tsn.rs b/rtc-sctp/src/chunk/chunk_forward_tsn.rs similarity index 100% rename from sctp/src/chunk/chunk_forward_tsn.rs rename to rtc-sctp/src/chunk/chunk_forward_tsn.rs diff --git a/sctp/src/chunk/chunk_header.rs b/rtc-sctp/src/chunk/chunk_header.rs similarity index 100% rename from sctp/src/chunk/chunk_header.rs rename to rtc-sctp/src/chunk/chunk_header.rs diff --git a/sctp/src/chunk/chunk_heartbeat.rs b/rtc-sctp/src/chunk/chunk_heartbeat.rs similarity index 100% rename from sctp/src/chunk/chunk_heartbeat.rs rename to rtc-sctp/src/chunk/chunk_heartbeat.rs diff --git a/sctp/src/chunk/chunk_heartbeat_ack.rs b/rtc-sctp/src/chunk/chunk_heartbeat_ack.rs similarity index 100% rename from sctp/src/chunk/chunk_heartbeat_ack.rs rename to rtc-sctp/src/chunk/chunk_heartbeat_ack.rs diff --git a/sctp/src/chunk/chunk_init.rs b/rtc-sctp/src/chunk/chunk_init.rs similarity index 100% rename from sctp/src/chunk/chunk_init.rs rename to rtc-sctp/src/chunk/chunk_init.rs diff --git a/sctp/src/chunk/chunk_payload_data.rs b/rtc-sctp/src/chunk/chunk_payload_data.rs similarity index 100% rename from sctp/src/chunk/chunk_payload_data.rs rename to rtc-sctp/src/chunk/chunk_payload_data.rs diff --git a/sctp/src/chunk/chunk_reconfig.rs b/rtc-sctp/src/chunk/chunk_reconfig.rs similarity index 100% rename from sctp/src/chunk/chunk_reconfig.rs rename to rtc-sctp/src/chunk/chunk_reconfig.rs diff --git a/sctp/src/chunk/chunk_selective_ack.rs b/rtc-sctp/src/chunk/chunk_selective_ack.rs similarity index 100% rename from sctp/src/chunk/chunk_selective_ack.rs rename to rtc-sctp/src/chunk/chunk_selective_ack.rs diff --git a/sctp/src/chunk/chunk_shutdown.rs b/rtc-sctp/src/chunk/chunk_shutdown.rs similarity index 100% rename from sctp/src/chunk/chunk_shutdown.rs rename to rtc-sctp/src/chunk/chunk_shutdown.rs diff --git a/sctp/src/chunk/chunk_shutdown_ack.rs b/rtc-sctp/src/chunk/chunk_shutdown_ack.rs similarity index 100% rename from sctp/src/chunk/chunk_shutdown_ack.rs rename to rtc-sctp/src/chunk/chunk_shutdown_ack.rs diff --git a/sctp/src/chunk/chunk_shutdown_complete.rs b/rtc-sctp/src/chunk/chunk_shutdown_complete.rs similarity index 100% rename from sctp/src/chunk/chunk_shutdown_complete.rs rename to rtc-sctp/src/chunk/chunk_shutdown_complete.rs diff --git a/sctp/src/chunk/chunk_test.rs b/rtc-sctp/src/chunk/chunk_test.rs similarity index 100% rename from sctp/src/chunk/chunk_test.rs rename to rtc-sctp/src/chunk/chunk_test.rs diff --git a/sctp/src/chunk/chunk_type.rs b/rtc-sctp/src/chunk/chunk_type.rs similarity index 100% rename from sctp/src/chunk/chunk_type.rs rename to rtc-sctp/src/chunk/chunk_type.rs diff --git a/sctp/src/chunk/mod.rs b/rtc-sctp/src/chunk/mod.rs similarity index 100% rename from sctp/src/chunk/mod.rs rename to rtc-sctp/src/chunk/mod.rs diff --git a/sctp/src/config.rs b/rtc-sctp/src/config.rs similarity index 100% rename from sctp/src/config.rs rename to rtc-sctp/src/config.rs diff --git a/sctp/src/endpoint/endpoint_test.rs b/rtc-sctp/src/endpoint/endpoint_test.rs similarity index 100% rename from sctp/src/endpoint/endpoint_test.rs rename to rtc-sctp/src/endpoint/endpoint_test.rs diff --git a/sctp/src/endpoint/mod.rs b/rtc-sctp/src/endpoint/mod.rs similarity index 100% rename from sctp/src/endpoint/mod.rs rename to rtc-sctp/src/endpoint/mod.rs diff --git a/sctp/src/lib.rs b/rtc-sctp/src/lib.rs similarity index 100% rename from sctp/src/lib.rs rename to rtc-sctp/src/lib.rs diff --git a/sctp/src/packet.rs b/rtc-sctp/src/packet.rs similarity index 100% rename from sctp/src/packet.rs rename to rtc-sctp/src/packet.rs diff --git a/sctp/src/param/mod.rs b/rtc-sctp/src/param/mod.rs similarity index 100% rename from sctp/src/param/mod.rs rename to rtc-sctp/src/param/mod.rs diff --git a/sctp/src/param/param_chunk_list.rs b/rtc-sctp/src/param/param_chunk_list.rs similarity index 100% rename from sctp/src/param/param_chunk_list.rs rename to rtc-sctp/src/param/param_chunk_list.rs diff --git a/sctp/src/param/param_forward_tsn_supported.rs b/rtc-sctp/src/param/param_forward_tsn_supported.rs similarity index 100% rename from sctp/src/param/param_forward_tsn_supported.rs rename to rtc-sctp/src/param/param_forward_tsn_supported.rs diff --git a/sctp/src/param/param_header.rs b/rtc-sctp/src/param/param_header.rs similarity index 100% rename from sctp/src/param/param_header.rs rename to rtc-sctp/src/param/param_header.rs diff --git a/sctp/src/param/param_heartbeat_info.rs b/rtc-sctp/src/param/param_heartbeat_info.rs similarity index 100% rename from sctp/src/param/param_heartbeat_info.rs rename to rtc-sctp/src/param/param_heartbeat_info.rs diff --git a/sctp/src/param/param_outgoing_reset_request.rs b/rtc-sctp/src/param/param_outgoing_reset_request.rs similarity index 100% rename from sctp/src/param/param_outgoing_reset_request.rs rename to rtc-sctp/src/param/param_outgoing_reset_request.rs diff --git a/sctp/src/param/param_random.rs b/rtc-sctp/src/param/param_random.rs similarity index 100% rename from sctp/src/param/param_random.rs rename to rtc-sctp/src/param/param_random.rs diff --git a/sctp/src/param/param_reconfig_response.rs b/rtc-sctp/src/param/param_reconfig_response.rs similarity index 100% rename from sctp/src/param/param_reconfig_response.rs rename to rtc-sctp/src/param/param_reconfig_response.rs diff --git a/sctp/src/param/param_requested_hmac_algorithm.rs b/rtc-sctp/src/param/param_requested_hmac_algorithm.rs similarity index 100% rename from sctp/src/param/param_requested_hmac_algorithm.rs rename to rtc-sctp/src/param/param_requested_hmac_algorithm.rs diff --git a/sctp/src/param/param_state_cookie.rs b/rtc-sctp/src/param/param_state_cookie.rs similarity index 100% rename from sctp/src/param/param_state_cookie.rs rename to rtc-sctp/src/param/param_state_cookie.rs diff --git a/sctp/src/param/param_supported_extensions.rs b/rtc-sctp/src/param/param_supported_extensions.rs similarity index 100% rename from sctp/src/param/param_supported_extensions.rs rename to rtc-sctp/src/param/param_supported_extensions.rs diff --git a/sctp/src/param/param_test.rs b/rtc-sctp/src/param/param_test.rs similarity index 100% rename from sctp/src/param/param_test.rs rename to rtc-sctp/src/param/param_test.rs diff --git a/sctp/src/param/param_type.rs b/rtc-sctp/src/param/param_type.rs similarity index 100% rename from sctp/src/param/param_type.rs rename to rtc-sctp/src/param/param_type.rs diff --git a/sctp/src/queue/mod.rs b/rtc-sctp/src/queue/mod.rs similarity index 100% rename from sctp/src/queue/mod.rs rename to rtc-sctp/src/queue/mod.rs diff --git a/sctp/src/queue/payload_queue.rs b/rtc-sctp/src/queue/payload_queue.rs similarity index 100% rename from sctp/src/queue/payload_queue.rs rename to rtc-sctp/src/queue/payload_queue.rs diff --git a/sctp/src/queue/pending_queue.rs b/rtc-sctp/src/queue/pending_queue.rs similarity index 100% rename from sctp/src/queue/pending_queue.rs rename to rtc-sctp/src/queue/pending_queue.rs diff --git a/sctp/src/queue/queue_test.rs b/rtc-sctp/src/queue/queue_test.rs similarity index 100% rename from sctp/src/queue/queue_test.rs rename to rtc-sctp/src/queue/queue_test.rs diff --git a/sctp/src/queue/reassembly_queue.rs b/rtc-sctp/src/queue/reassembly_queue.rs similarity index 100% rename from sctp/src/queue/reassembly_queue.rs rename to rtc-sctp/src/queue/reassembly_queue.rs diff --git a/sctp/src/shared.rs b/rtc-sctp/src/shared.rs similarity index 100% rename from sctp/src/shared.rs rename to rtc-sctp/src/shared.rs diff --git a/sctp/src/util.rs b/rtc-sctp/src/util.rs similarity index 100% rename from sctp/src/util.rs rename to rtc-sctp/src/util.rs diff --git a/sctp/Cargo.toml b/sctp/Cargo.toml deleted file mode 100644 index 864720b..0000000 --- a/sctp/Cargo.toml +++ /dev/null @@ -1,23 +0,0 @@ -[package] -name = "sctp" -version = "0.0.0" -authors = ["Rain Liu "] -edition = "2021" -description = "SCTP in Rust" -license = "MIT/Apache-2.0" - -[dependencies] -shared = { path = "../rtc-shared", package = "rtc-shared", default-features = false, features = [] } - -retty = "0.24.0" -bytes = "1.4.0" -fxhash = "0.2.1" -rand = "0.8.5" -slab = "0.4.7" -thiserror = "1.0.38" -log = "0.4.17" -crc = "3.0.1" - -[dev-dependencies] -assert_matches = "1.5.0" -lazy_static = "1.4.0"