From a3afabadae3d79f983105c10ca64a6c063d9a04a Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 28 Feb 2025 14:55:01 +0100 Subject: [PATCH 1/2] rust: Remove OpenAPI generator ignore file We no longer use OpenAPI generator. --- rust/.openapi-generator-ignore | 35 ---------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 rust/.openapi-generator-ignore diff --git a/rust/.openapi-generator-ignore b/rust/.openapi-generator-ignore deleted file mode 100644 index 61b027218..000000000 --- a/rust/.openapi-generator-ignore +++ /dev/null @@ -1,35 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md - -/Cargo.toml -/README.md -/.gitignore -/git_push.sh - -/.gitlab-ci.yml -/.travis.yml -/src/lib.rs -/src/apis/ - -/docs/ From a669661490caf6f5b0b23cf2576985a3510ebc98 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 28 Feb 2025 14:56:22 +0100 Subject: [PATCH 2/2] rust: Only include required files in crate tarballs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … that are uploaded to crates.io. cargo-diet output for this change: ┌────────────────────────────────────────────────────────────────┬─────────────┐ │ Removed File │ Size (Byte) │ ├────────────────────────────────────────────────────────────────┼─────────────┤ │ tests/it/utils/mod.rs │ 21 │ │ .rustfmt.toml │ 51 │ │ tests/it/main.rs │ 53 │ │ .gitignore │ 53 │ │ templates/api_summary.rs.jinja │ 593 │ │ templates/component_type.rs.jinja │ 602 │ │ templates/api_extra/application_create.rs │ 619 │ │ templates/types/integer_enum.rs.jinja │ 667 │ │ templates/types/string_enum.rs.jinja │ 786 │ │ tests/it/mode_serialization.rs │ 1018 │ │ templates/api_extra/message.rs │ 1097 │ │ .openapi-generator-ignore │ 1150 │ │ templates/types/struct_enum.rs.jinja │ 1303 │ │ tests/it/utils/test_client.rs │ 1327 │ │ templates/api_extra/message_attempt_list_attempted_messages.rs │ 1338 │ │ templates/types/struct.rs.jinja │ 1561 │ │ templates/api_extra/message_expunge_content.rs │ 1658 │ │ templates/types/struct_fields.rs.jinja │ 1748 │ │ templates/api_resource.rs.jinja │ 5101 │ │ tests/it/kitchen_sink.rs │ 6546 │ └────────────────────────────────────────────────────────────────┴─────────────┘ Saved 13% or 27.3 KB in 20 files (of 211.1 KB and 120 files in entire crate) --- rust/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 5bb05d64e..d6b84da6d 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -10,6 +10,7 @@ readme = "../README.md" license = "MIT" keywords = ["svix", "webhooks", "diahook"] categories = ["development-tools", "asynchronous", "network-programming", "web-programming"] +include = ["src/**/*", "README.md"] [features] # openssl-sys keeps showing up in the CLI dep graph, breaking the build, even when