Crate rakata_core

Crate rakata_core 

Source
Expand description

Core primitives used throughout the KotOR Rust workspace.

This crate holds shared value types (ResRef, ResourceType, ResourceId) and core utilities (fs, text, detect) required by multiple higher-level crates.

It is intentionally dependency-light, serving as the foundational layer for the workspace.

Re-exports§

pub use ascii::cmp_ascii_case_insensitive;
pub use detect::detect_resource_type;
pub use language_id::LanguageId;
pub use resource_id::ResourceId;
pub use resource_id::ResourceIdError;
pub use resource_identifier::ResourceIdentifier;
pub use resource_type::ResourceType;
pub use resource_type::ResourceTypeCode;
pub use resref::ResRef;
pub use resref::ResRefError;
pub use resref::MAX_RESREF_LEN;
pub use strref::StrRef;
pub use strref::StrRefError;
pub use strref::INVALID_STRREF_RAW;
pub use text::decode_text;
pub use text::decode_text_strict;
pub use text::encode_text;
pub use text::text_encoding_for_language;
pub use text::DecodeTextError;
pub use text::EncodeTextError;
pub use text::LanguageEncodingError;
pub use text::TextEncoding;

Modules§

ascii
ASCII string utilities shared across KotOR crates. ASCII string utilities shared across KotOR crates.
detect
Binary signature and extension-based resource type detection.
fs
Filesystem helpers shared across KotOR crates. Filesystem helpers shared across KotOR crates.
language_id
Language ID wrapper used by localized/text-bearing formats.
resource_id
Packed KEY/BIF resource ID wrapper and helpers.
resource_identifier
Case-insensitive (resname, restype) identifier abstraction.
resource_type
Canonical resource type definitions and extension mapping.
resref
Resource reference (ResRef) value type and validation errors.
strref
TLK string-reference (StrRef) value type and conversion helpers.
text
Shared text encoding helpers for binary format parsers/writers.