Skip to content

Commit

Permalink
Merge branch 'size-optimization'
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Oct 20, 2023
2 parents eb23338 + b65a80b commit c0e72fb
Show file tree
Hide file tree
Showing 55 changed files with 64 additions and 52 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
license = "MIT OR Apache-2.0"
version = "0.31.1"
default-run = "gix"
include = ["src/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*", "README.md"]
resolver = "2"

[[bin]]
Expand Down
25 changes: 10 additions & 15 deletions etc/check-package-size.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ function indent () {
}

echo "in root: gitoxide CLI"
(enter gix-actor && indent cargo diet -n --package-size-limit 5KB)
(enter gix-actor && indent cargo diet -n --package-size-limit 10KB)
(enter gix-archive && indent cargo diet -n --package-size-limit 10KB)
(enter gix-worktree-stream && indent cargo diet -n --package-size-limit 40KB)
(enter gix-utils && indent cargo diet -n --package-size-limit 10KB)
(enter gix-fs && indent cargo diet -n --package-size-limit 10KB)
(enter gix-fs && indent cargo diet -n --package-size-limit 15KB)
(enter gix-pathspec && indent cargo diet -n --package-size-limit 30KB)
(enter gix-refspec && indent cargo diet -n --package-size-limit 30KB)
(enter gix-path && indent cargo diet -n --package-size-limit 25KB)
Expand All @@ -37,30 +37,25 @@ echo "in root: gitoxide CLI"
(enter gix-command && indent cargo diet -n --package-size-limit 10KB)
(enter gix-hash && indent cargo diet -n --package-size-limit 30KB)
(enter gix-chunk && indent cargo diet -n --package-size-limit 15KB)
(enter gix-rebase && indent cargo diet -n --package-size-limit 5KB)
(enter gix-sequencer && indent cargo diet -n --package-size-limit 5KB)
(enter gix-features && indent cargo diet -n --package-size-limit 65KB)
(enter gix-ref && indent cargo diet -n --package-size-limit 55KB)
(enter gix-diff && indent cargo diet -n --package-size-limit 10KB)
(enter gix-traverse && indent cargo diet -n --package-size-limit 10KB)
(enter gix-diff && indent cargo diet -n --package-size-limit 15KB)
(enter gix-traverse && indent cargo diet -n --package-size-limit 15KB)
(enter gix-url && indent cargo diet -n --package-size-limit 35KB)
(enter gix-validate && indent cargo diet -n --package-size-limit 5KB)
(enter gix-validate && indent cargo diet -n --package-size-limit 10KB)
(enter gix-date && indent cargo diet -n --package-size-limit 25KB)
(enter gix-hashtable && indent cargo diet -n --package-size-limit 5KB)
(enter gix-filter && indent cargo diet -n --package-size-limit 5KB)
(enter gix-lfs && indent cargo diet -n --package-size-limit 5KB)
(enter gix-note && indent cargo diet -n --package-size-limit 5KB)
(enter gix-fetchhead && indent cargo diet -n --package-size-limit 5KB)
(enter gix-hashtable && indent cargo diet -n --package-size-limit 10KB)
(enter gix-filter && indent cargo diet -n --package-size-limit 35KB)
(enter gix-status && indent cargo diet -n --package-size-limit 30KB)
(enter gix-sec && indent cargo diet -n --package-size-limit 25KB)
(enter gix-tix && indent cargo diet -n --package-size-limit 5KB)
(enter gix-credentials && indent cargo diet -n --package-size-limit 35KB)
(enter gix-prompt && indent cargo diet -n --package-size-limit 15KB)
(enter gix-object && indent cargo diet -n --package-size-limit 25KB)
(enter gix-object && indent cargo diet -n --package-size-limit 30KB)
(enter gix-commitgraph && indent cargo diet -n --package-size-limit 35KB)
(enter gix-pack && indent cargo diet -n --package-size-limit 140KB)
(enter gix-odb && indent cargo diet -n --package-size-limit 140KB)
(enter gix-protocol && indent cargo diet -n --package-size-limit 80KB)
(enter gix-packetline && indent cargo diet -n --package-size-limit 45KB)
(enter gix && indent cargo diet -n --package-size-limit 280KB)
(enter gix-transport && indent cargo diet -n --package-size-limit 95KB)
(enter gitoxide-core && indent cargo diet -n --package-size-limit 120KB)
(enter gitoxide-core && indent cargo diet -n --package-size-limit 160KB)
2 changes: 1 addition & 1 deletion gix-actor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Sebastian Thiel <[email protected]>"]
repository = "https://github.com/Byron/gitoxide"
license = "MIT OR Apache-2.0"
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
1 change: 1 addition & 0 deletions gix-archive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "archive generation from of a worktree stream"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
rust-version = "1.65"
include = ["src/**/*", "LICENSE-*"]

