mirror of
https://github.com/jehna/humanify.git
synced 2026-04-27 01:26:00 +03:00
[PR #734] Add Rust implementation of JS variable renamer (humanify-rs) #731
Labels
No labels
bug
enhancement
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/humanify#731
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jehna/humanify/pull/734
Author: @jehna
Created: 2/1/2026
Status: 🔄 Open
Base:
main← Head:claude/rust-ast-rewrite-SjZI6📝 Commits (4)
48f00c8Add Rust implementation of JS variable renamer (humanify-rs)b0f85f3Add LLM inference module with llama.cpp bindings01cbb29Add LocalRenamer and unminify module for local LLM variable renaming265b7efAdd CLI binary for humanify-rs with local and download commands📊 Changes
14 files changed (+4395 additions, -0 deletions)
View changed files
➕
humanify-rs/.gitignore(+1 -0)➕
humanify-rs/Cargo.lock(+1966 -0)➕
humanify-rs/Cargo.toml(+42 -0)➕
humanify-rs/src/bin/humanify.rs(+258 -0)➕
humanify-rs/src/error.rs(+19 -0)➕
humanify-rs/src/identifier.rs(+166 -0)➕
humanify-rs/src/lib.rs(+37 -0)➕
humanify-rs/src/llm/grammar.rs(+282 -0)➕
humanify-rs/src/llm/mod.rs(+23 -0)➕
humanify-rs/src/llm/model.rs(+253 -0)➕
humanify-rs/src/llm/prompt.rs(+282 -0)➕
humanify-rs/src/llm/unminify.rs(+286 -0)➕
humanify-rs/src/renamer.rs(+87 -0)➕
humanify-rs/src/visitor.rs(+693 -0)📄 Description
This is a Rust rewrite of the core JS AST traversal and variable renaming functionality. Key features:
The implementation passes 24 tests ported from the TypeScript version, covering scope ordering, shadowing, class methods, object properties, and various edge cases.
https://claude.ai/code/session_019FrkBNBMtr3yPtHoYzKHDa
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.