Skip to content

How to make async callables in rust to call from Python? #78

@ararog

Description

@ararog

I'm working on ASGI and RSGI protocol implementations in my project, I would like know how to declare them in rust to be called from Python?

In a sync context, we usually defined a struct with #[pyclass].

Maybe under call return a coroutine with help of future_into_py?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions