NEWS 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. 3.3.0
  2. =====
  3. Features:
  4. * Replace rand with fastrand for a significantly smaller dependency tree. Cryptographic randomness
  5. isn't necessary for temporary file names, and isn't all that helpful either.
  6. * Add limited WASI support.
  7. * Add a function to extract the inner data from a `SpooledTempFile`.
  8. Bug Fixes:
  9. * Make it possible to persist unnamed temporary files on linux by removing the `O_EXCL` flag.
  10. * Fix redox minimum crate version.
  11. 3.2.0
  12. =====
  13. Features:
  14. * Bump rand dependency to `0.8`.
  15. * Bump cfg-if dependency to `1.0`
  16. Other than that, this release mostly includes small cleanups and simplifications.
  17. Breaking: The minimum rust version is now `1.40.0`.
  18. 3.1.0
  19. =====
  20. Features:
  21. * Bump rand dependency to `0.7`.
  22. Breaking: The minimum rust version is now `1.32.0`.
  23. 3.0.9
  24. =====
  25. Documentation:
  26. * Add an example for reopening a named temporary file.
  27. * Flesh out the security documentation.
  28. Features:
  29. * Introduce an `append` option to the builder.
  30. * Errors:
  31. * No longer implement the soft-deprecated `description`.
  32. * Implement `source` instead of `cause`.
  33. Breaking: The minimum rust version is now 1.30.
  34. 3.0.8
  35. =====
  36. This is a bugfix release.
  37. Fixes:
  38. * Export `PathPersistError`.
  39. * Fix a bug where flushing a `SpooledTempFile` to disk could fail to write part
  40. of the file in some rare, yet-to-reproduced cases.
  41. 3.0.7
  42. =====
  43. Breaking:
  44. * `Builder::prefix` and `Builder::suffix` now accept a generic `&AsRef<OsStr>`.
  45. This could affect type inference.
  46. * Temporary files (except unnamed temporary files on Windows and Linux >= 3.11)
  47. now use absolute path names. This will break programs that create temporary
  48. files relative to their current working directory when they don't have the
  49. search permission (x) on some ancestor directory. This is only likely to
  50. affect programs with strange chroot-less filesystem sandboxes. If you believe
  51. you're affected by this issue, please comment on #40.
  52. Features:
  53. * Accept anything implementing `&AsRef<OsStr>` in the builder: &OsStr, &OsString, &Path, etc.
  54. Fixes:
  55. * Fix LFS support.
  56. * Use absolute paths for named temporary files to guard against changes in the
  57. current directory.
  58. * Use absolute paths when creating unnamed temporary files on platforms that
  59. can't create unlinked or auto-deleted temporary files. This fixes a very
  60. unlikely race where the current directory could change while the temporary
  61. file is being created.
  62. Misc:
  63. * Use modern stdlib features to avoid custom unsafe code. This reduces the
  64. number of unsafe blocks from 12 to 4.
  65. 3.0.6
  66. =====
  67. * Don't hide temporary files on windows, fixing #66 and #69.
  68. 3.0.5
  69. =====
  70. Features:
  71. * Added a spooled temporary file implementation. This temporary file variant
  72. starts out as an in-memory temporary file but "rolls-over" onto disk when it
  73. grows over a specified size (#68).
  74. * Errors are now annotated with paths to make debugging easier (#73).
  75. Misc:
  76. * The rand version has been bumped to 0.6 (#74).
  77. Bugs:
  78. * Tempfile compiles again on Redox (#75).
  79. 3.0.4
  80. =====
  81. * Now compiles on unsupported platforms.
  82. 3.0.3
  83. =====
  84. * update rand to 0.5
  85. 3.0.2
  86. =====
  87. * Actually *delete* temporary files on non-Linux unix systems (thanks to
  88. @oliverhenshaw for the fix and a test case).
  89. 3.0.1
  90. =====
  91. * Restore NamedTempFile::new_in
  92. 3.0.0
  93. =====
  94. * Adds temporary directory support (@KodrAus)
  95. * Allow closing named temporary files without deleting them (@jasonwhite)
  96. 2.2.0
  97. =====
  98. * Redox Support
  99. 2.1.6
  100. =====
  101. * Remove build script and bump minimum rustc version to 1.9.0
  102. 2.1.5
  103. =====
  104. * Don't build platform-specific dependencies on all platforms.
  105. * Cleanup some documentation.
  106. 2.1.4
  107. =====
  108. * Fix crates.io tags. No interesting changes.
  109. 2.1.3
  110. =====
  111. Export `PersistError`.
  112. 2.1.2
  113. =====
  114. Add `Read`/`Write`/`Seek` impls on `&NamedTempFile`. This mirrors the
  115. implementations on `&File`. One can currently just deref to a `&File` but these
  116. implementations are more discoverable.
  117. 2.1.1
  118. =====
  119. Add LFS Support.
  120. 2.1.0
  121. =====
  122. * Implement `AsRef<File>` for `NamedTempFile` allowing named temporary files to
  123. be borrowed as `File`s.
  124. * Add a method to convert a `NamedTempFile` to an unnamed temporary `File`.
  125. 2.0.1
  126. =====
  127. * Arm bugfix
  128. 2.0.0
  129. =====
  130. This release replaces `TempFile` with a `tempfile()` function that returnes
  131. `std::fs::File` objects. These are significantly more useful because most rust
  132. libraries expect normal `File` objects.
  133. To continue supporting shared temporary files, this new version adds a
  134. `reopen()` method to `NamedTempFile`.