Skip to content

Commit

Permalink
[FEAT] Create lib_ccxr and libccxr_exports (#1621)
Browse files Browse the repository at this point in the history
* create lib_ccxr and libccxr_exports

* chore: Fix bindgen crate version

* chore: Fix rsmpeg crate version

* docs: Add PR info in Changelogs

---------

Co-authored-by: Elbert Ronnie <[email protected]>
  • Loading branch information
IshanGrover2004 and elbertronnie authored Jul 3, 2024
1 parent d6ccf1b commit f12f12b
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ src/rust/CMakeCache.txt
src/rust/Makefile
src/rust/cmake_install.cmake
src/rust/target/
src/rust/lib_ccxr/target/
windows/ccx_rust.lib
windows/*/debug/*
windows/*/CACHEDIR.TAG
windows/.rustc_info.json
windows/.rustc_info.json
1 change: 1 addition & 0 deletions docs/CHANGES.TXT
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
0.95 (to be released)
-----------------
- New: Create `lib_ccxr` and `libccxr_exports` (#1621)
- Fix: Unexpected behavior of get_write_interval (#1609)
- Update: Bump rsmpeg to latest version for ffmpeg bindings (#1600)
- New: Add SCC support for CEA-708 decoder (#1595)
Expand Down
5 changes: 5 additions & 0 deletions src/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ rsmpeg = { version = "0.14.2", optional = true, features = [
] }
tesseract-sys = { version = "0.5.14", optional = true, default-features = false }
leptonica-sys = { version = "0.4.3", optional = true, default-features = false }
lib_ccxr = { path = "lib_ccxr" }

[build-dependencies]
bindgen = "0.64.0"
Expand Down
7 changes: 7 additions & 0 deletions src/rust/lib_ccxr/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions src/rust/lib_ccxr/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "lib_ccxr"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]

[features]
default = ["enable_sharing", "wtv_debug", "enable_ffmpeg", "debug", "with_libcurl"]
enable_sharing = []
wtv_debug = []
enable_ffmpeg = []
debug_out = []
debug = []
with_libcurl = []
1 change: 1 addition & 0 deletions src/rust/lib_ccxr/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod util;
1 change: 1 addition & 0 deletions src/rust/lib_ccxr/src/util/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//! Provides basic utilities used throughout the program.
1 change: 1 addition & 0 deletions src/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub mod bindings {
pub mod decoder;
#[cfg(feature = "hardsubx_ocr")]
pub mod hardsubx;
pub mod libccxr_exports;
pub mod utils;

#[cfg(windows)]
Expand Down
1 change: 1 addition & 0 deletions src/rust/src/libccxr_exports/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//! Provides C-FFI functions that are direct equivalent of functions available in C.

0 comments on commit f12f12b

Please sign in to comment.