script-meditate
Supercharge Cargo scripts with inline structured data/configuration.
Example
Place the following in a file and make it executable, so it can be used as a standalone script:
#!/usr/bin/env -S cargo +nightly -Zscript
---cargo
edition = "2021"
script-meditate =
serde =
---
/*json
{
"test": 42
}
*/
Note
The script must not be placed directly inside the user's home directory.
License
Copyright 2024 dmb-ish
Dual-licensed under MIT OR Apache-2.0.