// =============================================================================
// Copyright (c) 2026 Haixing Hu.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Public entry point for redaction derive expansion.
use TokenStream;
use DeriveInput;
use Result;
use crateruntime_path;
/// Generates the standard Redact derive expansion.
///
/// # Parameters
///
/// * `input` - Parsed struct or enum and its redaction controls.
///
/// # Returns
///
/// Generated borrowing redaction and requested formatting or Serde
/// implementations.
///
/// # Errors
///
/// Returns a targeted syntax error when the runtime crate, input shape, or
/// redaction attributes cannot be resolved.
pub