@ohos-ports/rspack-binding 1.7.11-beta.0 → 1.7.11-beta.1

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
@@ -1,21 +1,21 @@
1
- <picture>
2
- <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
3
- </picture>
1
+ # @ohos-ports/rspack-binding
4
2
 
5
- # @rspack/binding
3
+ OpenHarmony ARM64 native build for [@rspack/binding](https://www.npmjs.com/package/@rspack/binding).
6
4
 
7
- Private node binding crate for rspack.
5
+ This package contains a pre-compiled `rspack.linux-arm64-ohos.node` native binary for HarmonyOS (OpenHarmony) ARM64 platform.
8
6
 
9
- > Rspack's internal package, don't use it directly in your project, This package does _NOT_ follow [semantic versioning](https://semver.org/).
7
+ ## Installation
10
8
 
11
- ## Documentation
9
+ ```bash
10
+ npm install @ohos-ports/rspack-binding
11
+ ```
12
12
 
13
- See [https://rspack.rs](https://rspack.rs) for details.
13
+ This is a platform-specific package and is intended to be used as an optional dependency by packages that depend on `@rspack/binding`.
14
14
 
15
- ## Update Wasm binding
15
+ ## Build Information
16
16
 
17
- The generation of `rspack.wasi-browser.js` and `rspack.wasi.js` is disabled by default because `@napi/cli` produces unstable output for these files. To update the Wasm bindings, add `wasm32-wasip1-threads` to the `napi.targets` field in `package.json` before building the project.
18
-
19
- ## License
20
-
21
- Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
17
+ - **Source**: [rspack v1.7.11](https://github.com/web-infra-dev/rspack)
18
+ - **Target**: `aarch64-unknown-linux-ohos`
19
+ - **Toolchain**: OHOS Rust 1.95.0 (stable) + clang 15.0.4 + LLD 15.0.4
20
+ - **Binary size**: ~47MB (stripped ELF64 AArch64)
21
+ - **Exports**: 67 (49 functions + 18 constants/enums)
package/package.json CHANGED
@@ -1,77 +1,39 @@
1
1
  {
2
- "name": "@ohos-ports/rspack-binding",
3
- "version": "1.7.11-beta.0",
4
- "license": "MIT",
5
- "description": "Node binding for rspack",
6
- "main": "binding.js",
7
- "types": "binding.d.ts",
8
- "publishConfig": {
9
- "access": "public"
10
- },
11
- "files": [
12
- "binding.js",
13
- "binding.d.ts",
14
- "napi-binding.d.ts",
15
- "webcontainer-fallback.cjs",
16
- "rspack.linux-arm64-ohos.node"
17
- ],
18
- "homepage": "https://rspack.rs",
19
- "bugs": "https://github.com/web-infra-dev/rspack/issues",
20
- "repository": "web-infra-dev/rspack",
21
- "devDependencies": {
22
- "@napi-rs/cli": "3.0.4",
23
- "@napi-rs/wasm-runtime": "1.0.7",
24
- "emnapi": "1.8.1",
25
- "typescript": "^5.9.3"
26
- },
27
- "napi": {
28
- "binaryName": "rspack",
29
- "packageName": "@rspack/binding",
30
- "targets": [
31
- "x86_64-apple-darwin",
32
- "x86_64-pc-windows-msvc",
33
- "x86_64-unknown-linux-gnu",
34
- "x86_64-unknown-linux-musl",
35
- "x86_64-unknown-freebsd",
36
- "i686-pc-windows-msvc",
37
- "armv7-unknown-linux-gnueabihf",
38
- "aarch64-unknown-linux-gnu",
39
- "aarch64-apple-darwin",
40
- "aarch64-unknown-linux-musl",
41
- "aarch64-pc-windows-msvc"
42
- ],
43
- "wasm": {
44
- "initialMemory": 16384,
45
- "browser": {
46
- "fs": true,
47
- "asyncInit": true,
48
- "buffer": true
49
- }
50
- }
51
- },
52
- "optionalDependencies": {
53
- "@rspack/binding-darwin-arm64": "1.7.11",
54
- "@rspack/binding-win32-arm64-msvc": "1.7.11",
55
- "@rspack/binding-linux-arm64-musl": "1.7.11",
56
- "@rspack/binding-linux-arm64-gnu": "1.7.11",
57
- "@rspack/binding-win32-ia32-msvc": "1.7.11",
58
- "@rspack/binding-darwin-x64": "1.7.11",
59
- "@rspack/binding-win32-x64-msvc": "1.7.11",
60
- "@rspack/binding-wasm32-wasi": "1.7.11",
61
- "@rspack/binding-linux-x64-gnu": "1.7.11",
62
- "@rspack/binding-linux-x64-musl": "1.7.11"
63
- },
64
- "scripts": {
65
- "build:dev": "node scripts/build.js",
66
- "build:debug": "node scripts/build.js --profile release-debug",
67
- "build:ci": "node scripts/build.js --profile ci",
68
- "build:profiling": "node scripts/build.js --profile profiling",
69
- "build:release": "node scripts/build.js --profile release",
70
- "build:dev:wasm": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads node scripts/build.js",
71
- "build:release:wasm": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads node scripts/build.js --profile release-wasi",
72
- "build:dev:browser": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads RSPACK_TARGET_BROWSER=1 node scripts/build.js",
73
- "build:release:browser": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads RSPACK_TARGET_BROWSER=1 node scripts/build.js --profile release-wasi",
74
- "move-binding": "node scripts/move-binding",
75
- "test": "tsc -p tsconfig.type-test.json"
76
- }
2
+ "name": "@ohos-ports/rspack-binding",
3
+ "version": "1.7.11-beta.1",
4
+ "license": "MIT",
5
+ "description": "Node binding for rspack — OpenHarmony ARM64 native build",
6
+ "main": "binding.js",
7
+ "types": "binding.d.ts",
8
+ "files": [
9
+ "binding.js",
10
+ "binding.d.ts",
11
+ "napi-binding.d.ts",
12
+ "webcontainer-fallback.cjs",
13
+ "rspack.linux-arm64-ohos.node",
14
+ "LICENSE",
15
+ "README.md"
16
+ ],
17
+ "os": [
18
+ "openharmony"
19
+ ],
20
+ "cpu": [
21
+ "arm64"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "homepage": "https://rspack.rs",
27
+ "bugs": "https://github.com/web-infra-dev/rspack/issues",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/web-infra-dev/rspack"
31
+ },
32
+ "napi": {
33
+ "binaryName": "rspack",
34
+ "packageName": "@ohos-ports/rspack-binding",
35
+ "targets": [
36
+ "aarch64-unknown-linux-ohos"
37
+ ]
38
+ }
77
39
  }
Binary file