happy-rusty 1.0.7 → 1.0.8
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.cn.md +18 -3
- package/README.md +18 -3
- package/package.json +13 -13
package/README.cn.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
[](https://npmjs.org/package/happy-rusty)
|
|
2
|
+
[](https://jsr.io/@happy-js/happy-rusty)
|
|
3
|
+
[](https://jsr.io/@happy-js/happy-rusty/score)
|
|
4
|
+
[](https://github.com/jiangjie/happy-rusty/actions/workflows/test.yml)
|
|
5
|
+
|
|
1
6
|
# 在JavaScript中使用Rust特性
|
|
2
7
|
|
|
3
8
|
## 部分支持的特性
|
|
@@ -9,16 +14,26 @@
|
|
|
9
14
|
|
|
10
15
|
## 安装
|
|
11
16
|
|
|
12
|
-
|
|
17
|
+
pnpm
|
|
18
|
+
```
|
|
19
|
+
pnpm add happy-rusty
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
yarn
|
|
13
23
|
```
|
|
14
|
-
|
|
24
|
+
yarn add happy-rusty
|
|
15
25
|
```
|
|
16
26
|
|
|
17
|
-
|
|
27
|
+
npm
|
|
18
28
|
```
|
|
19
29
|
npm install --save happy-rusty
|
|
20
30
|
```
|
|
21
31
|
|
|
32
|
+
通过 JSR
|
|
33
|
+
```
|
|
34
|
+
jsr add @happy-js/happy-rusty
|
|
35
|
+
```
|
|
36
|
+
|
|
22
37
|
通过 deno
|
|
23
38
|
```
|
|
24
39
|
deno add @happy-js/happy-rusty
|
package/README.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
<a href="README.cn.md">[中文]</a>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
+
[](https://npmjs.org/package/happy-rusty)
|
|
6
|
+
[](https://jsr.io/@happy-js/happy-rusty)
|
|
7
|
+
[](https://jsr.io/@happy-js/happy-rusty/score)
|
|
8
|
+
[](https://github.com/jiangjie/happy-rusty/actions/workflows/test.yml)
|
|
9
|
+
|
|
5
10
|
# Use Rust features in JavaScript happily
|
|
6
11
|
|
|
7
12
|
## Partial supported
|
|
@@ -9,13 +14,18 @@
|
|
|
9
14
|
* [option](https://doc.rust-lang.org/core/option/index.html)
|
|
10
15
|
* [result](https://doc.rust-lang.org/core/result/index.html)
|
|
11
16
|
|
|
12
|
-
|
|
17
|
+
### More is coming
|
|
13
18
|
|
|
14
19
|
## Installation
|
|
15
20
|
|
|
16
|
-
|
|
21
|
+
via pnpm
|
|
22
|
+
```
|
|
23
|
+
pnpm add happy-rusty
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
or via yarn
|
|
17
27
|
```
|
|
18
|
-
|
|
28
|
+
yarn add happy-rusty
|
|
19
29
|
```
|
|
20
30
|
|
|
21
31
|
or just from npm
|
|
@@ -23,6 +33,11 @@ or just from npm
|
|
|
23
33
|
npm install --save happy-rusty
|
|
24
34
|
```
|
|
25
35
|
|
|
36
|
+
via JSR
|
|
37
|
+
```
|
|
38
|
+
jsr add @happy-js/happy-rusty
|
|
39
|
+
```
|
|
40
|
+
|
|
26
41
|
for deno
|
|
27
42
|
```
|
|
28
43
|
deno add @happy-js/happy-rusty
|
package/package.json
CHANGED
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
"description": "Porting some excellent design implementations from Rust to JavaScript.",
|
|
4
4
|
"author": "jiang115jie@gmail.com",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.8",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"source": "
|
|
9
|
-
"main": "
|
|
10
|
-
"module": "
|
|
11
|
-
"types": "
|
|
12
|
-
"exports": "./src/mod.ts",
|
|
8
|
+
"source": "src/mod.ts",
|
|
9
|
+
"main": "dist/main.cjs",
|
|
10
|
+
"module": "dist/main.mjs",
|
|
11
|
+
"types": "dist/types.d.ts",
|
|
13
12
|
"files": [
|
|
14
13
|
"LICENSE",
|
|
15
14
|
"README.md",
|
|
@@ -20,12 +19,12 @@
|
|
|
20
19
|
],
|
|
21
20
|
"sideEffects": false,
|
|
22
21
|
"scripts": {
|
|
23
|
-
"check": "
|
|
24
|
-
"lint": "
|
|
25
|
-
"prebuild": "
|
|
26
|
-
"build": "
|
|
27
|
-
"test": "bun test",
|
|
28
|
-
"prepublishOnly": "
|
|
22
|
+
"check": "pnpm exec tsc --noEmit",
|
|
23
|
+
"lint": "pnpm exec eslint src/",
|
|
24
|
+
"prebuild": "pnpm exec rimraf dist && pnpm run check && pnpm run lint",
|
|
25
|
+
"build": "pnpm exec rollup --config rollup.config.mjs",
|
|
26
|
+
"test": "bun test --coverage",
|
|
27
|
+
"prepublishOnly": "pnpm run build"
|
|
29
28
|
},
|
|
30
29
|
"repository": {
|
|
31
30
|
"type": "git",
|
|
@@ -51,5 +50,6 @@
|
|
|
51
50
|
"rollup-plugin-dts": "^6.1.0",
|
|
52
51
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
53
52
|
"typescript": "^5.4.5"
|
|
54
|
-
}
|
|
53
|
+
},
|
|
54
|
+
"packageManager": "pnpm@9.1.1+sha512.14e915759c11f77eac07faba4d019c193ec8637229e62ec99eefb7cf3c3b75c64447882b7c485142451ee3a6b408059cdfb7b7fa0341b975f12d0f7629c71195"
|
|
55
55
|
}
|