5d130cb97d
For the upcoming `api` attribute in `vk.xml` commands also need to be
processed through `vk-parse` which has support for all the new
attributes, while `vkxml` is deprecated and completely untouched for
years. This conversion unfortunately requires whipping up yet another
quick-and-dirty `nom` parser of a specific subset of C used in `vk.xml`
to describe parameter signatures. This PR shows that conversion is
complete and provides no accidental semantic differences.
Also update `vk-parse` to `0.9` which contains a new `code` field on
`CommandParam` (`<param>` element) to be able to inspect the code
signature of individual parameters rather than parsing them out of (and
matching them back to `vk-parse`'s `params` array!) the `<command>`
/ `CommandDefinition` as a whole:
https://github.com/krolli/vk-parse/issues/25#issuecomment-1246330001
615ffb69eb
22 lines
406 B
TOML
22 lines
406 B
TOML
[package]
|
|
name = "generator"
|
|
version = "0.1.0"
|
|
authors = ["Maik Klein <maikklein@googlemail.com>"]
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
bindgen = "0.61"
|
|
heck = "0.4"
|
|
itertools = "0.10"
|
|
nom = "7.1"
|
|
once_cell = "1.7"
|
|
proc-macro2 = "1.0"
|
|
quote = "1.0"
|
|
regex = "1.4"
|
|
vk-parse = { version = "0.9", features = ["vkxml-convert"] }
|
|
vkxml = "0.3"
|
|
|
|
[dependencies.syn]
|
|
version = "1.0"
|
|
features = ["full", "extra-traits"]
|