| Crates.io | sleigh-config |
| lib.rs | sleigh-config |
| version | 1.0.0 |
| created_at | 2025-08-31 07:16:51.994783+00 |
| updated_at | 2025-09-24 01:43:17.289603+00 |
| description | Precompiled .sla files and other processor configuration files needed to interface with Ghidra SLEIGH |
| homepage | |
| repository | https://github.com/mnemonikr/sleigh-config |
| max_upload_size | |
| id | 1818235 |
| size | 12,865,539 |
This crate contains precompiled .sla and .pspec configuration files for use with
libsla or other crates that interface with
Ghidra SLEIGH. The configuration files are
sourced from Ghidra version 11.4.
The following are the list of processor configurations available in Ghidra.
The available configuration files for the x86 processor are
sleigh_config::processor_x86::SLA_X86;
sleigh_config::processor_x86::SLA_X86_64;
sleigh_config::processor_x86::PSPEC_X86;
sleigh_config::processor_x86::PSPEC_X86_16;
sleigh_config::processor_x86::PSPEC_X86_16_REAL;
sleigh_config::processor_x86::PSPEC_X86_64;
sleigh_config::processor_x86::PSPEC_X86_64_COMPAT32;
Specify the processor(s) you wish to use via feature flags.
sleigh-config = { version = "1", features = ["x86"] }
Then use a crate that uses these configuration files to interact with Ghidra SLEIGH:
let sleigh = libsla::GhidraSleigh::builder()
.processor_spec(sleigh_config::processor_x86::PSPEC_X86_64)?
.build(sleigh_config::processor_x86::SLA_X86_64)?;
// Use sleigh to e.g. disassemble instructions
let disassembly = sleigh.disassemble_native(&instruction_loader, address)?
In Ghidra 11.1 the SLA configuration file format was changed to a binary format.
Yes. The global SLA_DATA and PSPEC_DATA arrays can be used to iterate over all configurations.