The CLI trace translation unit still contained the complete CSV writer and strong callback implementations even though the Rust CLI archive already had the equivalent trace module. Reduce the C file to its public-header shim and make the Rust implementation authoritative, preserving the exact CSV header, version assertion, timing fields, and no-trace build behavior. Focused tests cover header creation and the version-mismatch assertion. Test Plan: - CLI tests: 161 default and 127 reduced-feature -- passed - Focused trace tests: 3/3 in both configurations -- passed - `make -B -C programs -j2` for all CLI variants -- passed - Trace compression/decompression smoke test -- passed - C shim compile with and without `ZSTD_NOTRACE` -- passed - Clippy, nightly rustfmt, and `git diff --check` -- passed
15 lines
627 B
C
15 lines
627 B
C
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under both the BSD-style license (found in the
|
|
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
|
|
* in the COPYING file in the root directory of this source tree).
|
|
* You may select, at your option, one of the above-listed licenses.
|
|
*/
|
|
|
|
/* The trace implementation lives in rust/src/zstdcli_trace.rs. Keep this
|
|
* translation unit so C build systems can continue to enumerate the public
|
|
* trace header without defining a second set of ABI symbols. */
|
|
#include "zstdcli_trace.h"
|