Skip to content

Comments

Cli#392

Merged
Stivenjs merged 8 commits intomainfrom
cli
Dec 24, 2025
Merged

Cli#392
Stivenjs merged 8 commits intomainfrom
cli

Conversation

@Stivenjs
Copy link
Contributor

@Stivenjs Stivenjs commented Dec 24, 2025

Note

Introduces CI and modernizes the native package while making small performance/ergonomic tweaks.

  • Adds GitHub Actions workflow /.github/workflows/rust.yml to run cargo check, cargo test, and cargo clippy for packages/liquid-forge-native
  • Upgrades N-API stack in Cargo.toml (napi/napi-derive to 3.x, napi-build to 2.3) and adds rlib to crate-type; bumps criterion to 0.8
  • Updates benches and examples (use std::hint::black_box, refined benchmark/usage scripts)
  • Tweaks HTML filters in src/filters/html.rs (pattern-based contains and newline replacement)
  • Updates package.json (description, @napi-rs/cli ^3.5.0, require Node >=20) and VSCode settings (rust-analyzer.linkedProjects)
  • Refreshes lockfile entries to match new tooling/deps

Written by Cursor Bugbot for commit 6f746a4. This will update automatically on new commits. Configure here.

… and usage examples

This commit modifies the package description in `package.json` for clarity. Additionally, it removes unnecessary comments and whitespace from the `benchmark.js` and `usage.js` example files, enhancing readability and maintaining focus on the core functionality of the native filters.
This commit adds a linked project configuration for the Rust analyzer in the VSCode settings and updates the `Cargo.toml` file to include an additional crate type for the `liquid-forge-native` package. These changes enhance the development environment and improve the build capabilities of the native filters.
This commit optimizes the `escape` and `newline_to_br` functions in the HTML filter by simplifying the character checks and replacements. The changes enhance performance by using array-based checks and replacements, improving the overall efficiency of the text processing in the native filters.
This commit modifies the GitHub Actions workflow for Rust by changing the `cargo check` command to focus solely on library targets instead of all targets. This adjustment streamlines the check process, improving efficiency during the CI pipeline.
This commit modifies the GitHub Actions workflow for Rust to ensure that the `cargo test` and `cargo clippy` commands are executed specifically for library targets. This change aligns with previous updates to streamline the CI process and improve efficiency.
…performance

This commit updates the GitHub Actions workflow to specify the target architecture for `cargo check`, `cargo test`, and `cargo clippy`, ensuring consistency in builds. Additionally, it upgrades the `napi`, `napi-derive`, `napi-build`, and `criterion` dependencies in the `Cargo.toml` file to their latest versions, enhancing compatibility and performance in the `liquid-forge-native` package. The benchmark file is also modified to include the `black_box` function for better benchmarking accuracy.
…ge-native

This commit upgrades the '@napi-rs/cli' dependency to version 3.5.0 in both the pnpm-lock.yaml and package.json files. Additionally, it updates the Node.js engine requirement in package.json to version 20 or higher, ensuring compatibility with the latest features and improvements.
@Stivenjs Stivenjs merged commit 1858eac into main Dec 24, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant