A simple intrusive Queue structure for Zig
1# Queue.zig 2A simple intrusive Queue for Zig, similar to SinglyLinkedList. There's 3a nice example of how to use intrusive structures at [https://www.openmymind.net/Zigs-New-LinkedList-API/](https://www.openmymind.net/Zigs-New-LinkedList-API/). 4 5## Adding to project 6First, add the package to your build.zig.zon: 7`zig fetch --save git+https://tangled.sh/@sydney.blue/Queue.zig#dev` 8Then, add the following to your build.zig: 9```zig 10const queue_dep = b.dependency("Queue", .{}); 11const queue_mod = queue_dep.module("Queue"); 12exe.root_module.addImport("Queue", queue); 13``` 14 15Now, you can import the `Queue` module. You can find a code example in `example.zig`.