ash/generator/Cargo.toml

19 lines
359 B
TOML
Raw Normal View History

2018-03-10 07:45:58 +11:00
[package]
name = "generator"
version = "0.1.0"
authors = ["Maik Klein <maikklein@googlemail.com>"]
2019-05-26 05:25:00 +10:00
edition = "2018"
2018-03-10 07:45:58 +11:00
[dependencies]
2020-05-08 18:45:05 +10:00
vk-parse = { version = "0.5.0", features = ["vkxml-convert"] }
vkxml = "0.3"
Preliminary cleanup pass (#339) * Fix clippy::manual_strip * Fix clippy::comparison_to_empty * Fix clippy::needless_lifetimes * generator: Drop unnecessary edgecase for charptr array in builder * generator: Make array type handling more linear * prelude: Provide Result -> VkResult<()> conversion * Add #[must_use] to Result type * Fix all unchecked vk::Result cases * generator: Fix typos * generator: Assert char ptrs have `"null-terminated"` len attribute * prelude: Provide result_with_success helper for Result -> VKresult * Cleanup match{success} blocks with SSR {let $p = $f; match $q { vk::Result::SUCCESS => Ok($r), _ => Err($z), }} ==>> {$f.result_with_success($r)} * Simplify matching on Result::SUCCESS Using the following regex replacement: let err_code =\s*(.*\((\n|[^;])*?\));\s*match err_code \{\s*vk::Result::SUCCESS => Ok\((.*)\),\s*_ => Err\(err_code\),\s*\} $1.result_with_success($3) * Simplify intermediate error return let err_code =\s*(.*\((\n|[^;])*?\));\s*if err_code != vk::Result::SUCCESS \{\s*return Err\(err_code\);\s*\} $1.result()?; * Simplify error checking with .result()? and .result_with_success() * generator: Ignore empty basetype in typedef (forward declaration) ANativeWindow and AHardwareBuffer were [recently changed] to the basetype category, but without an actual basetype, consequently failing the Ident constructor with an empty name. Since these types are already dealt with in platform_types, and there doesn't seem to be anything sensical to define them to right now, just ignore these cases. [recently changed]: https://github.com/KhronosGroup/Vulkan-Headers/commit/0c5351f5e9114d3e9033aeae51d036a3d201c082#diff-0ff049f722e55de41ee15b2c91ef380fL179-R180 * Suggestion: Allocate data in get_ray_tracing_shader_group_handles * generator: Update nom to 6.0 * generator: Generalize C expression conversion to TokenStream * generator: Simplify ReferenceType::to_tokens with quote! * generator: Refactor to not parse our own stringified token stream * generator: Deal with pointers to static-sized arrays * generator: Apply static-sized array pointer to size containing `*` * generator: setter: Interpret all references as ptr, not just p_/pp_ * generator: quote::* is already imported * generator: Replace manual fn to_tokens with quote::ToTokens trait impl * generator: Return str reference from constant_name * generator: Replace unused to_type_tokens with name_to_tokens The reference argument was always None; replace it with a direct call to name_to_tokens. * generator: setters: Use safe mutable references instead of raw ptrs
2020-12-13 06:56:43 +11:00
nom = "6.0"
2018-06-24 20:09:37 +10:00
heck = "0.3"
proc-macro2 = "1.0"
itertools = "0.10"
quote = "1.0"
2018-03-10 20:47:02 +11:00
[dependencies.syn]
version = "1.0"
2018-03-10 20:47:02 +11:00
features = ["full", "extra-traits"]