Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions pkgs/id/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ Crates in `pkgs/id/crates/` and the root `id` package, classified by
dependents (checked against `Cargo.toml` and a repo-wide grep; no `id-*`
crate is consumed outside `pkgs/id/`).

| Crate | Classification | Notes |
|-------|----------------|-------|
| `id` (root, `src/`) | Public surface | The only crate whose `lib.rs` re-exports the API; the CLI and binaries build on it. |
| `id-core` | Public surface (shared core) | Depended on by 10 crates. The root re-exports a subset (`abuse`, `access`, `connectivity`, `discovery`, `frames`, `holders`, `membership`, `rejection`, `residency`, `sync_method`, `tuple`, `waiting`, plus `KEY_FILE`, `CLIENT_KEY_FILE`, `SERVE_LOCK`, `is_node_id`). Modules not re-exported by `id` are internal to the workspace. |
| `id-caps`, `id-store`, `id-events`, `id-groups`, `id-sync`, `id-worlds`, `id-directory`, `id-web` | Internal | Used only by sibling crates and the root. |
| `id-cli` | Internal (binary) | Only the root depends on it. |
| `id-config` | Internal | Only the root depends on it. |
| `id-currency-registry` | Internal | Only the root depends on it. |
| `id-native-shell`, `id-hw-shell` | Internal (app) | Workspace members, but not default members; no dependents. |
| `id-render`, `id-import-notion` | Internal, no dependents | Candidates for removal or for documenting as unused. |
| Crate | Classification | Notes |
| ------------------------------------------------------------------------------------------------- | ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id` (root, `src/`) | Public surface | The only crate whose `lib.rs` re-exports the API; the CLI and binaries build on it. |
| `id-core` | Public surface (shared core) | Depended on by 10 crates. The root re-exports a subset (`abuse`, `access`, `connectivity`, `discovery`, `frames`, `holders`, `membership`, `rejection`, `residency`, `sync_method`, `tuple`, `waiting`, plus `KEY_FILE`, `CLIENT_KEY_FILE`, `SERVE_LOCK`, `is_node_id`). Modules not re-exported by `id` are internal to the workspace. |
| `id-caps`, `id-store`, `id-events`, `id-groups`, `id-sync`, `id-worlds`, `id-directory`, `id-web` | Internal | Used only by sibling crates and the root. |
| `id-cli` | Internal (binary) | Only the root depends on it. |
| `id-config` | Internal | Only the root depends on it. |
| `id-currency-registry` | Internal | Only the root depends on it. |
| `id-native-shell`, `id-hw-shell` | Internal (app) | Workspace members, but not default members; no dependents. |
| `id-render`, `id-import-notion` | Internal, no dependents | Candidates for removal or for documenting as unused. |

Standalone examples and benchmarks (`examples/`, `benchmarks`) are not
public API. Vendored crates (`vendor/p2panda-sync`, `vendor/p2panda-encryption`)
Expand Down
2 changes: 1 addition & 1 deletion pkgs/id/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ it is — a valid world capability, minted by the host's admin with
| `migrate-tags` | `migrate` | Add name/file auto-tags to existing files |
| `id` | | Print local node public ID |
| `key` | | Export or import a passphrase-wrapped identity key |
| `keyset` | | Show or change the identity's admin and device keys |
| `keyset` | | Show or change the identity's admin and device keys |
| `peers` | | Discover and list known peers |
| `world` | | Mint invites for, and join, multiplayer worlds |
| `gallery` | | Administer a program gallery directory |
Expand Down
Loading