sylveos

Toy Operating System
Log | Files | Refs

build.zig.zon (2631B)


      1 .{
      2     // This is the default name used by packages depending on this one. For
      3     // example, when a user runs `zig fetch --save <url>`, this field is used
      4     // as the key in the `dependencies` table. Although the user can choose a
      5     // different name, most users will stick with this provided value.
      6     //
      7     // It is redundant to include "zig" in this name because it is already
      8     // within the Zig package namespace.
      9     .name = .SylveOS,
     10     // This is a [Semantic Version](https://semver.org/).
     11     // In a future version of Zig it will be used for package deduplication.
     12     .version = "0.0.0",
     13     // Together with name, this represents a globally unique package
     14     // identifier. This field is generated by the Zig toolchain when the
     15     // package is first created, and then *never changes*. This allows
     16     // unambiguous detection of one package being an updated version of
     17     // another.
     18     //
     19     // When forking a Zig project, this id should be regenerated (delete the
     20     // field and run `zig build`) if the upstream project is still maintained.
     21     // Otherwise, the fork is *hostile*, attempting to take control over the
     22     // original project's identity. Thus it is recommended to leave the comment
     23     // on the following line intact, so that it shows up in code reviews that
     24     // modify the field.
     25     .fingerprint = 0x7a754f1e8a3cfd87, // Changing this has security and trust implications.
     26     // Tracks the earliest Zig version that the package considers to be a
     27     // supported use case.
     28     .minimum_zig_version = "0.15.2",
     29     // This field is optional.
     30     // Each dependency must either provide a `url` and `hash`, or a `path`.
     31     // `zig build --fetch` can be used to fetch all dependencies of a package, recursively.
     32     // Once all dependencies are fetched, `zig build` no longer requires
     33     // internet connectivity.
     34     .dependencies = .{},
     35     // Specifies the set of files and directories that are included in this package.
     36     // Only files and directories listed here are included in the `hash` that
     37     // is computed for this package. Only files listed here will remain on disk
     38     // when using the zig package manager. As a rule of thumb, one should list
     39     // files required for compilation plus any license(s).
     40     // Paths are relative to the build root. Use the empty string (`""`) to refer to
     41     // the build root itself.
     42     // A directory listed here means that all files within, recursively, are included.
     43     .paths = .{
     44         "build.zig",
     45         "build.zig.zon",
     46         "src",
     47         // For example...
     48         //"LICENSE",
     49         //"README.md",
     50     },
     51 }