From 76af539d6ef2a2f45514c6ef1d0cf5f2118cf8e0 Mon Sep 17 00:00:00 2001 From: wy Date: Tue, 13 Jan 2026 01:02:05 +0800 Subject: [PATCH] Improve Rust crate SEO, onboarding, and docs.rs config\n\n- Enhanced Cargo.toml description, keywords, and docs.rs metadata for discoverability\n- Improved README onboarding, clarified package/crate naming, and added searchable keywords\n- Validated with cargo publish --dry-run\n\nNo code logic changes. See #branding #SEO #docs --- bindings/rust/Cargo.toml | 10 ++++++++-- bindings/rust/README.md | 10 ++++++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/bindings/rust/Cargo.toml b/bindings/rust/Cargo.toml index 1ab852d..1ccde03 100644 --- a/bindings/rust/Cargo.toml +++ b/bindings/rust/Cargo.toml @@ -5,14 +5,20 @@ edition = "2021" rust-version = "1.65" authors = ["wysaid "] 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] diff --git a/bindings/rust/README.md b/bindings/rust/README.md index bd49e65..8d730e3 100644 --- a/bindings/rust/README.md +++ b/bindings/rust/README.md @@ -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 @@ -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]