Skip to content

chore(codec): clarify crate description for crates.io#48

Merged
ignromanov merged 1 commit into
mainfrom
chore/codec-crate-description
Jun 4, 2026
Merged

chore(codec): clarify crate description for crates.io#48
ignromanov merged 1 commit into
mainfrom
chore/codec-crate-description

Conversation

@ignromanov
Copy link
Copy Markdown
Contributor

What

Single-field metadata change in packages/codec/Cargo.tomldescription only.

Why

The old description ("Canonical Invoice codec — TLV wire format, Brotli via JS shim") was misleading for a Rust consumer: the Rust crate does not perform Brotli compression. Brotli is applied entirely at the JS/wire layer via brotli-wasm in the TS shim (src/index.ts). This is documented explicitly in lib.rs's module-level doc comment.

Old → New

Value
Old Canonical Invoice codec — TLV wire format, Brotli via JS shim
New Canonical invoice codec — schema-v1 locked TLV wire format with keccak256 content hash; Brotli compression applied at the JS/wire layer

The new description: leads with what the crate IS, surfaces the schema-v1-locked / perpetual property, mentions keccak256 (a genuine Rust-crate capability), and accurately states Brotli is at the wire/JS layer — not inside the crate.

Verification

  • cargo metadata --no-deps parses the manifest cleanly
  • No version bump, no dep changes, no other files touched

…accurate)

Replace "Brotli via JS shim" with an accurate phrase that notes Brotli
is applied at the JS/wire layer, not inside the Rust crate itself.
Leads with schema-v1-locked TLV identity and mentions keccak256 hash.
@ignromanov ignromanov merged commit 3de1d86 into main Jun 4, 2026
7 checks passed
@ignromanov ignromanov deleted the chore/codec-crate-description branch June 4, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant