char/sorcery
static-files based git repo viewer
git clone https://git.t4t.associates/char/sorcery
8f07a0e
main
1const std =@import ( "std" ); 2 3pub fn build ( b : * std . Build ) void { 4const target =b . standardTargetOptions (.{}); 5const optimize =b . standardOptimizeOption (.{}); 6 7const shlex_dep =b . dependency ( "shlex" , .{ 8. target =target , 9. optimize =optimize , 10}); 11const shlex_mod =shlex_dep . module ( "shlex" ); 12 13const module =b . createModule (.{ 14. root_source_file =b . path ( "src/main.zig" ), 15. target =target , 16. optimize =optimize , 17}); 18module . addImport ( "shlex" , shlex_mod ); 19 20const exe =b . addExecutable (.{ 21. name ="sorcery-ssh" , 22. root_module =module , 23}); 24b . installArtifact ( exe ); 25 26const tests =b . addTest (.{ . root_module =module }); 27const test_step =b . step ( "test" , "Run tests" ); 28test_step . dependOn ( & b . addRunArtifact ( tests ). step ); 29}