docs.rs failed to build jyt-0.1.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
jyt
A tridirectional converter between Json, Yaml, and Toml which supports both native and WebAssembly
Installation
You can install this using the cargo install
command:
WebAssembly
This application also provides a wasm package.
You can install it using wapm
by the following command:
Usage
%%{init: {"flowchart" : { "curve" : "linear" } } }%%
graph LR;
JSON --> |$ jyt jy|YAML
JSON --> |$ jyt jt|TOML
YAML --> |$ jyt yt|TOML
YAML --> |$ jyt yj|JSON
TOML --> |$ jyt ty|YAML
TOML --> |$ jyt tj|JSON
)
)
)
)
)
)
)
WebAssembly
)
)
)
)
)
)
)
Examples
JSON -> YAML
$ cat ./examples/example.json | jyt json-to-yaml
---
title: TOML Example
owner:
name: Tom Preston-Werner
database:
server: 192.168.1.1
ports:
- 8000
- 8001
- 8002
connection_max: 5000
enabled: true
JSON -> TOML
|
YAML -> JSON
|
{
}
YAML -> TOML
|
TOML -> JSON
|
{
}
TOML -> YAML
$ cat ./examples/example.toml | jyt ty
---
title: TOML Example
owner:
name: Tom Preston-Werner
database:
server: 192.168.1.1
ports:
- 8000
- 8001
- 8002
connection_max: 5000
enabled: true
Advanced Usage
WebAssembly
TOML -> YAML
|
... other examples are the same as native provides!
Contribution
Build
Or you can directly execute the binary:
WebAssembly
Test
This command can also test C API.
Publish
GitHub Releases
crates.io
wapm.io