@push.rocks/smartdb 2.10.2 → 2.10.3

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 CHANGED
@@ -21,11 +21,15 @@
21
21
  ]
22
22
  },
23
23
  "release": {
24
- "registries": [
25
- "https://verdaccio.lossless.digital",
26
- "https://registry.npmjs.org"
27
- ],
28
- "accessLevel": "public"
24
+ "targets": {
25
+ "npm": {
26
+ "registries": [
27
+ "https://verdaccio.lossless.digital",
28
+ "https://registry.npmjs.org"
29
+ ],
30
+ "accessLevel": "public"
31
+ }
32
+ }
29
33
  },
30
34
  "services": []
31
35
  },
@@ -44,7 +48,8 @@
44
48
  ]
45
49
  },
46
50
  "@git.zone/tsrust": {
47
- "targets": ["linux_amd64", "linux_arm64"]
51
+ "targets": ["linux_amd64", "linux_arm64"],
52
+ "static": true
48
53
  },
49
54
  "@ship.zone/szci": {
50
55
  "npmGlobalTools": []
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartdb',
6
- version: '2.10.2',
6
+ version: '2.10.3',
7
7
  description: 'A MongoDB-compatible embedded database server with wire protocol support, backed by a high-performance Rust engine.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxxQkFBcUI7SUFDM0IsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHFIQUFxSDtDQUNuSSxDQUFBIn0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@push.rocks/smartdb",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "private": false,
5
5
  "description": "A MongoDB-compatible embedded database server with wire protocol support, backed by a high-performance Rust engine.",
6
6
  "exports": {
@@ -15,7 +15,7 @@
15
15
  "@git.zone/tsbuild": "^4.4.2",
16
16
  "@git.zone/tsbundle": "^2.10.4",
17
17
  "@git.zone/tsrun": "^2.0.4",
18
- "@git.zone/tsrust": "^1.3.4",
18
+ "@git.zone/tsrust": "^1.4.1",
19
19
  "@git.zone/tstest": "^3.6.6",
20
20
  "@types/node": "^25.9.1",
21
21
  "mongodb": "^7.1.1"
@@ -63,6 +63,7 @@
63
63
  "scripts": {
64
64
  "test:before": "(tsrust)",
65
65
  "test": "(tstest test/. --verbose --logfile --timeout 60)",
66
+ "test:rust": "(cd rust && cargo test)",
66
67
  "build": "(tsbundle) && (tsbuild tsfolders) && (tsrust)",
67
68
  "buildDocs": "tsdoc"
68
69
  }
@@ -0,0 +1,8 @@
1
+ # smartdb 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
+ - 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`). The repo previously carried such `rustflags` lines; they were removed when the tsrust `static` option was adopted.
7
+ - `pnpm run test:rust` runs the Rust unit tests; plain `cargo test` in `rust/` works as well.
8
+ - Verify linkage manually with `ldd dist_rust/<binary>_linux_amd64` → "statically linked".
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartdb',
6
- version: '2.10.2',
6
+ version: '2.10.3',
7
7
  description: 'A MongoDB-compatible embedded database server with wire protocol support, backed by a high-performance Rust engine.'
8
8
  }