faf_rust_sdk/binary/
mod.rs1pub mod chunk_registry;
29pub mod compile;
30pub mod error;
31pub mod flags;
32pub mod header;
33pub mod priority;
34pub mod section;
35pub mod section_type;
36pub mod string_table;
37
38pub use chunk_registry::{
40 classify_key, ChunkClassification, CLASSIFICATION_MASK, DNA_KEYS, POINTER_KEY,
41};
42pub use compile::{compile, decompile, CompileOptions, DecompiledFafb};
43pub use error::{FafbError, FafbResult};
44pub use flags::{
45 Flags, FLAG_COMPRESSED, FLAG_EMBEDDINGS, FLAG_MODEL_HINTS, FLAG_RESOLVED, FLAG_SIGNED,
46 FLAG_STRING_TABLE, FLAG_TOKENIZED, FLAG_WEIGHTED,
47};
48pub use header::{
49 FafbHeader, HEADER_SIZE, MAGIC, MAGIC_U32, MAX_FILE_SIZE, MAX_SECTIONS, VERSION_MAJOR,
50 VERSION_MINOR,
51};
52pub use priority::{
53 Priority, PRIORITY_CRITICAL, PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_MEDIUM, PRIORITY_OPTIONAL,
54};
55pub use section::{SectionEntry, SectionTable, SECTION_ENTRY_SIZE};
56pub use section_type::{
57 SectionType, SECTION_ARCHITECTURE, SECTION_BISYNC, SECTION_COMMANDS, SECTION_CONTEXT,
58 SECTION_CUSTOM, SECTION_EMBEDDINGS, SECTION_KEY_FILES, SECTION_META, SECTION_MODEL_HINTS,
59 SECTION_TECH_STACK, SECTION_TOKEN_MAP,
60};
61pub use string_table::StringTable;