about summary refs log tree commit diff
path: root/library/std/src/sys/args/zkvm.rs
AgeCommit message (Collapse)AuthorLines
2025-05-02zkVM: Cache args from hostThalia Archibald-55/+31
Retrieve argc/argv from the host once, on demand when the first `env::ArgsOs` is constructed, and globally cache it. Copy each argument to an `OsString` while iterating.
2025-05-02zkVM: Fix env::ArgsOsThalia Archibald-17/+54
The zkVM implementation of `env::ArgsOs` incorrectly reports the full length even after having iterated. Instead, use a range approach which works out to be simpler. Also, implement more iterator methods like the other platforms in #139847.
2025-04-12Move args into std::sysThalia Archibald-0/+81