Skip to content

Commit 8cf56cd

Browse files
committed
update
1 parent 2fa366e commit 8cf56cd

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

docs/content/rust-bindings.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ If you prefer using `ccap` as the crate name in code (recommended):
2121
```toml
2222
[dependencies]
2323
ccap = { 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

docs/content/rust-bindings.zh.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ cargo add ccap-rs
2121
```toml
2222
[dependencies]
2323
ccap = { 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

0 commit comments

Comments
 (0)