rust-anything 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,10 +4,14 @@
4
4
 
5
5
  <h1 align="center">rust-anything</h1>
6
6
 
7
+ <p align="center">by <a href="https://github.com/erkamyaman">erKam Yaman</a></p>
8
+
7
9
  <p align="center"><em>Rewrite your whole app in Rust. Keep it working the whole way.</em></p>
8
10
 
9
11
  <p align="center"><em>CLIs, servers and libraries, piece by piece, checked against the original at every step.</em></p>
10
12
 
13
+ <p align="center">Node.js and TypeScript · Python · C · Go · Ruby · Java · PHP and C# in preview</p>
14
+
11
15
  <p align="center">
12
16
  <a href="https://crates.io/crates/rust-anything"><img src="https://img.shields.io/crates/v/rust-anything?color=E2862A&label=crates.io" alt="crates.io version"></a>
13
17
  <a href="https://www.npmjs.com/package/rust-anything"><img src="https://img.shields.io/npm/v/rust-anything?color=E2862A&label=npm" alt="npm version"></a>
@@ -20,8 +24,12 @@
20
24
 
21
25
  <p align="center">up to 20x faster · 38,251 recorded cases replayed · 0 mismatches · one command</p>
22
26
 
27
+ <p align="center">
28
+ <img src="docs/assets/race.gif" alt="Typing user.profile into x18n's search over 50,000 keys: TypeScript spends 143 ms, the rust-anything batch 6.9 ms, with the same results at every keystroke." width="820">
29
+ </p>
30
+
23
31
  **Rewrite your whole app in Rust, one piece at a time.** rust-anything records what your
24
- TypeScript/JavaScript, Python, C, Go, Ruby or Java app does today, then checks every piece of the
32
+ Node.js (TypeScript/JavaScript), Python, C, Go, Ruby or Java app does today, then checks every piece of the
25
33
  Rust rewrite against that recording before it moves on, until the app is pure Rust. CLIs, HTTP
26
34
  servers and libraries; your coding agent (or you) writes the Rust. It can only catch what the
27
35
  recording covers: see [What it can't catch](#what-it-cant-catch). Only need the slow part fast?
@@ -36,10 +44,6 @@ Port just that, one hot path at a time:
36
44
  | `Slugify` over 50,000 strings (Go) | 49 ms | **4x faster** |
37
45
  | `slugify` over 50,000 strings (Java) | 43 ms | **3x faster** |
38
46
 
39
- <p align="center">
40
- <img src="docs/assets/race.gif" alt="Typing user.profile into x18n's search over 50,000 keys: TypeScript spends 143 ms, the rust-anything batch 6.9 ms, with the same results at every keystroke." width="820">
41
- </p>
42
-
43
47
  Measured on 4 cores; every number has a benchmark in [`demo/`](./demo) that first checks the
44
48
  results are identical. Calling Rust once per small function is usually *slower* than a JIT;
45
49
  rust-anything finds the loop worth moving, and moves it.
@@ -101,7 +105,6 @@ Or run the steps yourself:
101
105
  <img src="docs/assets/terminal.gif" alt="rust-anything profile finds fuzzyScore in a loop, bridge --batch generates the Rust crate, gate passes with 2000/2000 recorded cases, and the benchmark shows 20.7x faster than TS." width="820">
102
106
  </p>
103
107
 
104
-
105
108
  ```sh
106
109
  rust-anything profile . -- node bench.mjs # what is hot, and who calls it
107
110
  rust-anything bridge . src/fuzzy.ts --batch fuzzyScore:text
@@ -506,7 +509,6 @@ cargo fmt
506
509
 
507
510
  Design choices and their reasons: [DECISIONS.md](./DECISIONS.md).
508
511
 
509
-
510
512
  ## Update or remove
511
513
 
512
514
  ```sh
@@ -612,12 +614,41 @@ sends it, under its own policy.
612
614
 
613
615
  **Something broke.** Open an issue with the command, its output and your platform.
614
616
 
617
+ ## Sponsors
618
+
619
+ rust-anything is free and open source. If it helps your work, please consider sponsoring it. Your support keeps development going.
620
+
621
+ <p>
622
+ <a href="https://github.com/sponsors/erkamyaman"><img src="https://img.shields.io/badge/Sponsor-%E2%9D%A4-db61a2?logo=githubsponsors&logoColor=white" alt="Sponsor rust-anything on GitHub" /></a>
623
+ </p>
624
+
625
+ ### Company sponsors
626
+
627
+ <!-- prettier-ignore-start -->
628
+ <a href="https://coderabbit.ai"><img src="https://github.com/coderabbitai.png?size=120" width="120" height="120" alt="CodeRabbit" /></a>
629
+ <!-- prettier-ignore-end -->
630
+
631
+ ### Individual sponsors
632
+
633
+ <!-- sponsors -->
634
+ <!-- prettier-ignore-start -->
635
+ <table>
636
+ <tbody>
637
+ <tr>
638
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/aliyilmazco"><img src="https://github.com/aliyilmazco.png?size=100" width="80px;" alt="Ali Yilmaz"/><br /><sub><b>Ali Yilmaz</b></sub></a></td>
639
+ </tr>
640
+ </tbody>
641
+ </table>
642
+ <!-- prettier-ignore-end -->
643
+ <!-- /sponsors -->
644
+
615
645
  ## Contributing
616
646
 
617
- Issues and pull requests are welcome. Before a pull request: `cargo fmt`, `cargo clippy
618
- --all-targets -- -D warnings` and `cargo test` must pass (see [Development](#development)); design
619
- choices and their reasons are in [DECISIONS.md](./DECISIONS.md). Case studies of real ports are
620
- especially welcome.
647
+ Issues and pull requests are welcome; [CONTRIBUTING.md](./CONTRIBUTING.md) covers the setup, where
648
+ tests go, and how to add a language. Design choices and their reasons are in
649
+ [DECISIONS.md](./DECISIONS.md). Case studies of real ports are especially welcome. Please report
650
+ security problems privately ([SECURITY.md](./SECURITY.md)), and see the
651
+ [code of conduct](./CODE_OF_CONDUCT.md).
621
652
 
622
653
  ## License
623
654
 
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rust-anything",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Rewrite your app in Rust, one piece at a time, checked against the original's recorded behavior at every step. TypeScript, Python, C, Go, Ruby, Java.",
5
5
  "keywords": [
6
6
  "rust",