@ohos-ports/node-rs-crc32-openharmony-arm64 1.10.8-beta.0 → 1.10.8-beta.2

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 ADDED
@@ -0,0 +1,18 @@
1
+ # `@ohos-ports/node-rs-crc32-openharmony-arm64`
2
+
3
+ This is the **OpenHarmony arm64** binary port of [`@node-rs/crc32`](https://github.com/napi-rs/node-rs) (upstream version `1.10.8`).
4
+
5
+ - Compiled from source (crate `node-rs-crc32` at tag `@node-rs/crc32@1.10.8`, commit `56c64a1f875d9568b0a6a79b6c658ce5996d25a2`) with Rust target `aarch64-unknown-linux-ohos`
6
+ - Contains a signed ELF `crc32.openharmony-arm64.node` (HarmonyOS musl compatible, NEEDED: libc.so only)
7
+ - Runtime: HarmonyOS (OpenHarmony) on arm64, Node.js >= 10
8
+
9
+ ## Usage
10
+
11
+ ```js
12
+ const { crc32, crc32c } = require('@ohos-ports/node-rs-crc32-openharmony-arm64')
13
+
14
+ crc32(Buffer.from('123456789')) // 3421780262
15
+ crc32c(Buffer.from('123456789')) // 3808858755
16
+ ```
17
+
18
+ License: MIT (originally by LongYinan, ported by ohos-ports).
Binary file
package/package.json CHANGED
@@ -1,22 +1,41 @@
1
1
  {
2
2
  "name": "@ohos-ports/node-rs-crc32-openharmony-arm64",
3
- "version": "1.10.8-beta.0",
3
+ "version": "1.10.8-beta.2",
4
4
  "cpu": [
5
5
  "arm64"
6
6
  ],
7
- "os": [
8
- "openharmony"
9
- ],
10
7
  "main": "crc32.openharmony-arm64.node",
11
8
  "files": [
12
- "crc32.openharmony-arm64.node",
13
- "OHOS-BUILD-NOTES.md"
9
+ "crc32.openharmony-arm64.node"
14
10
  ],
15
11
  "description": "SIMD crc32",
12
+ "keywords": [
13
+ "NAPI",
14
+ "SIMD",
15
+ "crc32",
16
+ "crc32c",
17
+ "napi-rs",
18
+ "node-rs"
19
+ ],
20
+ "author": "LongYinan <lynweklm@gmail.com>",
21
+ "homepage": "https://github.com/napi-rs/node-rs",
16
22
  "license": "MIT",
23
+ "engines": {
24
+ "node": ">= 10"
25
+ },
17
26
  "repository": {
18
27
  "type": "git",
19
- "url": "https://github.com/ohos-ports/ohos-ports.git",
20
- "directory": "ports/@node-rs/crc32-openharmony-arm64/1.10.8"
21
- }
28
+ "url": "git+https://github.com/ohos-ports/ohos-ports.git",
29
+ "directory": "ports/node-rs-crc32-openharmony-arm64/1.10.8"
30
+ },
31
+ "bugs": {
32
+ "url": "https://github.com/ohos-ports/ohos-ports/issues"
33
+ },
34
+ "publishConfig": {
35
+ "registry": "https://registry.npmjs.org/",
36
+ "access": "public"
37
+ },
38
+ "os": [
39
+ "openharmony"
40
+ ]
22
41
  }
@@ -1,3 +0,0 @@
1
- # OHOS build notes (@ohos-ports/node-rs-crc32-openharmony-arm64 1.10.8)
2
- - Toolchain: cargo 1.95.0 --target aarch64-unknown-linux-ohos; source GitHub napi-rs/node-rs @node-rs/crc32@1.10.8; 39s
3
- - Signed with binary-sign-tool (HMAC self-sign); dlopen-verified on HarmonyOS user-space node v26.8.2 (process.platform=openharmony)