Install & Quickstart
The XIDL compiler, xidlc, compiles .idl files containing interface
definitions into server code, client code, and protocol schemas.
1. Install xidlc
Section titled “1. Install xidlc”curl --proto '=https' --tlsv1.2 -sSf https://xidl.netlify.app/install.sh | shiwr -useb https://xidl.netlify.app/install.ps1 | iexcargo install xidlccargo binstall xidlc2. Verify the install
Section titled “2. Verify the install”xidlc --help3. Generate a first artifact
Section titled “3. Generate a first artifact”xidlc gen -o out rust your.idl4. Built-in targets
Section titled “4. Built-in targets”rustrust-axumrust-jsonrpcopenapiopenrpctypescripttypescript-restgogo-rest
See Target Generators for the full list with aliases and typical combinations.
Editor Support
Section titled “Editor Support”A Visual Studio Code extension provides syntax highlighting, code formatting, and HTTP interface preview. See Editor for installation and details.
Next Steps
Section titled “Next Steps”- Continue with Your First HTTP API.
- Read Using xidlc.
- Browse Supported Targets.