Why aren't the Heading and outline available as a package in typst?

Why aren’t the Heading and outline available as a package in typst?

Headings and outlines are provided in a standard library. They cannot be provided as standard libraries, because there is only a single “standard library” (std) and they are just elements, so they can’t include anything other than themselves, so it’s useless. They are implemented in Rust, because Typst as a whole is implemented in Rust.

I mean, why not use the *.typ code to provide heading and outline functions? That way, writing code becomes easier to understand, and modifications are easier and more flexible!

Are you talking about this?

How exactly are you expecting to interact with it in your document? Where would those files go?