@push.rocks/smartdns 7.9.3 → 7.10.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 CHANGED
@@ -3,7 +3,8 @@
3
3
  "targets": [
4
4
  "linux_amd64",
5
5
  "linux_arm64"
6
- ]
6
+ ],
7
+ "static": true
7
8
  },
8
9
  "@git.zone/cli": {
9
10
  "projectType": "npm",
@@ -17,11 +18,15 @@
17
18
  "projectDomain": "push.rocks"
18
19
  },
19
20
  "release": {
20
- "registries": [
21
- "https://verdaccio.lossless.digital",
22
- "https://registry.npmjs.org"
23
- ],
24
- "accessLevel": "public"
21
+ "targets": {
22
+ "npm": {
23
+ "registries": [
24
+ "https://verdaccio.lossless.digital",
25
+ "https://registry.npmjs.org"
26
+ ],
27
+ "accessLevel": "public"
28
+ }
29
+ }
25
30
  }
26
31
  },
27
32
  "@git.zone/tsdoc": {
Binary file
Binary file
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartdns',
6
- version: '7.9.3',
6
+ version: '7.10.0',
7
7
  description: 'A robust TypeScript library providing advanced DNS management and resolution capabilities including support for DNSSEC, custom DNS servers, and integration with various DNS providers.'
8
8
  };
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxzQkFBc0I7SUFDNUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHlMQUF5TDtDQUN2TSxDQUFBIn0=
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxzQkFBc0I7SUFDNUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHlMQUF5TDtDQUN2TSxDQUFBIn0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@push.rocks/smartdns",
3
- "version": "7.9.3",
3
+ "version": "7.10.0",
4
4
  "private": false,
5
5
  "description": "A robust TypeScript library providing advanced DNS management and resolution capabilities including support for DNSSEC, custom DNS servers, and integration with various DNS providers.",
6
6
  "exports": {
@@ -49,7 +49,7 @@
49
49
  "devDependencies": {
50
50
  "@git.zone/tsbuild": "^4.4.2",
51
51
  "@git.zone/tsrun": "^2.0.4",
52
- "@git.zone/tsrust": "^1.3.4",
52
+ "@git.zone/tsrust": "^1.4.1",
53
53
  "@git.zone/tstest": "^3.6.6",
54
54
  "@types/dns-packet": "^5.6.5",
55
55
  "@types/lodash.clonedeep": "^4.5.9",
@@ -76,6 +76,7 @@
76
76
  "type": "module",
77
77
  "scripts": {
78
78
  "test": "(tstest test/ --verbose --timeout 60)",
79
+ "test:rust": "(cd rust && cargo test)",
79
80
  "build": "(tsbuild tsfolders --web) && (tsrust)",
80
81
  "buildDocs": "tsdoc"
81
82
  }
package/readme.hints.md CHANGED
@@ -145,4 +145,10 @@ The test suite demonstrates:
145
145
 
146
146
  ## Known Limitations
147
147
 
148
- 1. **Handler Deduplication**: If the same handler is registered multiple times, it will contribute duplicate records (this may be desired behavior for some use cases)
148
+ 1. **Handler Deduplication**: If the same handler is registered multiple times, it will contribute duplicate records (this may be desired behavior for some use cases)
149
+ ## Static Rust Binaries
150
+
151
+ - 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.
152
+ - 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`).
153
+ - `pnpm run test:rust` runs the Rust unit tests; plain `cargo test` in `rust/` works as well.
154
+ - 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/smartdns',
6
- version: '7.9.3',
6
+ version: '7.10.0',
7
7
  description: 'A robust TypeScript library providing advanced DNS management and resolution capabilities including support for DNSSEC, custom DNS servers, and integration with various DNS providers.'
8
8
  }