forked from nulang-org/nulang
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.rs
More file actions
18 lines (17 loc) · 804 Bytes
/
Copy pathmod.rs
File metadata and controls
18 lines (17 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Durable-format infrastructure for Nulang.
//!
//! This module owns the canonical, **frozen** format-version constants and
//! the `.nbc` (Nulang Bytecode) artifact codec. It is the layer that lets a
//! program compiled in one era run in another: every durable artifact carries
//! a magic + version header, and a runtime that does not understand a
//! version rejects it rather than reinterpreting it.
//!
//! See `SPEC2.md` §"Format Stability" for the contract, and the submodules
//! for the concrete codecs:
//!
//! - [`constants`] — magic bytes, version numbers, [`constants::FormatError`].
//! - [`nbc`] — `CodeModule::to_nbc` / `from_nbc` and [`nbc::NbcArtifact`].
//! - [`migrate`] — the only legal place format-version upgrades live.
pub mod constants;
pub mod migrate;
pub mod nbc;