Skip to main content

bynk_registry_core/
lib.rs

1//! The Bynk registry's admission rules, I/O-free (first-party registry track
2//! ยง3.4, decision E of #2321): unpack, pack and admit an archive in memory.
3//!
4//! No `std::fs`, no `ring`, no network. The native registry (`bynk registry
5//! add` / `serve`) links this as a library; the same source builds to a
6//! standalone wasm32 module with a C ABI ([`abi`]) that the hosted registry's
7//! `admission` adapter loads, so the client, the reference server and the
8//! service apply one implementation.
9
10pub mod abi;
11mod admit;
12mod archive;
13pub mod protocol;
14
15pub use admit::{Admitted, Refusal, Requirement, admit};
16pub use archive::{ArchiveError, BAD_ARCHIVE, MAX_UNPACKED, Tree, is_excluded, pack, unpack};