When checking out the plotly.rs repository fresh and running cargo check or cargo build at the workspace root, the build fails immediately. The compilation fails on the build script of the newly introduced plotly_static crate with the following error:
error: At least one of 'geckodriver' or 'chromedriver' features must be enabled.
--> plotly_static/build.rs:17:1
|
17 | ...enabled.");
| ...^^^^^^^^^^
This occurs because plotly_static is a workspace member and is also listed as a dev-dependency of plotly. During a standard workspace check or test run, plotly_static is compiled without features because it does not define any default features in its Cargo.toml.
Minimal Reproducible Example (MRE):
- Clone the
plotly.rs repository fresh:
git clone https://github.com/plotly/plotly.rs.git
cd plotly.rs
- Run a bare
cargo check in the repository root:
- The build fails on
plotly_static's build script compilation.
Expected Behavior:
A bare cargo check or cargo build in the repository root should compile cleanly out of the box without requiring manual feature flags.
Current Behavior:
The build script of plotly_static raises a hard compile_error! when no driver features are enabled, blocking all bare workspace builds.
When checking out the
plotly.rsrepository fresh and runningcargo checkorcargo buildat the workspace root, the build fails immediately. The compilation fails on the build script of the newly introducedplotly_staticcrate with the following error:This occurs because
plotly_staticis a workspace member and is also listed as a dev-dependency ofplotly. During a standard workspace check or test run,plotly_staticis compiled without features because it does not define any default features in itsCargo.toml.Minimal Reproducible Example (MRE):
plotly.rsrepository fresh:git clone https://github.com/plotly/plotly.rs.git cd plotly.rscargo checkin the repository root:plotly_static's build script compilation.Expected Behavior:
A bare
cargo checkorcargo buildin the repository root should compile cleanly out of the box without requiring manual feature flags.Current Behavior:
The build script of
plotly_staticraises a hardcompile_error!when no driver features are enabled, blocking all bare workspace builds.