Crates.io | cog-idl-bin |
lib.rs | cog-idl-bin |
version | 0.2.0 |
source | src |
created_at | 2019-04-30 20:20:54.951583 |
updated_at | 2019-04-30 20:26:50.916024 |
description | Command line interface for parsing Cog IDL files. |
homepage | https://braindemons.gitlab.io/cog-idl-site/ |
repository | https://gitlab.com/braindemons/cog-idl |
max_upload_size | |
id | 131238 |
size | 4,698 |
Command line interface for parsing Cog IDL files.
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"
}