We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f1e25dc + 1333409 commit 07e96abCopy full SHA for 07e96ab
src/build_options.rs
@@ -647,6 +647,9 @@ impl BuildOptions {
647
let config_targets = pyproject.and_then(|x| x.targets());
648
let compile_targets =
649
filter_cargo_targets(&cargo_metadata, bridge, config_targets.as_deref())?;
650
+ if compile_targets.is_empty() {
651
+ bail!("No Cargo targets to build, please check your bindings configuration in pyproject.toml.");
652
+ }
653
654
let crate_name = cargo_toml.package.name;
655
Ok(BuildContext {
0 commit comments