Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config read/write support #155

Merged
merged 6 commits into from
Feb 5, 2021
Merged

Config read/write support #155

merged 6 commits into from
Feb 5, 2021

Conversation

dhardy
Copy link
Collaborator

@dhardy dhardy commented Feb 4, 2021

Adds working read & write support for shortcut configuration.

JSON and YAML support are included. TOML is not because the toml crate does not support enums as map keys and I don't see another TOML+Serde crate.

Adjusts kas_wgpu::Options, adding two env vars controlling behaviour.

Some cleanup is needed before merge, but otherwise I think this is good for now. The file format is unstable and until that changes, there won't be a default config path, though later there should be (using the directories crate or similar).

TODO: cleanup commits, better documentation?

Edit: done cleanup; serde is now optional.

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