@swiftbrowser/wasm-sdk-icu 0.0.0-stage → 0.9.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
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @swiftbrowser/wasm-sdk-icu
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
lib_FoundationICU.a, which Foundation links, with its data member emptied in place (an object of the same size that defines nothing): a build links trimmed ICU data that defines the member's symbol, and the emptied member compresses away. The data itself is @swiftbrowser/wasm-sdk-icu-data.
|
|
4
|
+
|
|
5
|
+
One of the packages that carry the Swift SDK for WebAssembly (swift-6.4.0-RELEASE_wasm)
|
|
6
|
+
for SwiftBrowser, split by who needs which files:
|
|
7
|
+
|
|
8
|
+
| Package | Contents |
|
|
9
|
+
| --- | --- |
|
|
10
|
+
| @swiftbrowser/wasm-sdk | the WASI sysroot, clang's headers, the standard library |
|
|
11
|
+
| @swiftbrowser/wasm-sdk-foundation | Foundation and CoreFoundation |
|
|
12
|
+
| @swiftbrowser/wasm-sdk-icu | lib_FoundationICU.a, its data member emptied |
|
|
13
|
+
| @swiftbrowser/wasm-sdk-icu-data | ICU's whole data package |
|
|
14
|
+
| @swiftbrowser/wasm-sdk-testing | XCTest and Swift Testing |
|
|
15
|
+
| @swiftbrowser/wasm-sdk-cxx | libc++'s headers and C++ interop |
|
|
16
|
+
|
|
17
|
+
Each keeps its files at their paths in the SDK's `wasm32-unknown-wasip1`
|
|
18
|
+
directory, and lists them in `files.json`, so the SDK is the packages laid
|
|
19
|
+
over each other. [@swiftbrowser/cli](https://www.npmjs.com/package/@swiftbrowser/cli)
|
|
20
|
+
does that when it compiles with the Swift compiler built as WebAssembly and
|
|
21
|
+
no Swift is installed (`swiftbrowser doctor --install`), and SwiftBrowser's
|
|
22
|
+
playground fetches the files it needs from them. The files are the SDK's,
|
|
23
|
+
unchanged but for ICU's data moving out of its archive; the dynamic-linking
|
|
24
|
+
libraries, Embedded Swift and the modules' documentation are left out. See
|
|
25
|
+
LICENSE.txt for the licenses of what they contain.
|
package/files.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swiftbrowser/wasm-sdk-icu",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "ICU's code for the Swift SDK for WebAssembly's Foundation: lib_FoundationICU.a, its 34 MB data member emptied (Swift 6.4.0, wasm32-unknown-wasip1).",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/noya-app/SwiftBrowser.git",
|
|
9
|
+
"directory": "packages/wasm-sdk-icu"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"wasm32-unknown-wasip1",
|
|
13
|
+
"files.json",
|
|
14
|
+
"LICENSE.txt",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"prepack": "node ../wasm-sdk/pack-sdk.mjs --check wasm-sdk-icu"
|
|
19
|
+
}
|
|
20
|
+
}
|