[PR #1351] [MERGED] Add rust library #2124

Closed
opened 2026-01-29 17:20:24 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/CCExtractor/ccextractor/pull/1351
Author: @PunitLodha
Created: 6/21/2021
Status: Merged
Merged: 6/26/2021
Merged by: @cfsmp3

Base: masterHead: rust_test


📝 Commits (10+)

📊 Changes

11 files changed (+564 additions, -0 deletions)

View changed files

📝 src/CMakeLists.txt (+14 -0)
📝 src/lib_ccx/CMakeLists.txt (+4 -0)
📝 src/lib_ccx/ccx_decoders_common.c (+12 -0)
📝 src/lib_ccx/params.c (+7 -0)
src/rust/CMakeLists.txt (+20 -0)
src/rust/Cargo.lock (+337 -0)
src/rust/Cargo.toml (+18 -0)
src/rust/build.rs (+24 -0)
src/rust/src/decoder/mod.rs (+95 -0)
src/rust/src/lib.rs (+30 -0)
src/rust/wrapper.h (+3 -0)

📄 Description

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.
  • I have mentioned this change in the changelog.

My familiarity with the project is as follows (check one):

  • I have never used CCExtractor.
  • I have used CCExtractor just a couple of times.
  • I absolutely love CCExtractor, but have not contributed previously.
  • I am an active contributor to CCExtractor.

Added rust library, bindings for C functions and types required for the 708 decoder
Also ported the dtvcc_process_data() function

Need to add:-

  • Documentation on how to build with rust library
  • Github action for building rust library and formatting using clippy

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/CCExtractor/ccextractor/pull/1351 **Author:** [@PunitLodha](https://github.com/PunitLodha) **Created:** 6/21/2021 **Status:** ✅ Merged **Merged:** 6/26/2021 **Merged by:** [@cfsmp3](https://github.com/cfsmp3) **Base:** `master` ← **Head:** `rust_test` --- ### 📝 Commits (10+) - [`c8307c7`](https://github.com/CCExtractor/ccextractor/commit/c8307c78aa3c3c75d3d0a7d5d8d58ffadaa1cdb0) Add rust lib - [`40a310d`](https://github.com/CCExtractor/ccextractor/commit/40a310d58c310ebb07b9996efbb44bbd5e9636e5) add steps for building rust lib - [`f0ee4c9`](https://github.com/CCExtractor/ccextractor/commit/f0ee4c9b98d7df38902f4ea86eee213aefa642a7) use rust lib - [`da0726a`](https://github.com/CCExtractor/ccextractor/commit/da0726a42fb3c73d463eb7a2ca78ffdf1889e8fe) add conditional flag for rust - [`a389846`](https://github.com/CCExtractor/ccextractor/commit/a389846ea80edb33e8083846b923c202ac6edacf) use cargo config.toml - [`f4cc43b`](https://github.com/CCExtractor/ccextractor/commit/f4cc43b32effea5c0d6272a55a55074c0720e432) add decoder module and update bindings - [`a17b43a`](https://github.com/CCExtractor/ccextractor/commit/a17b43a123f2f3db0f4cc54eb237ecbb8420f8d3) use match instead of if else - [`07e7448`](https://github.com/CCExtractor/ccextractor/commit/07e7448a1c1b67f13ac8737c7ed2f82d943fb9b1) add target directory flag - [`1143b06`](https://github.com/CCExtractor/ccextractor/commit/1143b0696d7c3711635f1a593a77ce3568cd6b06) add env_logger - [`d384789`](https://github.com/CCExtractor/ccextractor/commit/d384789d4e33d6460b66e4869e71f6072d6d2d72) use env_logger ### 📊 Changes **11 files changed** (+564 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/CMakeLists.txt` (+14 -0) 📝 `src/lib_ccx/CMakeLists.txt` (+4 -0) 📝 `src/lib_ccx/ccx_decoders_common.c` (+12 -0) 📝 `src/lib_ccx/params.c` (+7 -0) ➕ `src/rust/CMakeLists.txt` (+20 -0) ➕ `src/rust/Cargo.lock` (+337 -0) ➕ `src/rust/Cargo.toml` (+18 -0) ➕ `src/rust/build.rs` (+24 -0) ➕ `src/rust/src/decoder/mod.rs` (+95 -0) ➕ `src/rust/src/lib.rs` (+30 -0) ➕ `src/rust/wrapper.h` (+3 -0) </details> ### 📄 Description <!-- Please prefix your pull request with one of the following: **[FEATURE]** **[FIX]** **[IMPROVEMENT]**. --> **In raising this pull request, I confirm the following (please check boxes):** - [x] I have read and understood the [contributors guide](https://github.com/CCExtractor/ccextractor/blob/master/.github/CONTRIBUTING.md). - [x] I have checked that another pull request for this purpose does not exist. - [x] I have considered, and confirmed that this submission will be valuable to others. - [x] I accept that this submission may not be used, and the pull request closed at the will of the maintainer. - [x] I give this submission freely, and claim no ownership to its content. - [ ] **I have mentioned this change in the [changelog](https://github.com/CCExtractor/ccextractor/blob/master/docs/CHANGES.TXT).** **My familiarity with the project is as follows (check one):** - [ ] I have never used CCExtractor. - [ ] I have used CCExtractor just a couple of times. - [ ] I absolutely love CCExtractor, but have not contributed previously. - [x] I am an active contributor to CCExtractor. --- Added rust library, bindings for C functions and types required for the 708 decoder Also ported the dtvcc_process_data() function Need to add:- - [ ] Documentation on how to build with rust library - [ ] Github action for building rust library and formatting using clippy --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 17:20:24 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#2124