Skip to main content

Crate univdreams

Crate univdreams 

Source
Expand description

univdreams — byte-identical binary ↔ source round-tripping.

  • format: ELF, PE/COFF, Mach-O, NE, wasm and raw containers (parse + byte-identical write).
  • arch: per-architecture decode / encode / lift behind arch::codec.
  • ir, ast: the shared IR and the .ud source-language AST.
  • analysis, debug, signatures: function discovery, DWARF / PDB metadata, byte-pattern signatures.
  • translate: binary → .ud (decompile) and .ud → binary (compile).
  • emulator: x86 emulator with Win16 / Win32 / Linux hosts.
  • cli (feature cli) and wasm (feature wasm): the ud driver and the browser bindings.

Modules§

analysis
Analysis passes over loaded binaries.
arch
Instruction-set backends: the shared codec interface and one module per architecture.
ast
Abstract syntax tree for the .ud source language.
cli
Library half of the ud CLI.
common
Core types shared across univdreams crates.
debug
Debug-info reader: turns .debug_info (DWARF) into typed function signatures the decompiler can attach to its FnDecl AST nodes.
emulator
Pure-Rust 32-bit x86 emulator + PE loader + Video for Windows host. Lets oxideav delegate decoding (and eventually encoding) to legitimately-licensed Windows codec DLLs on any platform.
format
Binary container formats — parse + byte-identical write.
ir
Shared IR types for univdreams.
signatures
Byte-pattern signature database for recognizing well-known functions in compiled binaries.
translate
The .ud source-language translation engine — both directions of the univdreams pipeline in one crate.
wasm
WebAssembly bindings for the univdreams pipeline.

Macros§

pat
Construct a PatternByte array. _ produces PatternByte::Wild; numeric literals produce PatternByte::Exact.