[go: up one dir, main page]

Today I Learned

tags


2023/07/12

How to create subtables in a table in an array in TOML: [table_name.subtable_name].

Any reference to an array of tables points to the most recently defined table element of the array. This allows you to define sub-tables, and even sub-arrays of tables, inside the most recent table.

https://toml.io/en/v1.0.0#array-of-tables


2023/09/09

To add JSON schema validation to e.g. Cargo.toml files in VSCode using tamasfe.even-better-toml, you can add a special comment:

#:schema https://json.schemastore.org/cargo.json
# see https://taplo.tamasfe.dev/configuration/directives.html#the-schema-directive

That there’s such a thing as “canadian compilation”:

If build, host, and target are all the same, this is called a native. If build and host are the same but target is different, this is called a cross. If build, host, and target are all different this is called a canadian (for obscure reasons dealing with Canada’s political party and the background of the person working on the build at that time).

https://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html