-
Notifications
You must be signed in to change notification settings - Fork 12
Bump to 0.7.0 #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump to 0.7.0 #109
Changes from all commits
617aadc
20edaea
733b4d9
7dac30e
0d11243
0109846
e5372c0
7134ed9
44ccbbd
cb12e1b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: Publish to crates.io | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "v*" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - name: Verify tag version matches Cargo.toml | ||
| run: | | ||
| CARGO_VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/.*"\(.*\)".*/\1/') | ||
| TAG_VERSION="${GITHUB_REF_NAME#v}" | ||
| if [ "$CARGO_VERSION" != "$TAG_VERSION" ]; then | ||
| echo "Error: Tag version ($TAG_VERSION) does not match Cargo.toml version ($CARGO_VERSION)" | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Publish to crates.io | ||
| run: cargo publish | ||
| env: | ||
| CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| [package] | ||
| name = "git-internal" | ||
| version = "0.6.1" | ||
| version = "0.7.0" | ||
| edition = "2024" | ||
| authors = ["Eli Ma <genedna@gmail.com>"] | ||
| description = "High-performance Rust library for Git internal objects, Pack files, and AI-assisted development objects (Intent, Plan, Task, Run, Evidence, Decision) with delta compression, streaming I/O, and smart protocol support." | ||
|
Comment on lines
+3
to
6
|
||
|
|
@@ -11,7 +11,7 @@ readme = "README.md" | |
| homepage = "https://libra.tools" | ||
| repository = "https://github.com/web3infra-foundation/libra" | ||
| license = "MIT" | ||
| exclude = ["tests", ".github"] | ||
| exclude = ["tests", ".github", ".claude", ".devcontainer", "examples"] | ||
genedna marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| [badges] | ||
| maintenance = { status = "actively-developed" } | ||
|
|
@@ -48,7 +48,7 @@ sha2 = "0.10.9" | |
| crc32fast = "1.4" | ||
| ring = "0.17.8" | ||
| serde_json = "1.0.149" | ||
| zstd-sys = { version = "2.0.16+zstd.1.5.7", features = ["experimental"] } | ||
| zstd-sys = { version = "2.0.16", features = ["experimental"] } | ||
| sea-orm = { version = "1.1.17", features = ["sqlx-sqlite"] } | ||
| flate2 = { version = "1.1.9", features = ["zlib"] } | ||
| serde = { version = "1.0.228", features = ["derive"] } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The publish job runs
cargo publishwithout building/testing the tag and without--locked. Since this workflow triggers directly on tag push, a broken tag could be published. Consider adding acargo test --all(or reusing the existing CI workflow as a required status check) and usingcargo publish --lockedto prevent dependency resolution drift at publish time.