[lib]
doctest = false
Expand Down
2 changes: 1 addition & 1 deletion gix-attributes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A crate of the gitoxide project dealing .gitattributes files"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
1 change: 1 addition & 0 deletions gix-bitmap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "A crate of the gitoxide project dedicated implementing the standa
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
rust-version = "1.65"
exclude = ["CHANGELOG.md"]

[lib]
doctest = false
Expand Down
2 changes: 1 addition & 1 deletion gix-chunk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repository = "https://github.com/Byron/gitoxide"
documentation = "https://github.com/git/git/blob/seen/Documentation/technical/chunk-format.txt"
license = "MIT OR Apache-2.0"
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
1 change: 1 addition & 0 deletions gix-command/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "A crate of the gitoxide project handling internal git command exe
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
rust-version = "1.65"
include = ["src/lib.rs", "LICENSE-*"]

[lib]
doctest = false
Expand Down
2 changes: 1 addition & 1 deletion gix-commitgraph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"
description = "Read-only access to the git commitgraph file format"
authors = ["Conor Davis <[email protected]>", "Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
1 change: 1 addition & 0 deletions gix-config-value/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "A crate of the gitoxide project providing git-config value parsin
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
rust-version = "1.65"
include = ["src/**/*", "LICENSE-*"]

[lib]
doctest = false
Expand Down
2 changes: 1 addition & 1 deletion gix-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["Edward Shen <[email protected]>"]
edition = "2021"
keywords = ["git-config", "git", "config", "gitoxide"]
categories = ["config", "parser-implementations"]
include = ["src/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*", "README.md"]
rust-version = "1.65"
autotests = false

Expand Down
1 change: 1 addition & 0 deletions gix-credentials/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "A crate of the gitoxide project to interact with git credentials
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
rust-version = "1.65"
include = ["src/**/*", "LICENSE-*"]

[lib]
doctest = false
Expand Down
2 changes: 1 addition & 1 deletion gix-date/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A crate of the gitoxide project parsing dates the way git does"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion gix-diff/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "Calculate differences between various git objects"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"
autotests = false

Expand Down
2 changes: 1 addition & 1 deletion gix-discover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "Discover git repositories and check if a directory is a git repository"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
1 change: 1 addition & 0 deletions gix-features/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ authors = ["Sebastian Thiel <[email protected]>"]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.65"
include = ["src/**/*", "LICENSE-*"]

[lib]
doctest = false
Expand Down
1 change: 1 addition & 0 deletions gix-filter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "A crate of the gitoxide project implementing git filters"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
rust-version = "1.65"
include = ["src/**/*", "LICENSE-*"]

[lib]
doctest = false
Expand Down
1 change: 1 addition & 0 deletions gix-fs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "A crate providing file system specific utilities to `gitoxide`"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
rust-version = "1.65"
include = ["src/**/*", "LICENSE-*"]

[lib]
doctest = false
Expand Down
1 change: 1 addition & 0 deletions gix-glob/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "A crate of the gitoxide project dealing with pattern matching"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
rust-version = "1.65"
include = ["src/**/*", "LICENSE-*"]

[lib]
doctest = false
Expand Down
2 changes: 1 addition & 1 deletion gix-hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Sebastian Thiel <[email protected]>"]
repository = "https://github.com/Byron/gitoxide"
license = "MIT OR Apache-2.0"
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion gix-hashtable/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A crate that provides hashtable based data structures optimized to utilize ObjectId keys"
authors = ["Pascal Kuthe <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion gix-ignore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A crate of the gitoxide project dealing .gitignore files"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion gix-index/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A work-in-progress crate of the gitoxide project dedicated implementing the git index file"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*", "README.md"]
rust-version = "1.65"
autotests = false

Expand Down
2 changes: 1 addition & 1 deletion gix-lock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A git-style lock-file implementation"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*", "README.md"]
rust-version = "1.65"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion gix-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
]
repository = "https://github.com/Byron/gitoxide"
license = "MIT OR Apache-2.0"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
1 change: 1 addition & 0 deletions gix-mailmap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "A crate of the gitoxide project for parsing mailmap files"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
rust-version = "1.65"
include = ["src/**/*", "LICENSE-*"]

