Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions bindings/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@ edition = "2021"
rust-version = "1.65"
authors = ["wysaid <this@wysaid.org>"]
license = "MIT"
description = "Rust bindings for ccap - A high-performance, lightweight cross-platform camera capture library"
description = "Rust bindings for ccap cross-platform webcam/camera capture with hardware-accelerated pixel format conversion (DirectShow/AVFoundation/V4L2)"
homepage = "https://ccap.work"
repository = "https://github.com/wysaid/CameraCapture"
documentation = "https://docs.rs/ccap-rs"
readme = "README.md"
keywords = ["camera", "capture", "v4l2", "directshow", "avfoundation"]
keywords = ["camera", "capture", "ccap", "webcam", "video"]
categories = ["multimedia::video", "api-bindings"]

[package.metadata.docs.rs]
# docs.rs builds on Linux; explicitly build in the crates.io-friendly mode.
no-default-features = true
features = ["build-source"]
targets = ["x86_64-unknown-linux-gnu"]



[lib]
Expand Down
10 changes: 6 additions & 4 deletions bindings/rust/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# ccap-rs - Rust Bindings for CameraCapture
# ccap-rs (CameraCapture / ccap Rust Bindings)

[![Crates.io](https://img.shields.io/crates/v/ccap-rs.svg)](https://crates.io/crates/ccap-rs)
[![Documentation](https://docs.rs/ccap-rs/badge.svg)](https://docs.rs/ccap-rs)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Safe Rust bindings for [ccap](https://github.com/wysaid/CameraCapture) - A high-performance, lightweight cross-platform camera capture library with hardware-accelerated pixel format conversion.
Safe Rust bindings for [CameraCapture (ccap)](https://github.com/wysaid/CameraCapture) — a high-performance, lightweight, cross-platform **webcam/camera capture** library with **hardware-accelerated pixel format conversion** (Windows DirectShow, macOS/iOS AVFoundation, Linux V4L2).

> Note: The published *package* name on crates.io is `ccap-rs`, but the *crate name in code* is `ccap`.

## Features

Expand All @@ -18,13 +20,13 @@ Safe Rust bindings for [ccap](https://github.com/wysaid/CameraCapture) - A high-

### Add dependency

Recommended (always gets the latest published version):
Option A (simple):

```bash
cargo add ccap-rs
```

If you want the crate name in code to be `ccap` (recommended), set it explicitly in your `Cargo.toml`:
Option B (recommended): keep the crate name as `ccap` in your code:

```toml
[dependencies]
Expand Down
Loading