From 003cf37236b0b0d0f2c34b74925f8ae3c79579e6 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Mon, 1 Sep 2025 19:26:40 +0100 Subject: [PATCH] Exclude some unnecessary files from the crate Exclude from the published crate the contents of `.github/` (CI workflows, etc.) and other files that are only useful for upstream development, not for crate users (`.gitignore`, `codecov.yml`, `x.py`). This slightly slims down the crate. This is also helpful downstream, e.g. in Fedora, where a proposed `rust-numpy-devel` package would have an automatically-generated dependency on `/usr/bin/python3` if `x.py` is not excluded. For now, tests and benchmarks are both still included in the published crate. --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e30f53051..c1d9b2974 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,12 @@ repository = "https://github.com/PyO3/rust-numpy" categories = ["api-bindings", "development-tools::ffi", "science"] keywords = ["python", "numpy", "ffi", "pyo3"] license = "BSD-2-Clause" +exclude = [ + ".github/*", + ".gitignore", + "codecov.yml", + "x.py", +] [dependencies] half = { version = "2.0", default-features = false, optional = true }