@zackees/soldr 0.7.101 → 0.7.102

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.
@@ -9,24 +9,15 @@
9
9
  "sha256_algorithm": "sha256",
10
10
  "required_binaries": [
11
11
  "soldr",
12
- "zccache",
13
- "zccache-daemon",
14
- "zccache-fp",
15
12
  "crgx",
16
13
  "cargo-chef"
17
14
  ],
18
15
  "linux_zccache_target_libc": "musl"
19
16
  },
20
17
  "zccache": {
21
- "managed_version": "1.12.12",
22
- "local_dir_env": "SOLDR_ZCCACHE_LOCAL_DIR",
23
- "cache_dir_env": "ZCCACHE_CACHE_DIR",
24
- "required_binaries": [
25
- "zccache",
26
- "zccache-daemon",
27
- "zccache-fp"
28
- ],
29
- "manifest_block": "zccache"
18
+ "embedded": true,
19
+ "note": "zccache ships as a compiled-in soldr `[[bin]]` (soldr#1368); no managed download.",
20
+ "cache_dir_env": "ZCCACHE_CACHE_DIR"
30
21
  },
31
22
  "crgx": {
32
23
  "managed_version": "0.1.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zackees/soldr",
3
- "version": "0.7.101",
3
+ "version": "0.7.102",
4
4
  "description": "Instant Rust tools and builds from one command.",
5
5
  "license": "BSD-3-Clause",
6
6
  "homepage": "https://github.com/zackees/soldr",
@@ -128,11 +128,9 @@ assert.deepStrictEqual(
128
128
  install.BUNDLED_BINARIES,
129
129
  zccacheContract.RELEASE_BUNDLED_BINARIES,
130
130
  );
131
- assert.deepStrictEqual(zccacheContract.ZCCACHE_BUNDLED_BINARIES, [
132
- "zccache",
133
- "zccache-daemon",
134
- "zccache-fp",
135
- ]);
131
+ // zccache is compiled into soldr (soldr#1368) — the standalone trio is no
132
+ // longer bundled or downloaded.
133
+ assert.deepStrictEqual(zccacheContract.ZCCACHE_BUNDLED_BINARIES, []);
136
134
  assert.strictEqual(zccacheContract.CRGX_BUNDLED_BINARY, "crgx");
137
135
  assert.strictEqual(zccacheContract.CARGO_CHEF_BUNDLED_BINARY, "cargo-chef");
138
136
  assert.deepStrictEqual(
@@ -167,21 +165,15 @@ for (const [key, target] of Object.entries(install.TARGETS || {})) {
167
165
  );
168
166
  }
169
167
 
170
- // BUNDLED_BINARIES must include soldr, the zccache trio, crgx, and cargo-chef.
171
- // Locks the per-archive layout contract so a future bundling
168
+ // BUNDLED_BINARIES must include soldr, crgx, and cargo-chef. zccache is
169
+ // compiled into soldr (soldr#1368), so the standalone trio is no longer
170
+ // bundled. Locks the per-archive layout contract so a future bundling
172
171
  // refactor can't quietly drop a binary.
173
172
  assert.ok(
174
173
  Array.isArray(install.BUNDLED_BINARIES),
175
174
  "install.BUNDLED_BINARIES must be exported as an array",
176
175
  );
177
- for (const required of [
178
- "soldr",
179
- "zccache",
180
- "zccache-daemon",
181
- "zccache-fp",
182
- "crgx",
183
- "cargo-chef",
184
- ]) {
176
+ for (const required of ["soldr", "crgx", "cargo-chef"]) {
185
177
  assert.ok(
186
178
  install.BUNDLED_BINARIES.includes(required),
187
179
  `BUNDLED_BINARIES must include "${required}" (got ${JSON.stringify(install.BUNDLED_BINARIES)})`,
@@ -13,7 +13,11 @@ const ARCHIVE_EXT = CONTRACT.release_archive.extension;
13
13
  const MANIFEST_NAME = CONTRACT.release_archive.manifest_name;
14
14
  const MANIFEST_MIN_SCHEMA_VERSION = CONTRACT.release_archive.manifest_min_schema_version;
15
15
  const RELEASE_BUNDLED_BINARIES = Object.freeze([...CONTRACT.release_archive.required_binaries]);
16
- const ZCCACHE_BUNDLED_BINARIES = Object.freeze([...CONTRACT.zccache.required_binaries]);
16
+ // zccache is compiled into soldr (soldr#1368); no standalone zccache
17
+ // binaries are bundled or downloaded, so this list is empty.
18
+ const ZCCACHE_BUNDLED_BINARIES = Object.freeze([
19
+ ...(CONTRACT.zccache.required_binaries || []),
20
+ ]);
17
21
  const CRGX_BUNDLED_BINARY = CONTRACT.crgx.required_binaries[0];
18
22
  const CARGO_CHEF_BUNDLED_BINARY = CONTRACT.cargo_chef.required_binaries[0];
19
23
 
@@ -75,10 +79,8 @@ function validateReleaseManifest(manifest, options) {
75
79
  if (!manifest.soldr || manifest.soldr.target !== soldrTarget) {
76
80
  throw new Error(`release manifest soldr.target must be ${soldrTarget}`);
77
81
  }
78
- const expectedZccacheTarget = zccacheTargetForSoldrTarget(soldrTarget);
79
- if (!manifest.zccache || manifest.zccache.target !== expectedZccacheTarget) {
80
- throw new Error(`release manifest zccache.target must be ${expectedZccacheTarget}`);
81
- }
82
+ // zccache is compiled into soldr (soldr#1368) — no standalone zccache
83
+ // block is required in the release manifest anymore.
82
84
  if (!manifest.crgx || manifest.crgx.target !== soldrTarget) {
83
85
  throw new Error(`release manifest crgx.target must be ${soldrTarget}`);
84
86
  }