Skip to content

feat: add xidl to ECOSYSTEM.md#3687

Closed
cathaysia wants to merge 2 commits intotokio-rs:mainfrom
cathaysia:cathaysia-patch-1
Closed

feat: add xidl to ECOSYSTEM.md#3687
cathaysia wants to merge 2 commits intotokio-rs:mainfrom
cathaysia:cathaysia-patch-1

Conversation

@cathaysia
Copy link
Copy Markdown

Motivation

Unify the Axum error model, handle Axum boilerplate code, and generate OpenAPI.

Solution

  1. install xidlc:

cargo binstall xidlc

  1. write a idl:
interface SmartCityHttpApi {
    @get(path = "/v1/stops/{stop_id}{?line,lang}")
    string get_stop_eta(
        string stop_id,
        string line,
        string locale,
        out uint32 eta_seconds,
        out string destination
    );

    @get(path = "/v1/stops/{stop_id}/nearby")
    sequence<string> list_nearby_stops(
        @path("stop_id") string stop_id
    );
}
  1. generate code

xidlc -l axum api.idl --server --client
xidlc -l openapi api.idl

Thanks!

@mladedav mladedav added the T-ecosystem Topic: updates to ECOSYSTEM.md label Apr 10, 2026
@davidpdrsn
Copy link
Copy Markdown
Member

As of #3737 we've decided to remove ECOSYSTEM.md. See that PR for more details.

@davidpdrsn davidpdrsn closed this Apr 27, 2026
szabgab added a commit to szabgab/axum.code-maven.com that referenced this pull request Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-ecosystem Topic: updates to ECOSYSTEM.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants