Skip to content

ncl: keymap-codegen: provide json_deserializable_keymap - #391

Merged
rgoulter merged 1 commit into
masterfrom
tests-cucumber-deserializable-json
Sep 7, 2025
Merged

ncl: keymap-codegen: provide json_deserializable_keymap#391
rgoulter merged 1 commit into
masterfrom
tests-cucumber-deserializable-json

Conversation

@rgoulter

@rgoulter rgoulter commented Sep 7, 2025

Copy link
Copy Markdown
Owner

#381 rewrites the implementation, such that "keymap.json" is no longer the deserialized value.

I think the right way to do it is to keep keymap.json as an intermediate representation, and use keymap-codegen to take the "keymap.json" value, and transform it to how the Rust code expects it (either as a deserializable json value, or by constructing rust expressions which get compiled by build.rs).

So, this PR introduces a new field for keymap-codegen, and updates the smart keymap nickel helper to use that.

@rgoulter
rgoulter force-pushed the tests-cucumber-deserializable-json branch from d8d3bd2 to d5290cd Compare September 7, 2025 08:55
@rgoulter
rgoulter merged commit 4a133d4 into master Sep 7, 2025
7 checks passed
@rgoulter
rgoulter deleted the tests-cucumber-deserializable-json branch September 7, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant