diff --git a/README.md b/README.md index 231f54e..91e4b4d 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ _zlugify_ is a library to generate slugs from all types of UTF-8 encoded strings ## Versions -zlugify 1.0.1 is made and tested with zig 0.13.0. +zlugify 1.1.0 is made and tested with zig 0.14.0. ## How to use @@ -23,7 +23,7 @@ zlugify 1.0.1 is made and tested with zig 0.13.0. In your project directory: ```shell -$ zig fetch --save https://code.zeptotech.net/zedd/zlugify/archive/v1.0.1.tar.gz +$ zig fetch --save https://code.zeptotech.net/zedd/zlugify/archive/v1.1.0.tar.gz ``` In `build.zig`: diff --git a/build.zig b/build.zig index f3809b9..e7f2bd5 100644 --- a/build.zig +++ b/build.zig @@ -4,8 +4,8 @@ pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); - // Add anyascii.zig dependency. - const anyascii = b.dependency("anyascii.zig", .{ + // Add anyascii dependency. + const anyascii = b.dependency("anyascii", .{ .target = target, .optimize = optimize, }); @@ -16,15 +16,15 @@ pub fn build(b: *std.Build) void { .target = target, .optimize = optimize, }); + // Add anyascii dependency. zlugify.addImport("anyascii", anyascii.module("anyascii")); // Library unit tests. const lib_unit_tests = b.addTest(.{ - .root_source_file = b.path("src/lib.zig"), + .root_module = zlugify, .target = target, .optimize = optimize, }); - lib_unit_tests.root_module.addImport("anyascii", anyascii.module("anyascii")); const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests); const test_step = b.step("test", "Run unit tests."); diff --git a/build.zig.zon b/build.zig.zon index c173e15..f942bc7 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,18 +1,20 @@ .{ - .name = "zlugify", - .version = "1.0.1", + .name = .zlugify, + .version = "1.1.0", - .dependencies = .{ - .@"anyascii.zig" = .{ - .url = "https://code.zeptotech.net/zedd/anyascii.zig/archive/v1.1.1.tar.gz", - .hash = "1220800d403fc841a4c7b9d09ae8759ae28adff05de33836a3f69f02e8e0ac77bae9", - }, - }, + .fingerprint = 0x60f9ca2959523881, - .paths = .{ - "build.zig", - "build.zig.zon", - "src", - "README.md", - }, + .dependencies = .{ + .anyascii = .{ + .url = "https://code.zeptotech.net/zedd/anyascii.zig/archive/v1.2.0.tar.gz", + .hash = "anyascii-1.2.0-rvK7q3iGFABchFPwDMdB5tpj716jR3mukBiuMT-PdD5-", + }, + }, + + .paths = .{ + "build.zig", + "build.zig.zon", + "src", + "README.md", + }, }