| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-02-21 | Remove unnecessary map_err | Kornel | -4/+4 | |
| 2024-02-18 | Add uncontroversial syscall doc aliases to std docs | SabrinaJewson | -2/+16 | |
| 2024-02-16 | Auto merge of #120538 - kornelski:read-not-exact, r=m-ou-se | bors | -2/+2 | |
| Make File::read_to_end less special Follow-up to #117925 | ||||
| 2024-02-15 | Update library/std/src/fs.rs | Haydon Ryan | -2/+2 | |
| Co-authored-by: Mara Bos <m-ou.se@m-ou.se> | ||||
| 2024-02-15 | Update library/std/src/fs.rs | Haydon Ryan | -2/+2 | |
| Co-authored-by: Mara Bos <m-ou.se@m-ou.se> | ||||
| 2024-02-11 | std: use `stream_position` where applicable | João Marcos P. Bezerra | -3/+2 | |
| by replacing `seek(SeekFrom::Current(0))` calls | ||||
| 2024-02-08 | Bump version placeholders | Mark Rousskov | -1/+1 | |
| 2024-01-31 | Make File::read_to_end less special | Kornel | -2/+2 | |
| Follow-up to #117925 | ||||
| 2024-01-29 | Handle out of memory errors in fs::read/read_to_string | Kornel | -4/+6 | |
| 2024-01-03 | Rollup merge of #119319 - chfogelman:buffered-file-doc, r=the8472 | León Orell Valerian Liehr | -3/+9 | |
| Document that File does not buffer reads/writes ...and refer to `BufReader`/`BufWriter`. This is a common source of efficiency issues in Rust programs written naively. Including this information with the `File` docs, and adding a link to the wrapper types, will help discoverability. | ||||
| 2023-12-31 | Document that File does not buffer reads/writes, refer to BufReader/BufWriter | Carter Hunt Fogelman | -3/+9 | |
| 2023-12-20 | stabilize `file_create_new` | Ralph Ursprung | -3/+1 | |
| closes #105135 | ||||
| 2023-12-11 | Updating fs::read example to remove SocketAddress | Haydon Ryan | -2/+2 | |
| 2023-12-11 | fixing error std::fs::read_to_string example documentation | Haydon Ryan | -2/+2 | |
| 2023-11-15 | Substitute version placeholders | Mark Rousskov | -7/+7 | |
| 2023-10-31 | Stabilize `file_set_times` | Josh Triplett | -9/+7 | |
| Approved via FCP in https://github.com/rust-lang/rust/issues/98245 . | ||||
| 2023-10-05 | Add more diagnostic items for clippy | Jason Newcomb | -0/+3 | |
| 2023-09-19 | Auto merge of #104101 - betrusted-io:xous-libstd-initial, r=bjorn3 | bors | -1/+1 | |
| Add initial libstd support for Xous This patchset adds some minimal support to the tier-3 target `riscv32imac-unknown-xous-elf`. The following features are supported: * alloc * thread creation and joining * thread sleeping * thread_local * panic_abort * mutex * condvar * stdout Additionally, internal support for the various Xous primitives surrounding IPC have been added as part of the Xous FFI. These may be exposed as part of `std::os::xous::ffi` in the future, however for now they are not public. This represents the minimum viable product. A future patchset will add support for networking and filesystem support. | ||||
| 2023-09-01 | Auto merge of #114448 - SteveLauC:std_fs_read_doc, r=Mark-Simulacrum | bors | -5/+7 | |
| docs: improve std::fs::read doc #### What does this PR do 1. Rephrase a confusing sentence in the document of `std::fs::read()` ----- Closes #114432 cc `@Dexus0` `@saethlin` | ||||
| 2023-09-01 | docs: improve std::fs::read doc | Steve Lau | -5/+7 | |
| 2023-08-29 | rewording after comments by @thomcc | Marc Schoolderman | -5/+5 | |
| 2023-08-25 | Add a new helper to avoid calling io::Error::kind | Ben Kimock | -0/+3 | |
| 2023-08-22 | std: fs: skip fs tests on xous | Sean Cross | -1/+1 | |
| The xous filesystem support is not yet ready for merging. Signed-off-by: Sean Cross <sean@xobs.io> | ||||
| 2023-08-22 | Replace version placeholders with 1.73.0 | Mark Rousskov | -3/+3 | |
| 2023-07-28 | inline trivial (noop) flush calls | Thom Chiovoloni | -0/+3 | |
| 2023-07-10 | Auto merge of #94748 - tbu-:pr_file_arc, r=Amanieu | bors | -32/+65 | |
| Add `Read`, `Write` and `Seek` impls for `Arc<File>` where appropriate If `&T` implements these traits, `Arc<T>` has no reason not to do so either. This is useful for operating system handles like `File` or `TcpStream` which don't need a mutable reference to implement these traits. CC #53835. CC #94744. | ||||
| 2023-06-23 | Add `Read`, `Write` and `Seek` impls for `Arc<File>` where appropriate | Tobias Bucher | -0/+46 | |
| If `&T` implements these traits, `Arc<T>` has no reason not to do so either. This is useful for operating system handles like `File` or `TcpStream` which don't need a mutable reference to implement these traits. CC #53835. CC #94744. | ||||
| 2023-06-23 | Forward `io::{Read,Seek,Write}` impls of `File` to `&File` | Tobias Bucher | -33/+20 | |
| This reduces code duplication. | ||||
| 2023-06-23 | DirEntry::file_name: improve explanation | Tshepang Mbambo | -2/+8 | |
| 2023-05-19 | Auto merge of #109773 - beetrees:set-file-time-improvements, r=Amanieu | bors | -0/+11 | |
| Add creation time support to `FileTimes` on apple and windows Adds support for setting file creation times on platforms which support changing it directly (currently only Apple and Windows). Based on top of #110093 (which was split from this PR). ACP: rust-lang/libs-team#199 (currently still in progress) Tracking issue: #98245 `@rustbot` label +T-libs-api -T-libs | ||||
| 2023-05-15 | Add creation time support to `FileTimes` on apple and windows | beetrees | -0/+11 | |
| 2023-05-15 | wanting => want | Vagelis Prokopiou | -1/+1 | |
| 2023-05-01 | Inline AsInner implementations | Konrad Borowski | -0/+8 | |
| 2023-04-27 | docs(std): clarify `remove_dir_all` errors | Philpax | -0/+5 | |
| 2023-04-26 | Rollup merge of #110266 - tgross35:try-exists-wording, r=jyn514 | jyn | -3/+4 | |
| Update documentation wording on path 'try_exists' functions Just eliminate the quadruple negation in `doesn't silently ignore errors unrelated to ... not existing.` | ||||
| 2023-04-21 | Limit read size in `File::read_to_end` loop | Chris Denton | -18/+22 | |
| This works around performance issues on Windows by limiting reads the size of reads when the expected size is known. | ||||
| 2023-04-13 | Update documentation wording on path 'try_exists' functions | Trevor Gross | -3/+4 | |
| 2023-03-17 | fix typo in documentation for std::fs::Permissions | Marc R. Schoolderman | -1/+1 | |
| 2023-02-15 | Suggest simpler fs helper methods in File::{open,create} | Kornel | -1/+10 | |
| 2023-02-15 | Demonstrate I/O in File examples | Kornel | -0/+9 | |
| 2023-01-14 | Fix some missed double spaces. | André Vennberg | -1/+1 | |
| 2023-01-11 | use with_capacity in read read_to_string | yukang | -4/+2 | |
| 2023-01-08 | Remove unnecessary lseek syscall when using std::fs::read | yukang | -2/+6 | |
| 2022-12-03 | Rollup merge of #105100 - jhpratt:fix-docs, r=JohnTitor | Yuki Okushi | -2/+3 | |
| Add missing intra-doc link Trivial change. This makes the plain text into inline code and makes it a link. `@rustbot` label +A-docs | ||||
| 2022-12-01 | Add tracking issue for file_create_new | Andrius Pukšta | -1/+1 | |
| 2022-11-30 | Add missing intra-doc link | Jacob Pratt | -2/+3 | |
| 2022-09-19 | Document surprising and dangerous fs::Permissions behaviour on Unix | Tim Hutt | -3/+64 | |
| This documents the very surprising behaviour that `set_readonly(false)` will make a file *world writable* on Unix. I would go so far as to say that this function should be deprecated on Unix, or maybe even entirely. But documenting the bad behaviour is a good first step. | ||||
| 2022-09-03 | updated description of File struct in std::fs | Bart Massey | -1/+1 | |
| 2022-08-29 | Rollup merge of #98801 - joshtriplett:file-create-new, r=thomcc | Dylan DPC | -0/+29 | |
| Add a `File::create_new` constructor We have `File::create` for creating a file or opening an existing file, but the secure way to guarantee creating a new file requires a longhand invocation via `OpenOptions`. Add `File::create_new` to handle this case, to make it easier for people to do secure file creation. | ||||
| 2022-08-18 | Address reviewer comments | Nick Cameron | -2/+2 | |
| Signed-off-by: Nick Cameron <nrc@ncameron.org> | ||||
