Crates.io | json_typegen_shared |
lib.rs | json_typegen_shared |
version | 0.7.0 |
source | src |
created_at | 2017-04-21 07:12:56.888663 |
updated_at | 2021-09-16 16:17:45.88685 |
description | Codegen from JSON samples. Not intended to be used directly. See repository for the intended crates. |
homepage | https://github.com/evestera/json_typegen |
repository | https://github.com/evestera/json_typegen |
max_upload_size | |
id | 11401 |
size | 184,847 |
json_typegen as just a library, for use in build scripts and other crates. If you want an actual interface, like a website, CLI or procedural macro, check the repo: github.com/evestera/json_typegen
Note: This crate is to a certain extent considered internal API of the json_typegen
tools.
If you want to use this crate directly, be prepared for breaking changes to happen, and consider
opening an issue
to let me know what you are using. (Breaking changes may still happen,
but then I'll at least try to keep your use-case in mind if possible.
This has happened enough by now that there are parts I already consider public API.)
All of these flags are on by default, but you can avoid dependencies you don't care about disabling some or all of them, with e.g. something like this to only enable option parsing:
json_typegen_shared = { version = "*", default-features = false, features = ["option-parsing"] }
remote-samples
Required to load samples from URLs.
local-samples
Required to load samples from local paths.
option-parsing
Required to parse an options object from a string.
Since this is required for code generation from macro-like strings,
this is also required for the functions codegen_from_macro
and codegen_from_macro_input
.