all: update for zig-0.13
This is mainly updates to the build system, but there were a couple of stdlib changes for the tests. The build system does include handling more properly now as well, I think. It has fewer hacks, at least.
This commit is contained in:
@@ -14,9 +14,7 @@
|
||||
|
||||
const std = @import("std");
|
||||
|
||||
pub const nats_c = @cImport({
|
||||
@cInclude("nats/nats.h");
|
||||
});
|
||||
const nats_c = @import("./nats_c.zig").nats_c;
|
||||
|
||||
const Subscription = @import("./subscription.zig").Subscription;
|
||||
const SubscriptionCallbackSignature = @import("./subscription.zig").SubscriptionCallbackSignature;
|
||||
|
@@ -14,9 +14,7 @@
|
||||
|
||||
const std = @import("std");
|
||||
|
||||
pub const nats_c = @cImport({
|
||||
@cInclude("nats/nats.h");
|
||||
});
|
||||
const nats_c = @import("./nats_c.zig").nats_c;
|
||||
|
||||
// pub const AllocError = Error || std.mem.Allocator.Error;
|
||||
|
||||
|
@@ -14,9 +14,7 @@
|
||||
|
||||
const std = @import("std");
|
||||
|
||||
pub const nats_c = @cImport({
|
||||
@cInclude("nats/nats.h");
|
||||
});
|
||||
const nats_c = @import("./nats_c.zig").nats_c;
|
||||
|
||||
const err_ = @import("./error.zig");
|
||||
const Error = err_.Error;
|
||||
|
@@ -14,9 +14,7 @@
|
||||
|
||||
const std = @import("std");
|
||||
|
||||
pub const nats_c = @cImport({
|
||||
@cInclude("nats/nats.h");
|
||||
});
|
||||
pub const nats_c = @import("./nats_c.zig").nats_c;
|
||||
|
||||
const err_ = @import("./error.zig");
|
||||
const con_ = @import("./connection.zig");
|
||||
|
3
src/nats_c.zig
Normal file
3
src/nats_c.zig
Normal file
@@ -0,0 +1,3 @@
|
||||
pub const nats_c = @cImport({
|
||||
@cInclude("nats/nats.h");
|
||||
});
|
@@ -14,9 +14,7 @@
|
||||
|
||||
const std = @import("std");
|
||||
|
||||
const nats_c = @cImport({
|
||||
@cInclude("nats/nats.h");
|
||||
});
|
||||
const nats_c = @import("./nats_c.zig").nats_c;
|
||||
|
||||
const err_ = @import("./error.zig");
|
||||
const Status = err_.Status;
|
||||
|
@@ -14,9 +14,7 @@
|
||||
|
||||
const std = @import("std");
|
||||
|
||||
pub const nats_c = @cImport({
|
||||
@cInclude("nats/nats.h");
|
||||
});
|
||||
const nats_c = @import("./nats_c.zig").nats_c;
|
||||
|
||||
const Connection = @import("./connection.zig").Connection;
|
||||
|
||||
|
@@ -14,9 +14,7 @@
|
||||
|
||||
const std = @import("std");
|
||||
|
||||
pub const nats_c = @cImport({
|
||||
@cInclude("nats/nats.h");
|
||||
});
|
||||
const nats_c = @import("./nats_c.zig").nats_c;
|
||||
|
||||
pub fn checkUserDataType(comptime T: type) void {
|
||||
switch (@typeInfo(T)) {
|
||||
|
Reference in New Issue
Block a user