From 7a095878d54ebb34a1b9273236719c83a1ff896d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Wieczoreck?= Date: Mon, 8 Dec 2025 14:24:30 +0100 Subject: [PATCH] Only include files that are necessary for crates.io --- Cargo.toml | 9 ++++++++- ndarray-rand/Cargo.toml | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 64f18ae34..efc035f00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,14 @@ description = "An n-dimensional array for general elements and for numerics. Lig keywords = ["array", "data-structure", "multidimensional", "matrix", "blas"] categories = ["data-structures", "science"] -exclude = ["docgen/images/*"] +include = [ + "/src/**/*.rs", + "LICENSE-MIT", + "LICENSE-APACHE", + "RELEASES.md", + "README.rst", + "README-quick-start.md" +] resolver = "2" [lib] diff --git a/ndarray-rand/Cargo.toml b/ndarray-rand/Cargo.toml index 223dcdfc9..b7169f304 100644 --- a/ndarray-rand/Cargo.toml +++ b/ndarray-rand/Cargo.toml @@ -13,6 +13,14 @@ description = "Constructors for randomized arrays. `rand` integration for `ndarr keywords = ["multidimensional", "matrix", "rand", "ndarray"] +include = [ + "/src/**/*.rs", + "LICENSE-MIT", + "LICENSE-APACHE", + "RELEASES.md", + "README.rst" +] + [dependencies] ndarray = { workspace = true }