Skip to content

chore: update cargo toml for release v2.4.0 #1385

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

Merged
merged 1 commit into from
Jul 22, 2025

Conversation

nikhilsinhaparseable
Copy link
Contributor

@nikhilsinhaparseable nikhilsinhaparseable commented Jul 22, 2025

Summary by CodeRabbit

  • Chores
    • Updated package version and associated metadata to 2.4.0.

Copy link
Contributor

coderabbitai bot commented Jul 22, 2025

Walkthrough

The Cargo.toml file was updated to change the package version from 2.3.5 to 2.4.0. Additionally, the URLs and SHA-1 checksum for the parseable_ui package metadata were modified to reference the new 2.4.0 release assets. No other changes were made.

Changes

File(s) Change Summary
Cargo.toml Updated package version to 2.4.0; updated parseable_ui URLs and SHA-1 checksum for new release.

Estimated code review effort

1 (~2 minutes)

Possibly related PRs

Poem

A version hop, a gentle leap,
To 2.4.0, the numbers creep.
URLs refreshed, checksums anew,
The bunny’s work is swift and true.
With every hop, the code grows bright,
Release day’s here—oh what delight!
🐇✨


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between efa70af and 87b99c6.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • Cargo.toml (2 hunks)
🔇 Additional comments (1)
Cargo.toml (1)

3-3: Ensure the 2.4.0 bump is reflected everywhere it is consumed
Bumping the crate version here is necessary, but double-check secondary touch-points (CHANGELOG, Docker image tags, build.rs constants, CI publishing steps, etc.) to avoid mismatched versions at release time.

Comment on lines 151 to +153
[package.metadata.parseable_ui]
assets-url = "https://parseable-prism-build.s3.us-east-2.amazonaws.com/v2.3.5/build.zip"
assets-sha1 = "3e703ef8bedf8ae55fd31713f6267ad14ad3d29d"
assets-url = "https://parseable-prism-build.s3.us-east-2.amazonaws.com/v2.4.0/build.zip"
assets-sha1 = "04632472a2174328cfea7a91a175f6f3795d7152"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Stop using SHA-1 for release-artifact integrity; switch to SHA-256
SHA-1 has been considered broken for over a decade. Prefer a SHA-256 (or stronger) checksum to avoid collision attacks and to align with modern supply-chain security guidance. Example:

-assets-sha1 = "04632472a2174328cfea7a91a175f6f3795d7152"
+# SHA-256 of the v2.4.0 build.zip
+assets-sha256 = "<paste sha256 here>"

If the build script currently hard-codes assets-sha1, add parallel support for assets-sha256 or migrate entirely.


🏁 Script executed:

#!/bin/bash
# Search for hard-coded SHA-1 usage in the repository
rg -n "assets-sha1"

# Check for any existing SHA-256 support
rg -n "assets-sha256"

# Locate code that reads the parseable_ui metadata
rg -n "parseable_ui"

# Inspect references to the Cargo metadata section
rg -n "metadata.parseable_ui"

Length of output: 1105


Switch to SHA-256 for parseable_ui assets integrity

The build script and Cargo metadata currently only support SHA-1, which is considered insecure. You’ll need to:

  • Update Cargo.toml to replace assets-sha1 with assets-sha256 (or add parallel support):
    • File: Cargo.toml (lines 151–153)
  • Modify build.rs to:
    • Read metadata["assets-sha256"] instead of assets-sha1 (currently at lines 104 and 127)
    • Compute the checksum with SHA-256 (e.g., using the sha2 crate) rather than Sha1::hexdigest()
    • Write out a .sha256 file instead of .sha1 (update the checksum_path logic around line 72)

Suggested diff in Cargo.toml:

 [package.metadata.parseable_ui]
-assets-url = "https://…/v2.4.0/build.zip"
-assets-sha1 = "04632472a2174328cfea7a91a175f6f3795d7152"
+# URL for v2.4.0 build.zip
+assets-url    = "https://…/v2.4.0/build.zip"
+# SHA-256 of v2.4.0 build.zip
+assets-sha256 = "<paste sha256 here>"

And in build.rs (pseudocode):

- let checksum_path = out_dir.join("parseable_ui.sha1");
+ let checksum_path = out_dir.join("parseable_ui.sha256");- let checksum = Sha1::from(&parseable_ui_bytes).hexdigest();
+ let checksum = Sha256::digest(&parseable_ui_bytes)
+     .iter()
+     .map(|b| format!("{:02x}", b))
+     .collect::<String>();- if checksum == metadata["assets-sha1"].as_str().unwrap() {
+ if checksum == metadata["assets-sha256"].as_str().unwrap() {

These changes will bring artifact validation in line with modern supply-chain security practices.

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In Cargo.toml around lines 151 to 153, replace the key `assets-sha1` with
`assets-sha256` to reflect the use of SHA-256 for asset integrity. Then, in
build.rs at lines 72, 104, and 127, update the code to read the `assets-sha256`
metadata instead of `assets-sha1`, compute the checksum using the SHA-256
algorithm (for example, via the `sha2` crate), and change the output checksum
file extension from `.sha1` to `.sha256`. This involves modifying the checksum
calculation logic and the path where the checksum file is written to ensure
compatibility with SHA-256 validation.

@nitisht nitisht merged commit 168e1e3 into parseablehq:main Jul 22, 2025
13 checks passed
@nikhilsinhaparseable nikhilsinhaparseable deleted the prepare-v2.4.0 branch July 22, 2025 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants