rokdocs
v0.1

0. Standard library meta

This chapter collects in one place the policies and tables that apply across the standard library specification.

Contents

Role of this chapter

This chapter does not directly define individual traits or types. Instead, it gathers the rules and policies that the library as a whole must follow consistently.

The 3-tier model prescribes the direction of dependencies: std may use core and bare, and core may use bare, but dependencies in the opposite direction are not allowed. The import policy specifies how use rok::core::**; is applied implicitly and automatically. There is no separate prelude module; the recursive glob over rok::core plays that role directly. The intrinsic entry that follows covers how standard library methods are connected to the compiler backend (PrimOp, etc.), and finally the lang slot entry shows how the 48 slots the compiler looks up through the #[lang(...)] attribute map to standard library items.

Only once these policies are defined can the trait definitions of 200-core/ follow.

Edit this page on GitHub