From 880830e262eb16d7abeae2bd82ef0747865899f8 Mon Sep 17 00:00:00 2001 From: Matthew Jackson <1085847+MattJackson@users.noreply.github.com> Date: Fri, 26 Jun 2026 21:07:56 -0700 Subject: [PATCH] keysources: expose the keydb.cfg parser (pub keydb_format / KeyDb, DiscEntry) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make the parser public — parsing a keydb is not secret (freemkv uses it, and so do tools that build a per-disc registry from it, e.g. a Volume-ID index). Purely additive: a private module in this public crate becomes nameable; no behaviour change, nothing removed. --- src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index ab0e918..31f68c0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,11 +21,15 @@ //! here. mod keydb; -mod keydb_format; +/// The `keydb.cfg` parser (`KeyDb`, `DiscEntry`, …). Public: parsing the keydb +/// is not secret — freemkv uses it, and so do tools that build a disc registry +/// from it (e.g. a per-disc Volume-ID index). +pub mod keydb_format; mod online; mod paths; pub use keydb::{KeydbSource, UpdateResult}; +pub use keydb_format::{DiscEntry, KeyDb}; pub use online::{OnlineSource, validate_keyserver_url}; pub use paths::{default_keydb_path, existing_keydb_path, keydb_search_paths};