Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Vexu/comptime_hash_map

A statically initiated HashMap
https://github.com/Vexu/comptime_hash_map

compile-time zig zig-library zig-package

Last synced: 3 months ago
JSON representation

A statically initiated HashMap

Awesome Lists containing this project

README

        

# Comptime HashMap

A statically initiated HashMap, originally a pull request to the Zig std lib [#5359](https://github.com/ziglang/zig/pull/5359).

## Installation

Build for Zig `0.13.0`.

```sh
zig fetch --save git+https://github.com/Vexu/comptime_hash_map
```

In your `build.zig`:
```zig
const chm = b.dependency("comptime_hash_map", .{});
exe.root_module.addImport("comptime_hash_map", chm.module("comptime_hash_map"));
```

In your `exe` module:
```zig
const chm = @import("comptime_hash_map");
```