Skip to content

Commit e312b95

Browse files
fix(release): restrict published package to src + manifest
The specs/ corpus (127 MB of real-world OpenAPI documents) is tracked in git and was being bundled into the crate, pushing the tarball past crates.io's 10 MiB upload limit (413 Payload Too Large on v0.5.0). Add an include allowlist so only src/, Cargo.toml, README, and LICENSE ship. Packaged size drops to ~900 KiB (188 KiB compressed).
1 parent e0c17db commit e312b95

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ homepage = "https://github.com/gpu-cli/openapi-to-rust"
1111
keywords = ["openapi", "codegen", "rust", "sse", "api-client"]
1212
categories = ["development-tools", "web-programming"]
1313
readme = "README.md"
14+
include = [
15+
"/src/**",
16+
"/Cargo.toml",
17+
"/README.md",
18+
"/LICENSE",
19+
]
1420

1521
[dependencies]
1622
clap = { version = "4.5", features = ["derive"] }

0 commit comments

Comments
 (0)