summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jose Colon Rodriguez2024-06-10 17:47:59 -0400
committerGravatar Jose Colon Rodriguez2024-06-10 17:47:59 -0400
commit1f241bb722a528d888e8f511ce4c2135ea3b2a39 (patch)
tree2eebd12ab03b4eba1e2f55282a08a64042554bff
parentcodepoint: prevent panic when last cp too short (diff)
parentUpdated README for v0.13.0 (diff)
downloadzg-1f241bb722a528d888e8f511ce4c2135ea3b2a39.tar.gz
zg-1f241bb722a528d888e8f511ce4c2135ea3b2a39.tar.xz
zg-1f241bb722a528d888e8f511ce4c2135ea3b2a39.zip
Merge branch 'master' into pr6
-rw-r--r--README.md4
-rw-r--r--bench/build.zig4
-rw-r--r--bench/build.zig.zon2
-rw-r--r--codegen/dwp.zig3
4 files changed, 5 insertions, 8 deletions
diff --git a/README.md b/README.md
index df167f6..4771301 100644
--- a/README.md
+++ b/README.md
@@ -5,14 +5,14 @@ zg provides Unicode text processing for Zig projects.
5The Unicode version supported by zg is 15.1.0. 5The Unicode version supported by zg is 15.1.0.
6 6
7## Zig Version 7## Zig Version
8The minimum Zig version required is 0.12.0-dev.3496+a2df84d0. 8The minimum Zig version required is 0.13.0 stable.
9 9
10## Integrating zg into your Zig Project 10## Integrating zg into your Zig Project
11You first need to add zg as a dependency in your `build.zig.zon` file. In your 11You first need to add zg as a dependency in your `build.zig.zon` file. In your
12Zig project's root directory, run: 12Zig project's root directory, run:
13 13
14```plain 14```plain
15zig fetch --save https://codeberg.org/dude_the_builder/zg/archive/v0.1.0.tar.gz 15zig fetch --save https://codeberg.org/dude_the_builder/zg/archive/v0.13.0.tar.gz
16``` 16```
17 17
18Then instantiate the dependency in your `build.zig`: 18Then instantiate the dependency in your `build.zig`:
diff --git a/bench/build.zig b/bench/build.zig
index d028851..66864c2 100644
--- a/bench/build.zig
+++ b/bench/build.zig
@@ -110,7 +110,7 @@ pub fn build(b: *std.Build) !void {
110 for (&benches) |bench| { 110 for (&benches) |bench| {
111 const exe = b.addExecutable(.{ 111 const exe = b.addExecutable(.{
112 .name = bench.name, 112 .name = bench.name,
113 .root_source_file = .{ .path = bench.src }, 113 .root_source_file = b.path(bench.src),
114 .target = target, 114 .target = target,
115 .optimize = optimize, 115 .optimize = optimize,
116 .strip = true, 116 .strip = true,
@@ -125,7 +125,7 @@ pub fn build(b: *std.Build) !void {
125 125
126 // Tests 126 // Tests
127 const unit_tests = b.addTest(.{ 127 const unit_tests = b.addTest(.{
128 .root_source_file = .{ .path = "src/tests.zig" }, 128 .root_source_file = b.path("src/tests.zig"),
129 .target = target, 129 .target = target,
130 .optimize = optimize, 130 .optimize = optimize,
131 }); 131 });
diff --git a/bench/build.zig.zon b/bench/build.zig.zon
index 4a6fc8e..2c56013 100644
--- a/bench/build.zig.zon
+++ b/bench/build.zig.zon
@@ -6,7 +6,7 @@
6 .dependencies = .{ 6 .dependencies = .{
7 .ziglyph = .{ 7 .ziglyph = .{
8 .url = "https://codeberg.org/dude_the_builder/ziglyph/archive/main.tar.gz", 8 .url = "https://codeberg.org/dude_the_builder/ziglyph/archive/main.tar.gz",
9 .hash = "12203449cf66ddeb1d9c13cb4722e906f1b389e59724f0a83c21705a531f9e5a2670", 9 .hash = "12207831bce7d4abce57b5a98e8f3635811cfefd160bca022eb91fe905d36a02cf25",
10 }, 10 },
11 .zg = .{ .path = ".." }, 11 .zg = .{ .path = ".." },
12 }, 12 },
diff --git a/codegen/dwp.zig b/codegen/dwp.zig
index b083ce4..c581eb6 100644
--- a/codegen/dwp.zig
+++ b/codegen/dwp.zig
@@ -178,9 +178,6 @@ pub fn main() !void {
178 0x2060...0x206f, 178 0x2060...0x206f,
179 0xfff0...0xfff8, 179 0xfff0...0xfff8,
180 0xe0000...0xE0fff, 180 0xe0000...0xE0fff,
181
182 // Sk with EMOJI MODIFIER comment
183 // 0x1f3fb...0x1f3ff,
184 => width = 0, 181 => width = 0,
185 182
186 // Two-em dash 183 // Two-em dash