[lib]
doctest = false
Expand Down
1 change: 1 addition & 0 deletions gix-negotiate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "A crate of the gitoxide project implementing negotiation algorith
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
rust-version = "1.65"
include = ["src/**/*", "LICENSE-*"]

[lib]
doctest = false
Expand Down
2 changes: 1 addition & 1 deletion gix-object/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Sebastian Thiel <[email protected]>"]
repository = "https://github.com/Byron/gitoxide"
license = "MIT OR Apache-2.0"
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion gix-odb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Sebastian Thiel <[email protected]>"]
license = "MIT OR Apache-2.0"
description = "Implements various git object databases"
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"
autotests = false

Expand Down
2 changes: 1 addition & 1 deletion gix-pack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Sebastian Thiel <[email protected]>"]
license = "MIT OR Apache-2.0"
description = "Implements git packs and related data structures"
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"
autotests = false

Expand Down
2 changes: 1 addition & 1 deletion gix-packetline-blocking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A duplicate of `gix-packetline` with the `blocking-io` feature pre-selected"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion gix-packetline/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A crate of the gitoxide project implementing the pkt-line serialization format"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion gix-path/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A crate of the gitoxide project dealing paths and their conversions"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
1 change: 1 addition & 0 deletions gix-pathspec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "A crate of the gitoxide project dealing magical pathspecs"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
rust-version = "1.65"
include = ["src/**/*", "LICENSE-*", "README.md"]

[lib]
doctest = false
Expand Down
2 changes: 1 addition & 1 deletion gix-prompt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A crate of the gitoxide project for handling prompts in the terminal"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*", "README.md"]
rust-version = "1.65"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion gix-protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A crate of the gitoxide project for implementing git protocols"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md", "!**/tests/**/*"]
include = ["src/**/*", "LICENSE-*", "!**/tests/**/*"]
rust-version = "1.65"

[lib]
Expand Down
1 change: 1 addition & 0 deletions gix-quote/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "A crate of the gitoxide project dealing with various quotations u
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
rust-version = "1.65"
include = ["src/**/*", "LICENSE-*"]

[lib]
doctest = false
Expand Down
2 changes: 1 addition & 1 deletion gix-ref/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A crate to handle git references"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"
autotests = false

Expand Down
2 changes: 1 addition & 1 deletion gix-refspec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A crate of the gitoxide project for parsing and representing refspecs"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md", "README.md"]
include = ["src/**/*", "LICENSE-*", "README.md"]
rust-version = "1.65"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion gix-revision/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A crate of the gitoxide project dealing with finding names for revisions and parsing specifications"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md", "README.md"]
include = ["src/**/*", "LICENSE-*", "README.md"]
rust-version = "1.65"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion gix-revwalk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
description = "A crate providing utilities for walking the revision graph"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2021"
include = ["src/**/*", "LICENSE-*", "CHANGELOG.md"]
include = ["src/**/*", "LICENSE-*"]
rust-version = "1.65"

[lib]
Expand Down
Loading

0 comments on commit c0e72fb

Please sign in to comment.