Skip to content

Commit 69f77e4

Browse files
committed
Merge branch 'release/v0.2.0' into develop
2 parents 5f3a6c6 + 946ed69 commit 69f77e4

File tree

7 files changed

+32
-20
lines changed

7 files changed

+32
-20
lines changed

.bumpversion.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0 OR MIT
44

55
[tool.bumpversion]
6-
current_version = "0.1.0"
6+
current_version = "0.2.0"
77

88
[[tool.bumpversion.files]]
99
filename = "build.zig.zon"

.github/workflows/CI.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- os-alias: windows
3535
os: windows-2022
3636
- version-alias: minimum
37-
version: "0.14.0"
37+
version: "0.15.1"
3838
- version-alias: latest
3939
version: "latest"
4040
steps:

CHANGELOG.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ All notable changes to this project will be documented in this file.
1414
The format is based on https://keepachangelog.com/[Keep a Changelog], and this
1515
project adheres to https://semver.org/[Semantic Versioning].
1616

17-
== {compare-url}/v0.1.0\...HEAD[Unreleased]
17+
== {compare-url}/v0.1.0\...v0.2.0[0.2.0] - 2025-08-22
18+
19+
=== Changed
20+
21+
* Migrate to Zig version 0.15.1 ({pull-request-url}/11[#11])
1822

1923
=== Fixed
2024

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ See the [documentation][docs-url] for more details.
4949

5050
## Zig version
5151

52-
This library is compatible with Zig version 0.14.0.
52+
This library is compatible with Zig version 0.15.1.
5353

5454
## Source code
5555

build.zig

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,22 @@ pub fn build(b: *std.Build) void {
1515

1616
const unit_test_step = b.step("unit-test", "Run only the unit tests");
1717
const unit_tests = b.addTest(.{
18-
.root_source_file = b.path("src/root.zig"),
19-
.target = target,
20-
.optimize = optimize,
18+
.root_module = b.createModule(.{
19+
.root_source_file = b.path("src/root.zig"),
20+
.target = target,
21+
.optimize = optimize,
22+
}),
2123
});
2224
const run_unit_tests = b.addRunArtifact(unit_tests);
2325
unit_test_step.dependOn(&run_unit_tests.step);
2426

2527
const integration_test_step = b.step("integration-test", "Run only the integration tests");
2628
const integration_tests = b.addTest(.{
27-
.root_source_file = b.path("tests/root.zig"),
28-
.target = target,
29-
.optimize = optimize,
29+
.root_module = b.createModule(.{
30+
.root_source_file = b.path("tests/root.zig"),
31+
.target = target,
32+
.optimize = optimize,
33+
}),
3034
});
3135
integration_tests.root_module.addImport("csscolorparser", csscolorparser_mod);
3236
const run_integration_tests = b.addRunArtifact(integration_tests);
@@ -39,9 +43,11 @@ pub fn build(b: *std.Build) void {
3943
const doc_step = b.step("doc", "Build the package documentation");
4044
const doc_obj = b.addObject(.{
4145
.name = "csscolorparser",
42-
.root_source_file = b.path("src/root.zig"),
43-
.target = target,
44-
.optimize = optimize,
46+
.root_module = b.createModule(.{
47+
.root_source_file = b.path("src/root.zig"),
48+
.target = target,
49+
.optimize = optimize,
50+
}),
4551
});
4652
const install_doc = b.addInstallDirectory(.{
4753
.source_dir = doc_obj.getEmittedDocs(),
@@ -55,9 +61,11 @@ pub fn build(b: *std.Build) void {
5561
inline for (example_names) |example_name| {
5662
const example = b.addExecutable(.{
5763
.name = example_name,
58-
.root_source_file = b.path("examples/" ++ example_name ++ ".zig"),
59-
.target = target,
60-
.optimize = optimize,
64+
.root_module = b.createModule(.{
65+
.root_source_file = b.path("examples/" ++ example_name ++ ".zig"),
66+
.target = target,
67+
.optimize = optimize,
68+
}),
6169
});
6270
example.root_module.addImport("csscolorparser", csscolorparser_mod);
6371
const install_example = b.addInstallArtifact(example, .{});

build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
.{
66
.name = .csscolorparser,
7-
.version = "0.1.0",
7+
.version = "0.2.0",
88
.fingerprint = 0xca2c5cca2bb1da44,
9-
.minimum_zig_version = "0.14.0",
9+
.minimum_zig_version = "0.15.1",
1010
.paths = .{ "build.zig", "build.zig.zon", "LICENSES", "README.md", "src" },
1111
}

examples/parse.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ pub fn main() !void {
1818
defer std.process.argsFree(allocator, args);
1919

2020
const input = if (args.len < 2)
21-
(try std.io.getStdIn().reader().readUntilDelimiterOrEofAlloc(allocator, '\n', std.math.maxInt(usize))).?
21+
(try std.fs.File.stdin().deprecatedReader().readUntilDelimiterOrEofAlloc(allocator, '\n', std.math.maxInt(usize))).?
2222
else
2323
try allocator.dupe(u8, args[1]);
2424
defer allocator.free(input);
2525

2626
const color = try csscolorparser.Color(f64).parse(input);
2727

28-
const stdout = std.io.getStdOut().writer();
28+
const stdout = std.fs.File.stdout().deprecatedWriter();
2929
if (color.name()) |name|
3030
try stdout.print("Name: {s}\n", .{name});
3131
{

0 commit comments

Comments
 (0)