Skip to content

Commit 07298e4

Browse files
committed
Sync with latest datatime
1 parent ce7ba9e commit 07298e4

File tree

8 files changed

+15
-102
lines changed

8 files changed

+15
-102
lines changed
File renamed without changes.
File renamed without changes.

REFACTORING_SUMMARY.md

Lines changed: 0 additions & 88 deletions
This file was deleted.

_notes.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,4 +399,6 @@ VSCode configuration
399399
https://code.visualstudio.com/docs/editor/variables-reference
400400

401401
launch.json & tasks.json
402-
https://gist.github.com/amantuladhar/ee210628d55161ba3046b1ac9ff419a1
402+
https://gist.github.com/amantuladhar/ee210628d55161ba3046b1ac9ff419a1
403+
404+
zig fetch --save git+https://github.com/frmdstryr/zig-datetime#master

build.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn build(b: *std.Build) void {
2020
.optimize = optimize,
2121
});
2222

23-
const zig_datetime: *std.Build.Dependency = b.*.dependency("zig-datetime", .{
23+
const zig_datetime: *std.Build.Dependency = b.*.dependency("datetime", .{
2424
.target = target,
2525
.optimize = optimize,
2626
});
@@ -40,7 +40,7 @@ pub fn build(b: *std.Build) void {
4040
.single_threaded = false,
4141
});
4242

43-
lib.*.root_module.addImport("zig-datetime", zig_datetime.*.module("zig-datetime"));
43+
lib.*.root_module.addImport("datetime", zig_datetime.*.module("datetime"));
4444
lib.*.root_module.addImport("network", zig_network.*.module("network"));
4545

4646
// This declares intent for the library to be installed into the standard
@@ -57,7 +57,7 @@ pub fn build(b: *std.Build) void {
5757
});
5858

5959
lib_unit_tests.*.root_module.addImport("network", zig_network.*.module("network"));
60-
lib_unit_tests.*.root_module.addImport("zig-datetime", zig_datetime.*.module("zig-datetime"));
60+
lib_unit_tests.*.root_module.addImport("datetime", zig_datetime.*.module("datetime"));
6161
lib_unit_tests.*.root_module.addImport("mailbox", mailbox.*.module("mailbox"));
6262
b.*.installArtifact(lib_unit_tests);
6363

build.zig.zon

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@
66
//
77
// It is redundant to include "zig" in this name because it is already
88
// within the Zig package namespace.
9-
.name = "syslog",
9+
.name = .syslog,
1010

1111
// This is a [Semantic Version](https://semver.org/).
1212
// In a future version of Zig it will be used for package deduplication.
1313
.version = "0.0.0",
1414

15-
// This field is optional.
16-
// This is currently advisory only; Zig does not yet do anything
17-
// with this value.
18-
//.minimum_zig_version = "0.11.0",
15+
.fingerprint = 0xc142e2d735dcd6b0,
16+
17+
.minimum_zig_version = "0.14.1",
1918

2019
// This field is optional.
2120
// Each dependency must either provide a `url` and `hash`, or a `path`.
@@ -25,15 +24,15 @@
2524
.dependencies = .{
2625
.mailbox = .{
2726
.url = "https://github.com/g41797/mailbox/archive/master.tar.gz",
28-
.hash = "12208d8777b69f62cccf70b4372d8c31a22bb022881279713d424689d6555532d389",
27+
.hash = "mailbox-0.0.0-eJsHsMBEAACjbrEiAWogXHrTTXjUheNjxm-PLKTUQWCz",
2928
},
3029
.network = .{
3130
.url = "git+https://github.com/ikskuh/zig-network#805ce63eec48373ec497542f18f19d7c484b9b2e",
3231
.hash = "122007f014c736cee735f1fe71660e39aa9f8c9351deab2e35c4dd9ab69d37d8db46",
3332
},
34-
.@"zig-datetime" = .{
35-
.url = "git+https://github.com/frmdstryr/zig-datetime#70aebf28fb3e137cd84123a9349d157a74708721",
36-
.hash = "122077215ce36e125a490e59ec1748ffd4f6ba00d4d14f7308978e5360711d72d77f",
33+
.datetime = .{
34+
.url = "git+https://github.com/frmdstryr/zig-datetime?ref=master#3a39a21e6e34dcb0ade0ff828d0914d40ba535f3",
35+
.hash = "datetime-0.8.0-cJNXzP_YAQBxQ5hkNNP6ScnG5XsqciJmeP5RVV4xwCBA",
3736
},
3837
},
3938
.paths = .{

src/timestamp.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const std = @import("std");
33
const string = @import("shortstring.zig");
44
const ShortString = string.ShortString;
5-
pub const zig_dt = @import("zig-datetime");
5+
pub const zig_dt = @import("datetime");
66
pub const datetime = zig_dt.datetime;
77
pub const timezones = zig_dt.timezones;
88
//---------------------------------

0 commit comments

Comments
 (0)