Skip to content
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

update unicode to version 16 #1044

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Conversation

tomtau
Copy link
Contributor

@tomtau tomtau commented Oct 10, 2024

Summary by CodeRabbit

  • New Features

    • Updated to version 2.7.14 for various Pest packages, enhancing performance and stability.
  • Bug Fixes

    • Resolved dependency issues by ensuring all related packages are now aligned with the latest version.

@tomtau tomtau requested a review from a team as a code owner October 10, 2024 09:00
@tomtau tomtau requested review from NoahTheDuke and removed request for a team October 10, 2024 09:00
Copy link
Contributor

coderabbitai bot commented Oct 10, 2024

Walkthrough

The pull request includes updates to the Cargo.toml files for multiple Pest packages, incrementing the version number from 2.7.13 to 2.7.14. This change affects the packages pest, pest_debugger, pest_derive, pest_generator, pest_grammars, pest_meta, and pest_vm, along with corresponding updates to their dependencies. No structural alterations to the files were made beyond these version updates.

Changes

File(s) Change Summary
debugger/Cargo.toml Version updated to 2.7.14, dependency pest updated to 2.7.14
derive/Cargo.toml Version updated to 2.7.14, dependencies pest and pest_generator updated to 2.7.14
generator/Cargo.toml Version updated to 2.7.14, dependencies pest and pest_meta updated to 2.7.14
grammars/Cargo.toml Version updated to 2.7.14, dependencies pest and pest_derive updated to 2.7.14
meta/Cargo.toml Version updated to 2.7.14, dependency pest updated to 2.7.14
pest/Cargo.toml Version updated to 2.7.14
vm/Cargo.toml Version updated to 2.7.14, dependencies pest and pest_meta updated to 2.7.14

