@canmi/me 2026.10.3 → 2026.1004.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.
@@ -8,7 +8,8 @@ export declare function rustConstants(map: Record<string, unknown>): string;
8
8
  /**
9
9
  * This package's Rust half, the `canmi` crate: committed, because a checkout must compile without
10
10
  * a Node toolchain having run first. `mise run urls` rewrites it and `rust.test.ts` fails when the
11
- * two drift.
11
+ * two drift. The author's identity comes along as `AUTHOR_*`, so a Rust program reads it compiled
12
+ * in rather than from a path into this repository.
12
13
  */
13
14
  export declare function rustCanmi(): string;
14
15
  //#endregion
@@ -1,4 +1,5 @@
1
1
  import { CONTACT, EXTERNAL, SITE, SOURCE } from "./index.js";
2
+ import { author } from "../../identity/src/index.js";
2
3
  //#region urls/src/rust.ts
3
4
  /**
4
5
  * Every string under `map` as a Rust `pub const`, named by its path in capitals, so
@@ -16,17 +17,20 @@ function walk(value, path, out) {
16
17
  out.push([name, value]);
17
18
  return;
18
19
  }
20
+ if (typeof value !== "object" || value === null) return;
19
21
  for (const [key, child] of Object.entries(value)) walk(child, [...path, key], out);
20
22
  }
21
23
  /**
22
24
  * This package's Rust half, the `canmi` crate: committed, because a checkout must compile without
23
25
  * a Node toolchain having run first. `mise run urls` rewrites it and `rust.test.ts` fails when the
24
- * two drift.
26
+ * two drift. The author's identity comes along as `AUTHOR_*`, so a Rust program reads it compiled
27
+ * in rather than from a path into this repository.
25
28
  */
26
29
  function rustCanmi() {
27
30
  return [
28
- "//! @generated from pkgs/me/urls/src/index.ts by `mise run urls`; do not edit.",
29
- "//! The author's own addresses, for Rust -- see spec/architecture/layers.md.",
31
+ "//! @generated from pkgs/me/urls/src/index.ts and pkgs/me/identity/author.json by",
32
+ "//! `mise run urls`; do not edit.",
33
+ "//! The author's own addresses and identity, for Rust -- see spec/architecture/layers.md.",
30
34
  "",
31
35
  rustConstants({
32
36
  site: SITE,
@@ -34,6 +38,8 @@ function rustCanmi() {
34
38
  contact: CONTACT,
35
39
  external: EXTERNAL
36
40
  }),
41
+ "",
42
+ rustConstants({ author }),
37
43
  ""
38
44
  ].join("\n");
39
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canmi/me",
3
- "version": "2026.10.3",
3
+ "version": "2026.1004.0",
4
4
  "description": "The author's own facts: their sites' addresses and the world's, their identity, the languages they write in",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -8,10 +8,10 @@
8
8
  "url": "git+https://github.com/canmi21/lib.git",
9
9
  "directory": "pkgs/me"
10
10
  },
11
- "type": "module",
12
11
  "files": [
13
12
  "dist"
14
13
  ],
14
+ "type": "module",
15
15
  "exports": {
16
16
  "./urls": {
17
17
  "types": "./dist/urls/src/index.d.ts",