Repository navigation
tls 1.7.0: works alongside Mojo's std (open, listdir, get_errno)
tls now works next to Mojo's standard library. No API change.
Fixed
- Programs using tls together with
open(),std.os.listdirorstd.ffi.get_errnofailed to compile with "existing function with conflicting signature". A Mojo program may declare each C function with only one signature, and tls declaredopen,read,writeand__error/__errno_locationwith types that differ from std's. tls 1.7.0 declares none of the C functions std declares: errno comes fromstd.ffi.get_errno, sockets userecv/send, and files are read through stdopen(). - The system CA bundle is no longer cut off at 2 MB. Larger bundles used to lose their last certificates silently.
Upgrade together
websocket ≤ 1.1.3, requests ≤ 1.2.2 and pg ≤ 1.5.2 declare some of these C functions themselves and clash with tls 1.7.0. Use websocket 1.2.0, requests 1.3.0 and pg 1.6.0, released alongside this version; mojo-pkg update picks them all up.
Testing
- New
tests/test_std_compat.mojocompiles tls next toopen(),listdir,getenv,get_errnoand the std clocks (CI on Linux and macOS). - A compile matrix (five std features × tls, tcp, websocket, requests and pg) succeeds on all 30 builds.
- Interop: 27/27 checks against OpenSSL 3.
- Live sweeps: 24 sites plus 4 bad endpoints all correct, and 55/55 sites connect.