StructOp operates as a declarative layer above C and Rust. It reads declarations, checks them, plans the change and generates source through providers, then hands that source to the target’s own compiler. It does not replace those compilers or their ecosystems.
A project is a folder. StructOp reads every file in it whose name ends in .st, in name order, and the variable values in variables.stvars. Tests in tests/*.sttest are read only by structop test.
Input
What it holds
intent.st
The structop block: the target language and standard, the providers and any exports. This is the intent of the project.
Other .st files
The declarations: ability, data, constant, variable, parameter and module blocks.
Module folders
Reusable groups of declarations, called with inputs and read through outputs.
Providers
Installed into .structop/providers/ by structop init and locked in .structop/providers.lock.
StructOp works with the native toolchain you already have: the C compiler, Cargo and the libraries a project binds are the ones installed on your machine. The generated source is ordinary C or Rust, so the target’s debuggers, profilers and analysis tools work on it as they do on any other program.