Andrew Kelley
163a827826
std.http: remove custom method support
...
let's see if anybody notices it missing
2025-08-07 10:04:52 -07:00
Andrew Kelley
6b411f147c
std.http: address review comments
...
thank you everybody
2025-08-07 10:04:52 -07:00
Andrew Kelley
618a435ad4
std.http.Server: add safety for invalidated Head strings
...
and fix bad unit test API usage that it finds
2025-08-07 10:04:52 -07:00
Andrew Kelley
262bfc5826
std.Io: delete LimitedReader
2025-08-07 10:04:52 -07:00
Andrew Kelley
e061445fc2
std.Io: delete BufferedReader
2025-08-07 10:04:52 -07:00
Andrew Kelley
366884ab06
remove std.fifo
...
I never liked how this data structure took its API as a parameter.
This use case is now served by std.Io buffering.
2025-08-07 10:04:52 -07:00
Andrew Kelley
3f8ed5504e
std.net: fix windows build
2025-08-07 10:04:52 -07:00
Andrew Kelley
3837862e52
fix 32-bit builds
2025-08-07 10:04:52 -07:00
Andrew Kelley
abd76938cb
std.Io.Reader: fix appendRemainingUnlimited
...
Now it avoids mutating `r` unnecessarily, allowing the `ending` Reader
to work.
2025-08-07 10:04:52 -07:00
Andrew Kelley
9e5048c3a5
fetch: update for new http API
...
it's not quite finished because I need to make it not copy the Resource
2025-08-07 10:04:51 -07:00
Andrew Kelley
fef41c66db
update build system to new http.Server API
2025-08-07 10:04:29 -07:00
Andrew Kelley
e2d81bf6c0
http fixes
2025-08-07 10:04:29 -07:00
Andrew Kelley
28190cc404
std.crypto.tls: rework for new std.Io API
2025-08-07 10:04:29 -07:00
Andrew Kelley
02908a2d8c
std.http: rework for new std.Io API
2025-08-07 10:04:28 -07:00
Alex Rønne Petersen
8843631f7e
Merge pull request #24709 from rootbeer/24380-fstatat-race-fix
2025-08-07 16:36:52 +02:00
Meghan Denny
63c5329156
std: fix std.c._msize signature
2025-08-07 16:02:52 +02:00
Matthew Lugg
fd9cfc39f5
Merge pull request #24199 from Justus2308/24106-fmt-casts
...
zig fmt: canonicalize nested cast builtin order
2025-08-07 10:55:03 +01:00
Pat Tullmann
cf47d283d1
lib/std/posix/test.zig: don't compare blksize in "fstatat"
...
In trying to reproduce the race in #24380 , my system tripped over the stat
"blocks" field changing in this test. The value was almost always 8
(effectively 4k) or very infrequently 0 (I saw the 0 from both `fstat` and
`fstatat`). I believe the underlying filesystem is free to asynchronously
change this value. For example, if it migrates a file between some
"inline" or maybe journal storage, and actual on-disk blocks. So it seems
plausible that its allowed to change between stat calls.
Breaking up the struct comparison this way means we also don't compare any
of the padding or "reserved" fields, too. And we can narrow down the
s390x-linux work-around.
2025-08-06 22:12:42 -07:00
Pat Tullmann
caf80e90b8
linux/mips.zig: Use i32 for stat nsec fields
...
The `atime()`, etc wrappers here expect to create a `std.linux.timespec`
(defined in `linux.zig` to have `isize` fields), so the u32 causes errors:
error: expected type 'isize', found 'u32'
.nsec = self.atim_nsec,
Make the nsec fields signed for consistency with all the other structs,
with and with `std.linux.timespec`.
Also looks like the comment on `__pad1` was copied from `__pad0`, but it
only applies to `__pad0`.
2025-08-06 22:12:41 -07:00
Andrew Kelley
04fe1bfe3c
std.Io.Reader: use readVec for fill functions
...
readVec has two updated responsibilities:
1. it must respect any existing already buffered data.
2. it must write to the buffer if data is empty
2025-08-06 21:23:06 -07:00
kj4tmp@gmail.com
44ea11d71f
#24471 : add mlock syscalls to std.os.linux
2025-08-06 12:18:45 +02:00
Igor Anić
d2149106a6
flate zlib fix end of block reading
...
`n` is wanted number of bits to toss
`buffered_n` is actual number of bytes in `next_int`
2025-08-05 17:09:41 -07:00
Andrew Kelley
d8cecffe31
Merge pull request #24699 from ziglang/bounded
...
remove RingBuffer; remove BoundedArray; use `@memmove`
2025-08-05 16:24:28 -07:00
Giuseppe Cesarano
3914eaf357
std.elf: buffer header iterator API ( #24691 )
...
Closes #24666 .
2025-08-05 10:00:33 -07:00
Andrew Kelley
8c11ada66c
std: delete RingBuffer
...
Progress towards #19231
2025-08-05 09:56:02 -07:00
Andrew Kelley
b6f84c47c4
std.base64: delete encodeFromReaderToWriter
...
this function is wacky, should not have been merged
2025-08-05 09:56:02 -07:00
Andrew Kelley
196e36bbb2
std: remove BoundedArray
...
This use case is handled by ArrayListUnmanaged via the "...Bounded"
method variants, and it's more optimal to share machine code, versus
generating multiple versions of each function for differing array
lengths.
2025-08-05 09:56:02 -07:00
Andrew Kelley
c47ec4f3d7
std.array_list: add bounded methods
2025-08-05 09:56:02 -07:00
Andrew Kelley
6f545683f3
std: replace various mem copies with @memmove
2025-08-05 09:56:02 -07:00
Veikka Tuominen
82961a8c9f
std.c: fix utsname array sizes
2025-08-05 00:18:14 -07:00
David Rubin
def25b9189
crypto: fix typo in ecdsa comment
2025-08-05 07:51:39 +01:00
KNnut
fcb088cb6a
std.Target.Query: fix WindowsVersion format in zigTriple()
2025-08-05 06:08:42 +02:00
Ian Johnson
96be6f6566
std.compress.flate.Decompress: return correct size for unbuffered decompression
...
Closes #24686
As a bonus, this commit also makes the `git.zig` "testing `main`" compile again.
2025-08-04 19:32:14 -07:00
Alex Rønne Petersen
163e9ce7d9
Merge pull request #24629 from alexrp/android-requires-libc
...
`std.Target`: require libc for Android API levels prior to 29
2025-08-04 17:59:47 +02:00
Alex Rønne Petersen
ba7cc72c47
std.Target: bump watchos min version to 8.0.0
2025-08-03 20:08:19 +02:00
Alex Rønne Petersen
71722df4ab
std.Target: bump driverkit min version to 20.0.0
2025-08-03 20:08:07 +02:00
Alex Rønne Petersen
e9093b8d18
std.Target: bump max versions for Apple targets
2025-08-03 20:05:21 +02:00
Alex Rønne Petersen
5b74d33471
std.Target: bump amdhsa max version to 6.4.2
2025-08-03 20:00:32 +02:00
Alex Rønne Petersen
afe458e9b6
std.Target: bump vulkan max version to 1.4.321
2025-08-03 19:59:46 +02:00
Alex Rønne Petersen
7f2140710f
std.Target: bump cuda max version to 12.9.1
2025-08-03 19:59:46 +02:00
Alex Rønne Petersen
39b653c5e7
std.Target: bump freebsd max version to 14.3.0
2025-08-03 19:59:43 +02:00
Alex Rønne Petersen
af3baee5ca
std.Target: bump linux max version to 6.16.0
2025-08-03 19:59:40 +02:00
Alex Rønne Petersen
1808ecfa04
std.Target: bump fuchsia max version to 27.0.0
2025-08-03 19:59:35 +02:00
Justus Klausecker
7c35070b90
zig fmt: apply new cast builtin order
2025-08-03 14:59:56 +02:00
Justus Klausecker
81219493f8
zig fmt: canonicalize nested cast builtin order
2025-08-03 14:54:00 +02:00
Alex Rønne Petersen
a5f891d0b3
Merge pull request #24562 from h57624paen/fix-win-spawn-double-normalize
...
std.process.Child: fix double path normalization in spawnWindows
2025-08-03 11:19:10 +02:00
Matthew Lugg
c80aa9f719
Merge pull request #22997 from Rexicon226/align-0-reify
...
sema: compile error on reifying align(0) fields and pointers
2025-08-03 09:58:23 +01:00
David Rubin
e82d67233b
disallow alignment on packed union fields
2025-08-02 09:51:26 -07:00
mlugg
e98aeeb73f
std.Build: keep compiler alive under -fincremental --webui
...
Previously, this only applied when using `-fincremental --watch`, but
`--webui` makes the build runner stay alive just like `--watch` does, so
the same logic applies here. Without this, attempting to perform
incremental updates with `--webui` performs full rebuilds. (I did test
that before merging the PR, but at that time I was passing `--watch`
too -- which has since been disallowed -- so I missed that it doesn't
work as expected without that option!)
2025-08-02 08:56:19 +01:00
mlugg
abf1795337
std.Build.Watch: add macOS implementation based on FSEventStream
...
Resolves : #21905
2025-08-02 05:13:13 +01:00