Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/Vexu/comptime_hash_map
- Owner: Vexu
- License: mit
- Created: 2020-06-27T17:56:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-18T15:20:24.000Z (6 months ago)
- Last Synced: 2024-11-08T12:48:51.041Z (3 months ago)
- Topics: compile-time, zig, zig-library, zig-package
- Language: Zig
- Homepage:
- Size: 10.7 KB
- Stars: 19
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - comptime_hash_map🗒️A statically initiated HashMap
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");
```