Fix include

This commit is contained in:
2026-07-12 08:07:32 -04:00
parent 103976f8fd
commit e513e2fbdb
+9 -6
View File
@@ -20,16 +20,19 @@ pub use my_module::MyType;
### Include Directives ### Include Directives
Mist supports C-style include directives for importing external files and crates: Mist supports C-style include directives for
```mist ```mist
// Global include (C-style) // Global include (std::Display)
#include <stdio.h> // Includes all of the items *inside* the path
#include <std/fmt>
// Use include (import from crate) // Use include (std::Display)
pub use my_crate::my_module; // Includes *the path* itelf to the root.
#use std::fmt::Display;
// Local include (import from relative path) // Local include
// Textual include, transpiles to rust include! macro via .rs extension
#include "my_local_module.mist" #include "my_local_module.mist"
``` ```