@push.rocks/smartsamba 0.2.0 → 0.3.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/.smartconfig.json +16 -5
- package/dist_rust/rustsamba_linux_amd64 +0 -0
- package/dist_rust/rustsamba_linux_arm64 +0 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/package.json +14 -14
- package/readme.hints.md +9 -0
- package/ts/00_commitinfo_data.ts +1 -1
- package/dist_rust/rustsamba +0 -0
package/.smartconfig.json
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"@git.zone/tsrust": {
|
|
3
|
+
"targets": [
|
|
4
|
+
"linux_amd64",
|
|
5
|
+
"linux_arm64"
|
|
6
|
+
],
|
|
7
|
+
"static": true
|
|
8
|
+
},
|
|
2
9
|
"@git.zone/cli": {
|
|
3
10
|
"projectType": "npm",
|
|
4
11
|
"module": {
|
|
@@ -22,11 +29,15 @@
|
|
|
22
29
|
]
|
|
23
30
|
},
|
|
24
31
|
"release": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
"targets": {
|
|
33
|
+
"npm": {
|
|
34
|
+
"registries": [
|
|
35
|
+
"https://verdaccio.lossless.digital",
|
|
36
|
+
"https://registry.npmjs.org"
|
|
37
|
+
],
|
|
38
|
+
"accessLevel": "public"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
30
41
|
}
|
|
31
42
|
}
|
|
32
43
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartsamba',
|
|
6
|
-
version: '0.
|
|
6
|
+
version: '0.3.0',
|
|
7
7
|
description: 'A TypeScript Samba/SMB client and server module backed by an embedded Rust SMB engine.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHdGQUF3RjtDQUN0RyxDQUFBIn0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@push.rocks/smartsamba",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A TypeScript Samba/SMB client and server module backed by an embedded Rust SMB engine.",
|
|
6
6
|
"exports": {
|
|
@@ -11,18 +11,11 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"author": "Task Venture Capital GmbH <hello@task.vc>",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"scripts": {
|
|
15
|
-
"test:before": "tsrust",
|
|
16
|
-
"pretest": "tsrust",
|
|
17
|
-
"test": "tstest test/ --verbose --timeout 60 --logfile",
|
|
18
|
-
"build": "tsbuild tsfolders && tsrust",
|
|
19
|
-
"buildDocs": "tsdoc"
|
|
20
|
-
},
|
|
21
14
|
"devDependencies": {
|
|
22
|
-
"@git.zone/tsbuild": "^4.4.
|
|
23
|
-
"@git.zone/tsrust": "^1.
|
|
24
|
-
"@git.zone/tstest": "^3.6.
|
|
25
|
-
"@types/node": "^25.
|
|
15
|
+
"@git.zone/tsbuild": "^4.4.2",
|
|
16
|
+
"@git.zone/tsrust": "^1.4.1",
|
|
17
|
+
"@git.zone/tstest": "^3.6.6",
|
|
18
|
+
"@types/node": "^25.9.1",
|
|
26
19
|
"typescript": "^6.0.3"
|
|
27
20
|
},
|
|
28
21
|
"dependencies": {
|
|
@@ -64,5 +57,12 @@
|
|
|
64
57
|
"browserslist": [
|
|
65
58
|
"last 1 chrome versions"
|
|
66
59
|
],
|
|
67
|
-
"
|
|
68
|
-
|
|
60
|
+
"scripts": {
|
|
61
|
+
"test:before": "tsrust",
|
|
62
|
+
"pretest": "tsrust",
|
|
63
|
+
"test": "tstest test/ --verbose --timeout 60 --logfile",
|
|
64
|
+
"test:rust": "cd rust && cargo test",
|
|
65
|
+
"build": "tsbuild tsfolders && tsrust",
|
|
66
|
+
"buildDocs": "tsdoc"
|
|
67
|
+
}
|
|
68
|
+
}
|
package/readme.hints.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# smartsamba hints
|
|
2
|
+
|
|
3
|
+
## Static Rust Binaries
|
|
4
|
+
|
|
5
|
+
- The Rust binaries in `dist_rust/` are statically linked (static-pie) via `"static": true` in the `@git.zone/tsrust` block of `.smartconfig.json` (tsrust >= 1.4.1). They run on both glibc (Debian/Ubuntu) and musl (Alpine) systems.
|
|
6
|
+
- Since adopting the standard `linux_amd64`/`linux_arm64` targets, output binaries are suffixed (`rustsamba_linux_amd64`, `rustsamba_linux_arm64`) instead of the former native-only unsuffixed `rustsamba`; the TS loader resolves suffixed names first with an unsuffixed fallback (ts/index.ts).
|
|
7
|
+
- tsrust injects `RUSTFLAGS="-C target-feature=+crt-static"` only into its own per-target cargo invocations and verifies the result (no `PT_INTERP` ELF header). Keep `rust/.cargo/config.toml` free of `rustflags` entries: the injected env variable would replace them, and a repo-wide `rustflags` would also break plain `cargo test`/`cargo check` (proc-macros cannot build with `+crt-static` on linux-gnu without an explicit `--target`).
|
|
8
|
+
- `pnpm run test:rust` runs the Rust unit tests; plain `cargo test` in `rust/` works as well.
|
|
9
|
+
- Verify linkage manually with `ldd dist_rust/<binary>_linux_amd64` → "statically linked".
|
package/ts/00_commitinfo_data.ts
CHANGED
package/dist_rust/rustsamba
DELETED
|
Binary file
|