// =============================================================================
// Copyright (c) 2026 Haixing Hu.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Inventory factory for string-codec registrations.
use inventory::collect;
use crate::ValueStringCodecRegistration;
/// Factory submitted by
/// [`register_value_string_codec!`](crate::register_value_string_codec).
#[doc(hidden)]
pub struct ValueStringCodecRegistrationFactory(
/// Builds an owned string-codec registration when inventory entries are
/// collected into a registry. The callback takes no arguments and
/// supplies its own codec identifier, metadata, and construction logic.
pub fn() -> ValueStringCodecRegistration,
);
collect!(ValueStringCodecRegistrationFactory);