When checking out the plotly.rs repository fresh and running cargo check or cargo build at the workspace root, the build fails immediately. The failure comes from 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 compile time driver requirement makes sense for actual static export, but 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, so the build script currently blocks fresh workspace builds even when static export is not being used.
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 --workspace in the repository root:
- The build fails on
plotly_static's build script compilation.
Expected Behavior:
A fresh workspace build should compile cleanly out of the box without requiring WebDriver feature selection, as long as static export is not actually being used.
Current Behavior:
plotly_static enforces driver selection at compile time, so fresh workspace builds fail even for contributor workflows that do not use static export.
The screenshot of the issue reproduction:

When checking out the
plotly.rsrepository fresh and runningcargo checkorcargo buildat the workspace root, the build fails immediately. The failure comes from the build script of the newly introducedplotly_staticcrate with the following error:This compile time driver requirement makes sense for actual static export, but
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, so the build script currently blocks fresh workspace builds even when static export is not being used.Minimal Reproducible Example (MRE):
plotly.rsrepository fresh:git clone https://github.com/plotly/plotly.rs.git cd plotly.rscargo check --workspacein the repository root:plotly_static's build script compilation.Expected Behavior:
A fresh workspace build should compile cleanly out of the box without requiring WebDriver feature selection, as long as static export is not actually being used.
Current Behavior:
plotly_staticenforces driver selection at compile time, so fresh workspace builds fail even for contributor workflows that do not use static export.The screenshot of the issue reproduction: