cog-idl-bin

Crates.iocog-idl-bin
lib.rscog-idl-bin
version0.2.0
sourcesrc
created_at2019-04-30 20:20:54.951583
updated_at2019-04-30 20:26:50.916024
descriptionCommand line interface for parsing Cog IDL files.
homepagehttps://braindemons.gitlab.io/cog-idl-site/
repositoryhttps://gitlab.com/braindemons/cog-idl
max_upload_size
id131238
size4,698
Layl (LaylBongers)

documentation

README

Cog IDL Binary

Command line interface for parsing Cog IDL files.

Usage

The tool listens for commands on stdin, and sends out responses on stdout. Every line in stdin is interpreted as a single command. Commands and responses are in JSON.

To parse a module from a string:

{
    "LoadModuleFromStr": {
        "name": "my_api",
        "idl": "interface foo {\n    fn bar();\n}"
    }
}

To parse an API from a directory:

{
    "LoadApiFromDir": "../some/directory/api"
}
Commit count: 40

cargo fmt