Initial import: Aji 0.1 draft spec and Zig scaffolding
Draft specification, RFCs, reference registries and examples, plus the reference-implementation skeleton: build.zig, diagnostic envelope with error-code registry synced to docs, aji CLI, conformance runner with seed tests, CI and contributor docs.
This commit is contained in:
commit
17a55a7fef
67 files changed
+4197
No files matched your search
@@ -0,0 +1,45 @@
|
||||
# 12. Packages and Build
|
||||
|
||||
## 1. Manifest
|
||||
|
||||
A package contains an `aji.toml` manifest.
|
||||
|
||||
Illustrative manifest:
|
||||
|
||||
```toml
|
||||
[package]
|
||||
name = "aji-log"
|
||||
version = "0.1.0"
|
||||
|
||||
[target]
|
||||
os = "linux"
|
||||
arch = "x86_64"
|
||||
|
||||
[capabilities]
|
||||
filesystem = ["read", "write"]
|
||||
network = false
|
||||
```
|
||||
|
||||
## 2. Reproducibility
|
||||
|
||||
Given the same:
|
||||
|
||||
- source;
|
||||
- compiler version;
|
||||
- dependency lock;
|
||||
- target;
|
||||
- feature set;
|
||||
|
||||
build graph evaluation must be deterministic.
|
||||
|
||||
## 3. Build scripts
|
||||
|
||||
Packages cannot execute arbitrary host code merely because they are dependencies.
|
||||
|
||||
Any build extension must be explicitly declared, sandboxed and capability-limited.
|
||||
|
||||
## 4. Dependencies
|
||||
|
||||
Dependencies should be content-addressed or lockfile-pinned.
|
||||
|
||||
The package system should record unsafe/runtime dependencies separately from ordinary safe source dependencies.
|
||||
Reference in new issue
Block a user