From 993f7d4aea859115ea686e1c228051cb80db3da2 Mon Sep 17 00:00:00 2001 From: Georg Semmler Date: Mon, 13 Jan 2025 09:10:28 +0000 Subject: [PATCH] Exclude snapshots from published packages (#1283) This commit excludes insta snapshot files from the published packages. I've chosen to go with an explicit list of included files instead of an exclude list as this also excludes other possibly files present by accident at the publish time. Fixes #1281 --- utoipa-gen/Cargo.toml | 8 ++++++++ utoipa/Cargo.toml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/utoipa-gen/Cargo.toml b/utoipa-gen/Cargo.toml index cda24773..8e6eb915 100644 --- a/utoipa-gen/Cargo.toml +++ b/utoipa-gen/Cargo.toml @@ -9,6 +9,14 @@ keywords = ["openapi", "codegen", "proc-macro", "documentation", "compile-time"] repository = "https://github.com/juhaku/utoipa" authors = ["Juha Kukkonen "] rust-version.workspace = true +include = [ + "README.md", + "src/**/*.rs", + "LICENSE-APACHE", + "LICENSE-MIT", + "CHANGELOG.md", + "Cargo.toml", +] [lib] proc-macro = true diff --git a/utoipa/Cargo.toml b/utoipa/Cargo.toml index 5fad7e07..80555342 100644 --- a/utoipa/Cargo.toml +++ b/utoipa/Cargo.toml @@ -18,6 +18,14 @@ repository = "https://github.com/juhaku/utoipa" categories = ["web-programming"] authors = ["Juha Kukkonen "] rust-version.workspace = true +include = [ + "README.md", + "src/**/*.rs", + "LICENSE-APACHE", + "LICENSE-MIT", + "CHANGELOG.md", + "Cargo.toml", +] [features] # See README.md for list and explanations of features