Skip to content

Commit

Permalink
Fix links and add cargo doc to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Dec 18, 2023
1 parent 49c8f24 commit ba6a302
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/mediasoup-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,10 @@ jobs:

- name: cargo test
run: cargo test --verbose

- name: cargo doc
run: cargo doc --locked --all --no-deps --lib
env:
DOCS_RS: '1'
RUSTDOCFLAGS: '-D rustdoc::broken-intra-doc-links -D rustdoc::private_intra_doc_links'

5 changes: 2 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/src/data_structures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl AppData {
}
}

/// Listening protocol, IP and port for [`WebRtcServer`] to listen on.
/// Listening protocol, IP and port for [`WebRtcServer`](crate::webrtc_server::WebRtcServer) to listen on.
///
/// # Notes on usage
/// If you use "0.0.0.0" or "::" as ip value, then you need to also provide `announced_ip`.
Expand Down
2 changes: 1 addition & 1 deletion rust/src/router/data_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ impl DataConsumer {
}

/// Callback is called when the associated data producer is resumed.
pub fn on_producer_resume<F: Fn() + Send + Sync + 'static>(&self, callback: F) -> HandlerId {
pub fn on_data_producer_resume<F: Fn() + Send + Sync + 'static>(&self, callback: F) -> HandlerId {
self.inner()
.handlers
.data_producer_resume
Expand Down

0 comments on commit ba6a302

Please sign in to comment.