chore: update to new getty API
This commit is contained in:
parent
aef6ee81aa
commit
45675cafa3
12
src/net.zig
12
src/net.zig
|
@ -48,11 +48,7 @@ pub fn newCurl() !*c.CURL {
|
||||||
pub const VersionFile = struct {
|
pub const VersionFile = struct {
|
||||||
tarball: [:0]const u8,
|
tarball: [:0]const u8,
|
||||||
|
|
||||||
pub const @"getty.dbt" = struct {
|
pub const @"getty.db" = struct {
|
||||||
pub fn is(comptime T: type) bool {
|
|
||||||
return T == VersionFile;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const attributes = .{
|
pub const attributes = .{
|
||||||
.Container = .{ .ignore_unknown_fields = true },
|
.Container = .{ .ignore_unknown_fields = true },
|
||||||
};
|
};
|
||||||
|
@ -65,11 +61,7 @@ pub const Version = struct {
|
||||||
|
|
||||||
file: ?VersionFile = null,
|
file: ?VersionFile = null,
|
||||||
|
|
||||||
pub const @"getty.dbt" = struct {
|
pub const @"getty.db" = struct {
|
||||||
pub fn is(comptime T: type) bool {
|
|
||||||
return T == Version;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const attributes = .{
|
pub const attributes = .{
|
||||||
.Container = .{ .ignore_unknown_fields = true },
|
.Container = .{ .ignore_unknown_fields = true },
|
||||||
.file = .{
|
.file = .{
|
||||||
|
|
Loading…
Reference in a new issue