Skip to content

Commit

Permalink
Update all dependencies to latest release. (#11)
Browse files Browse the repository at this point in the history
For compile x86-windows-gnu target.

Co-authored-by: Qun He <[email protected]>
  • Loading branch information
hawkbee and Qun He authored May 29, 2024
1 parent 1357103 commit 8a3f457
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
7 changes: 4 additions & 3 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ This package is in early stage, although the core functionality works right now,
The vendored libraries consist of:
| Library | Version |
|---------+---------|
| libcurl | [[https://github.com/curl/curl/tree/curl-8_5_0][8.5.0]] |
| zlib | [[https://github.com/madler/zlib/tree/v1.3][1.3]] |
| mbedtls | [[https://github.com/Mbed-TLS/mbedtls/tree/v3.5.1][3.5.1]] |
| libcurl | [[https://github.com/curl/curl/tree/curl-8_8_0][8.8.0]] |
| zlib | [[https://github.com/madler/zlib/tree/v1.3.1][1.3.1]] |
| mbedtls | [[https://github.com/Mbed-TLS/mbedtls/tree/v3.6.0][3.6.0]] |

* Usage
#+begin_src zig
Expand Down Expand Up @@ -65,6 +65,7 @@ exe.linkLibC();
#+end_src

* Roadmap

- [x] Currently only easy API is supported, support [[https://curl.se/libcurl/c/libcurl-multi.html][multi API]].

* License
Expand Down
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn build(b: *Build) void {
try addExample(b, "multi", module, libcurl, target, optimize);

const main_tests = b.addTest(.{
.root_source_file = .{ .path = "src/root.zig" },
.root_source_file = b.path("src/root.zig"),
.target = target,
.optimize = optimize,
.link_libc = true,
Expand Down
16 changes: 8 additions & 8 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
},
.dependencies = .{
.curl = .{
// https://github.com/curl/curl/releases/tag/curl-8_5_0
.url = "https://github.com/curl/curl/releases/download/curl-8_5_0/curl-8.5.0.tar.gz",
.hash = "12206e97053bf43e6bd83f2d51eefbac497a05f2eee98868431e9d228a12971e716e",
// https://github.com/curl/curl/releases/tag/curl-8_8_0
.url = "https://github.com/curl/curl/releases/download/curl-8_8_0/curl-8.8.0.tar.gz",
.hash = "12207d52e2cf89a5750ad273648c6f4cdeb5b4c19d171f0b1a3215cf592ca677fd94",
.lazy = true,
},
// https://github.com/madler/zlib/releases/tag/v1.3
// https://github.com/madler/zlib/releases/tag/v1.3.1
.zlib = .{
.url = "https://github.com/madler/zlib/releases/download/v1.3/zlib-1.3.tar.gz",
.hash = "1220c32f4f9dbcb4445c153b6a5bf1e1f697a76f6b690dda9c600357c6b7080af614",
.url = "https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz",
.hash = "1220c1854d7b4c2b5cbdd8ce6593c37e4bf1ac4032664735e1537c3848becb3b5834",
.lazy = true,
},
.mbedtls = .{
.url = "https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.5.1.tar.gz",
.hash = "1220700935566604edf3dd5491dab97c29571d1b07830e626ed31109811198fdc941",
.url = "https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.6.0.tar.gz",
.hash = "1220358fd78ebfb68dde5b77787d5325f1f89e901d448ae0da0187811be53dd3ec7c",
.lazy = true,
},
},
Expand Down
5 changes: 4 additions & 1 deletion libs/curl.zig
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ const srcs = &.{
"lib/curl_addrinfo.c",
"lib/hostasyn.c",
"lib/doh.c",
"lib/curl_ntlm_wb.c",
"lib/request.c",
"lib/cw-out.c",
"lib/curl_sha512_256.c",
"lib/vtls/cipher_suite.c",
"lib/easygetopt.c",
"lib/ldap.c",
"lib/nonblock.c",
Expand Down
3 changes: 1 addition & 2 deletions libs/mbedtls.zig
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ const srcs = &.{
"library/padlock.c",
"library/pem.c",
"library/pk.c",
// Used in 3.6.0
// "library/pk_ecc.c",
"library/pk_ecc.c",
"library/pk_wrap.c",
"library/pkcs12.c",
"library/pkcs5.c",
Expand Down

0 comments on commit 8a3f457

Please sign in to comment.