Skip to content

myclevorname/narser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Narser, a Nix ARchive parSER library and program

Narser is a replacement for nix nar that aims to be simple and fast. Currently, narser pack is around twice as fast as Nix at packing the Linux kernel source code, at least when discarding the output or writing to a tmpfs. (see benchmark) However, the hash subcommand is somewhat slower than nix hash path.

NOTE: Not to be confused with the Narser parser generator, which is 9 years old. See also narz, another Zig-based alternative.

DO NOT run on a filesystem with case-insensitive file names as that allows an attacker to write to arbitrary files with the same permissions as the invoking user.

Building

Narser simultaneously targets the latest stable and nightly releases of Zig. If it fails to build on either, that is a bug. Due to 0.15.0 releasing soon, only the latest nightly is supported.

TODO

  1. Clean up code
  2. Revamp the Zig interface
  3. Add documentation
  4. Add more tests

Contributing

Please read CONTRIBUTING.md for some guidelines and view some of my other repos for contact information.

TL;DR: There is nothing to worry about if you don't use AI and you follow Github's ToS.

About

Nix Archive parser that I hopefully won't abandon

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published