Possibly related PRs

  • add validation for tags on silent rules (fixes #1035) #1036: This PR updates the Cargo.toml files for the pest_debugger, pest_derive, pest_generator, pest_grammars, pest_meta, and pest_vm packages, which is directly related to the version updates in the main PR for the same packages.
  • bump version and adjust CI guards #1039: This PR also includes updates to the Cargo.toml files for the pest, pest_debugger, pest_derive, pest_generator, pest_grammars, pest_meta, and pest_vm packages, reflecting version increments that align with the changes made in the main PR.

Suggested reviewers

  • NoahTheDuke

🐇 In the garden of code, we hop with glee,
Version numbers rise, as bright as can be!
Pest packages updated, dependencies aligned,
In the world of Rust, new features we'll find.
With each little change, our project will bloom,
A hop and a skip, we chase away gloom! 🌼


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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 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

📥 Commits

Files that changed from the base of the PR and between 1d029d9 and 0f76590.

📒 Files selected for processing (8)
  • debugger/Cargo.toml (2 hunks)
  • derive/Cargo.toml (2 hunks)
  • generator/Cargo.toml (2 hunks)
  • grammars/Cargo.toml (2 hunks)
  • meta/Cargo.toml (2 hunks)
  • pest/Cargo.toml (1 hunks)
  • pest/src/unicode/script.rs (23 hunks)
  • vm/Cargo.toml (2 hunks)
🔥 Files not summarized due to errors (1)
  • pest/src/unicode/script.rs: Error: Server error: no LLM provider could handle the message
✅ Files skipped from review due to trivial changes (4)
  • derive/Cargo.toml
  • generator/Cargo.toml
  • meta/Cargo.toml
  • pest/Cargo.toml
🧰 Additional context used
🔇 Additional comments (24)
grammars/Cargo.toml (2)

4-4: LGTM: Version updates are consistent.

The version updates for the package and its dependencies (pest and pest_derive) from 2.7.13 to 2.7.14 are consistent and appropriate for a minor update. This change aligns with standard versioning practices in Rust projects.

Also applies to: 17-18


Line range hint 1-32: Verify the unicode update mentioned in the PR objective.

The PR objective mentions updating unicode to version 16, but there's no direct reference to this update in the Cargo.toml file. Could you please clarify where and how the unicode update is implemented?

To help verify this, let's check for any mentions of unicode in the project:

✅ Verification successful

Unicode Update Confirmed in Codebase

The Unicode update to version 16 has been implemented directly within the project's source files. References to Unicode version 16.0.0 are present in the following locations:

  • pest/src/unicode/category.rs
  • pest/src/unicode/binary.rs
  • pest/src/unicode/script.rs
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for unicode-related changes or mentions in the project
rg -i "unicode" --type toml --type rust

Length of output: 2491

debugger/Cargo.toml (2)

4-4: LGTM: Version updates are consistent.

The package version and its dependencies (pest, pest_meta, pest_vm) have been consistently updated from 2.7.13 to 2.7.14. This change aligns with the PR summary and ensures version compatibility across the pest ecosystem.

Also applies to: 20-22


4-4: Verify the relation to unicode update.

While the version updates are clear, there's no explicit mention of a unicode update to version 16 in this file.

To ensure this change is related to the PR objective, please run the following script:

This script will help verify if there are unicode-related changes in the pest ecosystem that correspond to this version update.

Also applies to: 20-22

✅ Verification successful

Unicode Update Verified

The repository's codebase references Unicode version 16.0.0 in multiple files, confirming the relation to the version update.

  • pest/src/unicode/category.rs
  • pest/src/unicode/script.rs
  • pest/src/unicode/binary.rs
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for unicode-related changes in the pest ecosystem

# Test 1: Look for unicode-related changes in the main pest crate
echo "Checking for unicode changes in pest crate:"
rg --type rust -i "unicode" ../pest/src

# Test 2: Check for mentions of unicode update in changelog or release notes
echo "Checking for unicode mentions in CHANGELOG.md:"
rg -i "unicode" ../CHANGELOG.md

# Test 3: Look for unicode-related changes in other pest crates
echo "Checking for unicode changes in other pest crates:"
for dir in ../*/src; do
  if [[ "$dir" != "../pest/src" ]]; then
    echo "Checking $dir:"
    rg --type rust -i "unicode" "$dir"
  fi
done

Length of output: 690


Script:

#!/bin/bash
# Description: Search for 'unicode' related changes across the entire repository

# Search all Rust source files for 'unicode'
echo "Searching for 'unicode' in Rust source files:"
rg --type rust -i "unicode"

# Search all Markdown files for 'unicode' mentions (e.g., CHANGELOG.md)
echo "Searching for 'unicode' in Markdown files:"
rg --type markdown -i "unicode"

Length of output: 2719

pest/src/unicode/script.rs (20)

5-7: Unicode version update approved

The Unicode version has been correctly updated to 16.0.0. This change is in line with the PR objective to update Unicode to version 16.


25-29: New scripts added correctly

The new scripts "Elymaic", "Garay", and "Gurung_Khema" have been added to the BY_NAME array. These additions are consistent with the Unicode 16.0.0 update and maintain the alphabetical order.


38-39: New script "Kirat_Rai" added correctly

The new script "Kirat_Rai" has been added to the BY_NAME array. This addition is consistent with the Unicode 16.0.0 update and maintains the alphabetical order.


53-59: New scripts "Ol_Onal" and "Old_Uyghur" added correctly

The new scripts "Ol_Onal" and "Old_Uyghur" have been added to the BY_NAME array. These additions are consistent with the Unicode 16.0.0 update and maintain the alphabetical order of the list.


66-76: New scripts added correctly

The new scripts "Sunuwar", "Todhri", "Toto", "Tulu_Tigalari", and "Vithkuqi" have been added to the BY_NAME array. These additions are consistent with the Unicode 16.0.0 update and maintain the alphabetical order of the list.


5383-5417: OL_ONAL script data added

The OL_ONAL script constant and its associated Unicode data have been added. This addition is consistent with the Unicode 16.0.0 update and follows the structure of other script definitions in the file.

To verify the OL_ONAL script data, you can run the following command:

#!/bin/bash
# Description: Verify OL_ONAL script data against Unicode 16.0.0 specification
# Expect: The output should match the official Unicode 16.0.0 data for OL_ONAL script

# Search for OL_ONAL script data in the Unicode 16.0.0 specification
rg --type=text "OL_ONAL.*0x" /path/to/unicode16.0.0/specification

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


Line range hint 1865-1888: Extensive Unicode data update for unspecified script

The tree3_level1 and tree3_level3 arrays have been significantly updated for an unspecified script. While the changes appear consistent with the file's structure, it's recommended to:

  1. Identify which script this extensive data belongs to.
  2. Verify these values against the official Unicode 16.0.0 specification to ensure accuracy.

To identify the script and verify the data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


408-411: Unicode data updated for unspecified script

The tree2_level2 array has been updated for an unspecified script. While the changes appear consistent with the file's structure, it's recommended to:

  1. Identify which script this data belongs to.
  2. Verify these values against the official Unicode 16.0.0 specification to ensure accuracy.

To identify the script and verify the data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


2040-2074: GARAY script data added

The GARAY script constant and its associated Unicode data have been added. This addition is consistent with the Unicode 16.0.0 update and follows the structure of other script definitions in the file.

To verify the GARAY script data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


Line range hint 1610-1614: Unicode data updated for unspecified script

The tree2_level2 array has been updated for an unspecified script. While the changes appear consistent with the file's structure, it's recommended to:

  1. Identify which script this data belongs to.
  2. Verify these values against the official Unicode 16.0.0 specification to ensure accuracy.

To identify the script and verify the data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


3836-3839: Unicode data updated for unspecified script

The tree3_level3 array has been updated for an unspecified script. While the changes appear consistent with the file's structure, it's recommended to:

  1. Identify which script this data belongs to.
  2. Verify these values against the official Unicode 16.0.0 specification to ensure accuracy.

To identify the script and verify the data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


Line range hint 233-237: ADLAM script data updated

The tree2_level2 array for the ADLAM script has been updated. While the changes appear consistent with the file's structure, it's recommended to verify these values against the official Unicode 16.0.0 specification to ensure accuracy.

To verify the ADLAM script data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


Line range hint 262-266: ADLAM script data further updated

The tree3_level3 array for the ADLAM script has been updated. While the changes appear consistent with the file's structure, it's recommended to verify these values against the official Unicode 16.0.0 specification to ensure accuracy.

To verify the updated ADLAM script data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


3427-3429: Unicode data updated for unspecified script

The tree3_level3 array has been updated for an unspecified script. While the changes appear consistent with the file's structure, it's recommended to:

  1. Identify which script this data belongs to.
  2. Verify these values against the official Unicode 16.0.0 specification to ensure accuracy.

To identify the script and verify the data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


1367-1376: Tree structure update for unspecified script

An array of small integer values, likely part of the tree3_level1 data, has been updated for an unspecified script. While the changes appear consistent with the file's structure, it's recommended to:

  1. Identify which script this tree structure data belongs to.
  2. Verify these values against the official Unicode 16.0.0 specification to ensure accuracy.

To identify the script and verify the data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


3557-3559: Unicode data updated for unspecified script

The tree3_level3 array has been updated for an unspecified script. While the changes appear consistent with the file's structure, it's recommended to:

  1. Identify which script this data belongs to.
  2. Verify these values against the official Unicode 16.0.0 specification to ensure accuracy.

To identify the script and verify the data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


4955-4976: Extensive Unicode data update for unspecified script

The tree3_level1 and tree3_level2 arrays have been significantly updated for an unspecified script. While the changes appear consistent with the file's structure, it's recommended to:

  1. Identify which script this extensive data belongs to.
  2. Verify these values against the official Unicode 16.0.0 specification to ensure accuracy.

To identify the script and verify the data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


2512-2546: GURUNG_KHEMA script data added

The GURUNG_KHEMA script constant and its associated Unicode data have been added. This addition is consistent with the Unicode 16.0.0 update and follows the structure of other script definitions in the file.

To verify the GURUNG_KHEMA script data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


3689-3723: KIRAT_RAI script data added

The KIRAT_RAI script constant and its associated Unicode data have been added. This addition is consistent with the Unicode 16.0.0 update and follows the structure of other script definitions in the file.

To verify the KIRAT_RAI script data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.


Line range hint 1335-1394: Extensive Unicode data update for unspecified script

A large array of hexadecimal values, likely part of the tree3_level3 data, has been significantly updated for an unspecified script. While the changes appear consistent with the file's structure, it's recommended to:

  1. Identify which script this extensive data belongs to.
  2. Verify these values against the official Unicode 16.0.0 specification to ensure accuracy.

To identify the script and verify the data, you can run the following command:

Replace "/path/to/unicode16.0.0/specification" with the actual path to the Unicode 16.0.0 specification file.

vm/Cargo.toml Show resolved Hide resolved
@tomtau tomtau merged commit efc1971 into pest-parser:master Oct 14, 2024
9 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Dec 7, 2024
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.

1 participant