Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Feature Request: yaml!() macro similar to serde_json::json!({}) #385

Closed
Fishrock123 opened this issue Aug 8, 2023 · 2 comments
Closed

Comments

@Fishrock123
Copy link

It would be great for purposes of templating and constructing yaml configs for other programs to have a nice way to declare lots of nested yaml in source code, similar to serde_json's json!({}) macro.

Of course we all know this sounds much easier than it is to do. It's a big ask but I hope the Rust community can get it some day.

@dtolnay
Copy link
Owner

dtolnay commented Aug 8, 2023

I would prefer not to build this into this crate.

@dtolnay dtolnay closed this as completed Aug 8, 2023
@Fishrock123 Fishrock123 changed the title Fetaure Request: yaml!() macro similar to serde_json::json!({}) Feature Request: yaml!() macro similar to serde_json::json!({}) Aug 9, 2023
@Fishrock123
Copy link
Author

So, best would be to have separate crate i.e. a theoretical serde_yaml_macro to house this functionality?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants