A page is read by the people who own it, and serde_json sorts keys, so every file put `name` at the bottom under `action` and `consequence`. With preserve_order the file reads the way it was built: name, then description, then what the card does. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
15 lines
525 B
TOML
15 lines
525 B
TOML
[package]
|
|
name = "portal-trainer"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Generates a portal content repo from a business intake, held to portal's question_lint"
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
# preserve_order: a page is read by the people who own it, so the keys
|
|
# come out in the order they were written (name, then description, then
|
|
# the rest), not sorted with `name` at the bottom.
|
|
serde_json = { version = "1", features = ["preserve_order"] }
|
|
serde_yaml = "0.9"
|