0.26.5 try to fix docs.rs build (3)
MODIFY
Cargo.toml
Cargo.toml
@@ -6,7 +6,7 @@ repository = "https://github.com/twistedfall/opencv-rust"
readme = "README.md"
keywords = [ "opencv", "vision" ]
license = "MIT"
-version = "0.26.4"
+version = "0.26.5"
edition = "2018"
authors = ["Mathieu Poumeyrol <kali@zoy.org>", "Pro <twisted.fall@gmail.com>"]
build = "build.rs"

MODIFY
gen_rust.py
gen_rust.py
@@ -3909,6 +3909,9 @@ class RustWrapperGenerator(object):
# code blocks, don't run them during tests
text = re.sub(r"@code(?: ?\{.+?\})?", "```ignore", text, 0, re.M)
text = text.replace("@endcode", "```\n")
+ # some special casing for docs.rs build failures
+ text = text.replace("'fps'", "\"fps\"")
+ text = text.replace("'cv::Exception'", "\"cv::Exception\"")
# see also block
text = re.sub(r"@sa\s+", "## See also\n", text, 1, re.M)
text = text.replace("@sa", "")

MODIFY
src/opencv/hub/core.rs
src/opencv/hub/core.rs
@@ -5250,7 +5250,7 @@ pub trait BufferPoolController {
/// # Bad call
/// $ ./app -fps=aaa
/// ERRORS:
-/// Parameter 'fps': can not convert: [aaa] to [double]
+/// Parameter "fps": can not convert: [aaa] to [double]
/// ```
pub struct CommandLineParser {
#[doc(hidden)] pub(crate) ptr: *mut c_void

MODIFY
src/opencv/hub/face.rs
src/opencv/hub/face.rs
@@ -692,7 +692,7 @@ pub trait FaceRecognizer: core::AlgorithmTrait {
///
/// ```ignore
/// OpenCV Error: The function/feature is not implemented (This FaceRecognizer (FaceRecognizer.Eigenfaces) does not support updating, you have to use FaceRecognizer::train to update it.) in update, file /home/philipp/git/opencv/modules/contrib/src/facerec.cpp, line 305
- /// terminate called after throwing an instance of 'cv::Exception'
+ /// terminate called after throwing an instance of "cv::Exception"
/// ```
///
///

MODIFY
src/opencv_32/hub/core.rs
src/opencv_32/hub/core.rs
@@ -4580,7 +4580,7 @@ pub trait BufferPoolController {
/// # Bad call
/// $ ./app -fps=aaa
/// ERRORS:
-/// Parameter 'fps': can not convert: [aaa] to [double]
+/// Parameter "fps": can not convert: [aaa] to [double]
/// ```
pub struct CommandLineParser {
#[doc(hidden)] pub(crate) ptr: *mut c_void

MODIFY
src/opencv_32/hub/face.rs
src/opencv_32/hub/face.rs
@@ -398,7 +398,7 @@ pub trait FaceRecognizer: core::AlgorithmTrait {
///
/// ```ignore
/// OpenCV Error: The function/feature is not implemented (This FaceRecognizer (FaceRecognizer.Eigenfaces) does not support updating, you have to use FaceRecognizer::train to update it.) in update, file /home/philipp/git/opencv/modules/contrib/src/facerec.cpp, line 305
- /// terminate called after throwing an instance of 'cv::Exception'
+ /// terminate called after throwing an instance of "cv::Exception"
/// ```
///
///

MODIFY
src/opencv_34/hub/core.rs
src/opencv_34/hub/core.rs
@@ -5250,7 +5250,7 @@ pub trait BufferPoolController {
/// # Bad call
/// $ ./app -fps=aaa
/// ERRORS:
-/// Parameter 'fps': can not convert: [aaa] to [double]
+/// Parameter "fps": can not convert: [aaa] to [double]
/// ```
pub struct CommandLineParser {
#[doc(hidden)] pub(crate) ptr: *mut c_void

MODIFY
src/opencv_34/hub/face.rs
src/opencv_34/hub/face.rs
@@ -692,7 +692,7 @@ pub trait FaceRecognizer: core::AlgorithmTrait {
///
/// ```ignore
/// OpenCV Error: The function/feature is not implemented (This FaceRecognizer (FaceRecognizer.Eigenfaces) does not support updating, you have to use FaceRecognizer::train to update it.) in update, file /home/philipp/git/opencv/modules/contrib/src/facerec.cpp, line 305
- /// terminate called after throwing an instance of 'cv::Exception'
+ /// terminate called after throwing an instance of "cv::Exception"
/// ```
///
///

MODIFY
src/opencv_41/hub/core.rs
src/opencv_41/hub/core.rs
@@ -5320,7 +5320,7 @@ pub trait BufferPoolController {
/// # Bad call
/// $ ./app -fps=aaa
/// ERRORS:
-/// Parameter 'fps': can not convert: [aaa] to [double]
+/// Parameter "fps": can not convert: [aaa] to [double]
/// ```
pub struct CommandLineParser {
#[doc(hidden)] pub(crate) ptr: *mut c_void

MODIFY
src/opencv_41/hub/face.rs
src/opencv_41/hub/face.rs
@@ -692,7 +692,7 @@ pub trait FaceRecognizer: core::AlgorithmTrait {
///
/// ```ignore
/// OpenCV Error: The function/feature is not implemented (This FaceRecognizer (FaceRecognizer.Eigenfaces) does not support updating, you have to use FaceRecognizer::train to update it.) in update, file /home/philipp/git/opencv/modules/contrib/src/facerec.cpp, line 305
- /// terminate called after throwing an instance of 'cv::Exception'
+ /// terminate called after throwing an instance of "cv::Exception"
/// ```
///
///

0.26.5 try to fix docs.rs build (3)