Introduce the Rust static library and move the shared byte, bitstream, CPU, error, xxHash, debug, and public-common implementations into it. Thin C shims preserve the existing header-driven C build while original tests link the Rust archive. This establishes the ABI-safe foundation for later codec and CLI ports; entropy coding, runtime support, codecs, dictionaries, and the CLI remain C. The top-down migration map documents that boundary and its validation path. Test Plan: - cargo fmt --check - cargo test --all-targets - cargo clippy --all-targets -- -D warnings - cargo build --release Refs: rust/README.md
11 lines
412 B
C
11 lines
412 B
C
#include "error_private.h"
|
|
#include "zstd_internal.h"
|
|
|
|
/* Implementation moved to Rust (rust/src/zstd_common.rs) */
|
|
extern unsigned ZSTD_versionNumber(void);
|
|
extern const char* ZSTD_versionString(void);
|
|
extern unsigned ZSTD_isError(size_t code);
|
|
extern const char* ZSTD_getErrorName(size_t code);
|
|
extern ZSTD_ErrorCode ZSTD_getErrorCode(size_t code);
|
|
extern const char* ZSTD_getErrorString(ZSTD_ErrorCode code);
|