Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
c5eb1b40
Unverified
提交
c5eb1b40
authored
12月 18, 2023
作者:
Iñaki Baz Castillo
提交者:
GitHub
12月 18, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix Rust docs build (#1271)
上级
f9c081c4
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
21 行增加
和
10 行删除
+21
-10
mediasoup-rust.yaml
.github/workflows/mediasoup-rust.yaml
+7
-0
Cargo.lock
Cargo.lock
+2
-3
CHANGELOG.md
rust/CHANGELOG.md
+2
-0
data_structures.rs
rust/src/data_structures.rs
+1
-1
data_consumer.rs
rust/src/router/data_consumer.rs
+4
-1
build.rs
worker/build.rs
+5
-5
没有找到文件。
.github/workflows/mediasoup-rust.yaml
浏览文件 @
c5eb1b40
...
@@ -46,3 +46,10 @@ jobs:
...
@@ -46,3 +46,10 @@ jobs:
-
name
:
cargo test
-
name
:
cargo test
run
:
cargo test --verbose
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'
Cargo.lock
浏览文件 @
c5eb1b40
...
@@ -1028,13 +1028,12 @@ checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0"
...
@@ -1028,13 +1028,12 @@ checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0"
[[package]]
[[package]]
name = "h264-profile-level-id"
name = "h264-profile-level-id"
version = "0.
1.1
"
version = "0.
2.0
"
source = "registry+https://github.com/rust-lang/crates.io-index"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
e12ebc03fc4f14b7ddc94da90cfb28ba3edee2d926798a9eef89f8a27bbdbca5
"
checksum = "
45d0dbf6a9847b64c9b06938660891f983434dcc009b5ae6a58f5e34af74a649
"
dependencies = [
dependencies = [
"bitpattern",
"bitpattern",
"log",
"log",
"once_cell",
"thiserror",
"thiserror",
]
]
...
...
rust/CHANGELOG.md
浏览文件 @
c5eb1b40
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
# NEXT
# NEXT
*
Update h264-profile-level-id dependency to 0.2.0.
*
Update h264-profile-level-id dependency to 0.2.0.
*
Fix docs build (PR #1271).
*
Rename
`data_consumer::on_producer_resume`
to
`data_consumer::on_data_producer_resume`
(PR #1271).
# 0.13.0
# 0.13.0
...
...
rust/src/data_structures.rs
浏览文件 @
c5eb1b40
...
@@ -45,7 +45,7 @@ impl AppData {
...
@@ -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
/// # Notes on usage
/// If you use "0.0.0.0" or "::" as ip value, then you need to also provide `announced_ip`.
/// If you use "0.0.0.0" or "::" as ip value, then you need to also provide `announced_ip`.
...
...
rust/src/router/data_consumer.rs
浏览文件 @
c5eb1b40
...
@@ -903,7 +903,10 @@ impl DataConsumer {
...
@@ -903,7 +903,10 @@ impl DataConsumer {
}
}
/// Callback is called when the associated data producer is resumed.
/// 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
()
self
.inner
()
.handlers
.handlers
.data_producer_resume
.data_producer_resume
...
...
worker/build.rs
浏览文件 @
c5eb1b40
...
@@ -2,11 +2,6 @@ use std::process::Command;
...
@@ -2,11 +2,6 @@ use std::process::Command;
use
std
::{
env
,
fs
};
use
std
::{
env
,
fs
};
fn
main
()
{
fn
main
()
{
if
env
::
var
(
"DOCS_RS"
)
.is_ok
()
{
// Skip everything when building docs on docs.rs
return
;
}
// On Windows Rust always links against release version of MSVC runtime, thus requires
// On Windows Rust always links against release version of MSVC runtime, thus requires
// Release build here
// Release build here
let
build_type
=
if
cfg!
(
all
(
debug_assertions
,
not
(
windows
)))
{
let
build_type
=
if
cfg!
(
all
(
debug_assertions
,
not
(
windows
)))
{
...
@@ -45,6 +40,11 @@ fn main() {
...
@@ -45,6 +40,11 @@ fn main() {
)
)
.expect
(
"Failed to write generated Rust flatbuffers into fbs.rs"
);
.expect
(
"Failed to write generated Rust flatbuffers into fbs.rs"
);
if
env
::
var
(
"DOCS_RS"
)
.is_ok
()
{
// Skip everything when building docs on docs.rs
return
;
}
// Force forward slashes on Windows too so that is plays well with our tasks.py
// Force forward slashes on Windows too so that is plays well with our tasks.py
let
mediasoup_out_dir
=
format!
(
"{}/out"
,
out_dir
.replace
(
'\\'
,
"/"
));
let
mediasoup_out_dir
=
format!
(
"{}/out"
,
out_dir
.replace
(
'\\'
,
"/"
));
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论