Skip to content

Commit 9f5b4e6

Browse files
committed
Merge branch 'develop'
* develop: chore(release): prepare for 0.0.14 refactor: Migrate crypto code to libsafe dependency
2 parents 42a78f7 + 7703b17 commit 9f5b4e6

20 files changed

Lines changed: 63 additions & 5535 deletions

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [0.0.14] - 2026-03-04
4+
5+
### <!-- 2 -->🚜 Refactor
6+
7+
- Migrate crypto code to libsafe dependency
8+
39
## [0.0.13] - 2026-03-02
410

511
### <!-- 1 -->🐛 Bug Fixes

PROJECT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
libfast
2-
0.0.13
2+
0.0.14

build.zig

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,27 @@ const std = @import("std");
33
pub fn build(b: *std.Build) void {
44
const target = b.standardTargetOptions(.{});
55
const optimize = b.standardOptimizeOption(.{});
6+
const libsafe_dep = b.dependency("libsafe", .{
7+
.target = target,
8+
.optimize = optimize,
9+
});
10+
const libsafe_module = libsafe_dep.module("libsafe");
611

712
// Create the libfast module
813
const libfast_module = b.createModule(.{
914
.root_source_file = b.path("lib/libfast.zig"),
1015
.target = target,
1116
.optimize = optimize,
1217
});
18+
libfast_module.addImport("libsafe", libsafe_module);
1319

1420
// Export the module so it can be used by other projects
15-
_ = b.addModule("libfast", .{
21+
const exported = b.addModule("libfast", .{
1622
.root_source_file = b.path("lib/libfast.zig"),
1723
.target = target,
1824
.optimize = optimize,
1925
});
26+
exported.addImport("libsafe", libsafe_module);
2027

2128
// Build the library
2229
const lib = b.addLibrary(.{

build.zig.zon

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
.{
22
.name = .libfast,
3-
.version = "0.0.13",
3+
.version = "0.0.14",
44
.dependencies = .{
5-
// zquic removed - building custom minimal QUIC for SSH/QUIC
5+
.libsafe = .{
6+
.url = "git+https://github.com/libzig/libsafe?ref=0.0.6",
7+
.hash = "libsafe-0.0.6-ucZASCbdAQDW8O1fuukZNTR3m1reR2QCx15FbaEvh75_",
8+
},
69
},
710
.paths = .{
811
"build.zig",
@@ -11,5 +14,5 @@
1114
"examples",
1215
"lib",
1316
},
14-
.fingerprint = 0x195115882e60ff19,
17+
.fingerprint = 0x19511588a5548c06,
1518
}

lib/api/config.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const crypto_mod = @import("../crypto/crypto.zig");
2+
const crypto_mod = @import("libsafe").crypto;
33
const types = @import("../core/types.zig");
44

55
/// QUIC configuration for connection setup

lib/api/connection.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ const types_mod = @import("types.zig");
44
const conn_internal = @import("../core/connection.zig");
55
const stream_internal = @import("../core/stream.zig");
66
const udp_mod = @import("../transport/udp.zig");
7-
const crypto_mod = @import("../crypto/crypto.zig");
7+
const crypto_mod = @import("libsafe").crypto;
88
const packet_mod = @import("../core/packet.zig");
99
const frame_mod = @import("../core/frame.zig");
1010
const core_types = @import("../core/types.zig");
1111
const transport_params_mod = @import("../core/transport_params.zig");
12-
const tls_context_mod = @import("../crypto/tls/tls_context.zig");
13-
const tls_handshake_mod = @import("../crypto/tls/handshake.zig");
12+
const tls_context_mod = @import("libsafe").tls_context;
13+
const tls_handshake_mod = @import("libsafe").tls_handshake;
1414
const varint = @import("../utils/varint.zig");
1515
const time_mod = @import("../utils/time.zig");
1616

0 commit comments

Comments
 (0)