I turned default features off with default-features = false in Cargo.toml and didn't enable the renderer-software feature. Then I ran cargo doc and got the following error:
error[E0432]: unresolved import `crate::platform::software_renderer`
--> C:\Users\redacted\.cargo\registry\src\index.crates.io-6f17d22bba15001f\slint-1.7.1\docs.rs:150:26
|
150 | use crate::platform::software_renderer::*;
| ^^^^^^^^^^^^^^^^^ could not find `software_renderer` in `platform`
Adding the renderer-software feature fixed the problem. Seems to me like there's a conditional-compilation directive missing.
See #5742 for the reason why I wanted to see the docs. The feature set at that point was just what I previously settled on.
Exact dependency line:
slint = { version = "1.7.1", default-features = false, features = ["compat-1-2", "std", "gettext", "accessibility", "backend-winit", "renderer-skia"] }
I turned default features off with
default-features = false
inCargo.toml
and didn't enable therenderer-software
feature. Then I rancargo doc
and got the following error:Adding the
renderer-software
feature fixed the problem. Seems to me like there's a conditional-compilation directive missing.See #5742 for the reason why I wanted to see the docs. The feature set at that point was just what I previously settled on.
Exact dependency line: