wkhtmltopdf version(s) affected: 0.13.0
OS information
debian 13 with qt6-webengine-dev installed
Same errors with qt5-webengine-dev installed
Without qt builds fine.
Description
Command:
# cargo build --features qt-webkit
error[E0133]: call to unsafe function CxxQtBuilder::cc_builder is unsafe and requires unsafe function or block
--> crates/core/build.rs:9:9
|
9 | / cxx_qt_build::CxxQtBuilder::new()
10 | | // C++ source file that implements render_url() via QWebEngineView.
11 | | .file("src/webkit_renderer.cpp")
... |
15 | | cc.include("include");
16 | | })
| |______________^ call to unsafe function
|
= note: consult the function's documentation for information on how to avoid undefined behavior
For more information about this error, try rustc --explain E0133.
After adding unsafe:
--- stderr
error[cxxqt]: expected square brackets
┌─ /root/wkhtmltopdf/crates/core/src/webkit_renderer.cpp:13:2
│
13 │ #include "wkhtmltopdf/webkit_renderer.h"
│ ^^^^^^^
wkhtmltopdf version(s) affected: 0.13.0
OS information
debian 13 with qt6-webengine-dev installed
Same errors with qt5-webengine-dev installed
Without qt builds fine.
Description
Command:
# cargo build --features qt-webkit
error[E0133]: call to unsafe function
CxxQtBuilder::cc_builderis unsafe and requires unsafe function or block--> crates/core/build.rs:9:9
|
9 | / cxx_qt_build::CxxQtBuilder::new()
10 | | // C++ source file that implements render_url() via QWebEngineView.
11 | | .file("src/webkit_renderer.cpp")
... |
15 | | cc.include("include");
16 | | })
| |______________^ call to unsafe function
|
= note: consult the function's documentation for information on how to avoid undefined behavior
For more information about this error, try
rustc --explain E0133.After adding unsafe:
--- stderr
error[cxxqt]: expected square brackets
┌─ /root/wkhtmltopdf/crates/core/src/webkit_renderer.cpp:13:2
│
13 │ #include "wkhtmltopdf/webkit_renderer.h"
│ ^^^^^^^