Skip to content

Commit 91423b2

Browse files
committed
Fix CI: remove accidental sqlx deps from workspace Cargo.toml
1 parent 58992b6 commit 91423b2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

crates/cargo-rustapi/src/commands/generate.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ async fn ensure_crud_dependencies() -> Result<()> {
218218
}
219219

220220
let mut content = fs::read_to_string(cargo_path).await?;
221+
if !content.contains("[package]") {
222+
anyhow::bail!(
223+
"Cargo.toml has no [package] section — run `cargo rustapi generate crud` from an application project root, not the workspace root"
224+
);
225+
}
221226
let mut deps_to_add = Vec::new();
222227

223228
if !content

0 commit comments

Comments
 (0)