File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ If you prefer using `ccap` as the crate name in code (recommended):
2121``` toml
2222[dependencies ]
2323ccap = { package = " ccap-rs" , version = " <latest>" }
24-
25- # Optional: async/await support
26- ccap = { package = " ccap-rs" , version = " <latest>" , features = [" async" ] }
2724```
2825
2926### Minimal example
@@ -54,7 +51,6 @@ fn main() -> Result<()> {
5451- ` static-link ` : link against a pre-built static library from a CameraCapture checkout.
5552 - Best for development when you are working on both C/C++ and Rust.
5653 - If the build script cannot find the repo root automatically, set ` CCAP_SOURCE_DIR ` .
57- - ` async ` : enables ` ccap::r#async::* ` and pulls ` tokio ` /` futures ` dependencies.
5854
5955## Build notes
6056
Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ cargo add ccap-rs
2121``` toml
2222[dependencies ]
2323ccap = { package = " ccap-rs" , version = " <latest>" }
24-
25- # 可选:async/await 支持
26- ccap = { package = " ccap-rs" , version = " <latest>" , features = [" async" ] }
2724```
2825
2926### 最小示例
@@ -54,7 +51,7 @@ fn main() -> Result<()> {
5451- ` static-link ` :链接到 CameraCapture 源码仓库下预先编译好的静态库。
5552 - 更适合开发阶段(同时改 C/C++ 与 Rust)。
5653 - 若构建脚本无法自动定位仓库根目录,可设置 ` CCAP_SOURCE_DIR ` 。
57- - ` async ` :启用 ` ccap::r#async::* ` ,并引入 ` tokio ` / ` futures ` 依赖。
54+
5855
5956## 构建说明
6057
You can’t perform that action at this time.
0 commit comments