Skip to content

Remove shell scripts from the published package#1744

Merged
gwenn merged 1 commit intorusqlite:masterfrom
GiGainfosystems:remove_scripts
Oct 18, 2025
Merged

Remove shell scripts from the published package#1744
gwenn merged 1 commit intorusqlite:masterfrom
GiGainfosystems:remove_scripts

Conversation

@weiznich
Copy link
Contributor

@weiznich weiznich commented Oct 9, 2025

This commit removes shell scripts from the published package. These were reported by cargo denys bans.build.interpreted setting and they seem to be not required for building the crate.

"sqlite3/sqlite3.h",
"sqlite3/sqlite3ext.h",
"sqlite3/wasm32-wasi-vfs.c",
]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exclude would be better, no ?
Like

rusqlite/Cargo.toml

Lines 15 to 22 in 9d701b6

exclude = [
"/.github/*",
"/.gitattributes",
"/appveyor.yml",
"/Changelog.md",
"/clippy.toml",
"/codecov.yml",
]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally prefer include as it's explicit about what should be in the published package and what not. exclude kind of suffers of the same problem that none of these configs also have: There is still the possibility that something unexpected ends up in the package, include at least makes the decision conscious.

Now include on the other hand has the obvious problem that it can miss files. You can sidestep that by just running cargo package (with all relevant features) as part of the CI setup. That fails if something is missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gwenn I still wait on your decision here

@gwenn
Copy link
Collaborator

gwenn commented Oct 17, 2025

Sorry,
I am biased but if we should remove shell scripts, we should exclude them.

This commit removes shell scripts from the published package. These were
reported by cargo denys `bans.build.interpreted` setting and they seem
to be not required for building the crate.
@weiznich
Copy link
Contributor Author

No worries, you are the maintainer here so if you prefer it a certain way that's fine.
I'm happy as long as the scripts are removed

@gwenn gwenn merged commit 438dd8b into rusqlite:master Oct 18, 2025
13 of 14 checks passed
@gwenn
Copy link
Collaborator

gwenn commented Oct 18, 2025

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants