feat: Created own age wrapper.

This commit is contained in:
2026-04-28 18:03:06 -04:00
parent 02ce5e46b7
commit e528652725
11 changed files with 213 additions and 5 deletions

View File

@@ -25,9 +25,8 @@ pub fn build(b: *std.Build) void {
// Link the Rust static library
// Assumes the library has been built with: cargo build --release
example.root_module.addLibraryPath(b.path("../target/release"));
example.root_module.linkSystemLibrary("age_ffi", .{});
// example.root_module.linkLibC();
example.root_module.linkSystemLibrary("age_ffi", .{ .needed = true });
// example.linkLibC();
// Install the example
b.installArtifact(example);
@@ -80,7 +79,7 @@ pub fn build(b: *std.Build) void {
tests.root_module.addImport("age", age_module);
tests.root_module.addLibraryPath(b.path("../target/release"));
tests.root_module.linkSystemLibrary("age_ffi", .{});
tests.root_module.linkSystemLibrary("age_ffi", .{ .needed = true });
// tests.linkLibC();
tests.step.dependOn(&cargo_build.step);

View File

@@ -0,0 +1,9 @@
.{
.name = .age,
.version = "0.1.0",
.fingerprint = 0xa13010b27f1528d3,
.minimum_zig_version = "0.14.0",
.paths = .{
"zig",
},
}