Debian Codegraph @

third_party/rust/memmap2/CHANGELOG.md

raw
1 # Change Log
2 All notable changes to this project will be documented in this file.
3
4 The format is based on [Keep a Changelog](http://keepachangelog.com/)
5 and this project adheres to [Semantic Versioning](http://semver.org/).
6
7 ## [Unreleased]
8
9 ## [0.9.3] - 2023-12-19
10 ### Fixed
11 - Build on Android.
12
13 ## [0.9.2] - 2023-12-17
14 ### Fixed
15 - Build on FreeBSD.
16
17 ## [0.9.1] - 2023-12-16
18 ### Changed
19 - Added `MmapOptions::huge` method to support mapping hugetlb. Linux only.
20 [@ollie-etl](https://github.com/ollie-etl)
21 [@oliverbunting](https://github.com/oliverbunting)
22
23 ## [0.9.0] - 2023-10-03
24 ### Changed
25 - The `Advice` struct was split into two enums: `Advice` and `UncheckedAdvice`.<br>
26 `Advice` can be passed to safe `advise` and `advise_range` methods.
27 And `UncheckedAdvice` can be passed to unsafe `unchecked_advise`
28 and `unchecked_advise_range` methods.<br>
29 [@adamreichold](https://github.com/adamreichold)
30
31 ## [0.8.0] - 2023-09-25
32 ### Changed
33 - The `Advice` type is a struct and not an enum now.
34 [@adamreichold](https://github.com/adamreichold)
35
36 ### Fixed
37 - Some of the `Advise` variants were unsound and now require `unsafe` to be constructed.
38 [@adamreichold](https://github.com/adamreichold)
39
40 ## [0.7.1] - 2023-06-24
41 ### Fixed
42 - Mapping beyond 4GB offset on 32 bit glibc. Linux-only.
43 [@lvella](https://github.com/lvella)
44
45 ## [0.7.0] - 2023-06-08
46 ### Added
47 - `Mmap::remap`, `MmapMut::remap` and `MmapRaw::remap`. Linux-only.
48 [@Phantomical](https://github.com/Phantomical)
49 - `Advice::PopulateRead` and `Advice::PopulateWrite`. Linux-only.
50 [@Jesse-Bakker](https://github.com/Jesse-Bakker)
51
52 ### Changed
53 - libc crate >= 0.2.143 is required now.
54
55 ## [0.6.2] - 2023-05-24
56 ### Fixed
57 - Alignment for empty files on Windows.
58 [@timvisee](https://github.com/timvisee)
59
60 ## [0.6.1] - 2023-05-10
61 ### Added
62 - Add `MmapOptions::map_raw_read_only` to avoid intermediate invalid `Mmap` instances.
63 [@adamreichold](https://github.com/adamreichold)
64
65 ## [0.6.0] - 2023-05-09
66 ### Changed
67 - `lock()` and `unlock` methods require `&self` and not `&mut self` now.
68 [@timvisee](https://github.com/timvisee)
69
70 ## [0.5.10] - 2023-02-22
71 ### Added
72 - `MmapOptions::map_anon` accounts for `populate` on Linux now.
73 [@jsgf](https://github.com/jsgf)
74
75 ## [0.5.9] - 2023-02-17
76 ### Added
77 - `From<Mmap> for MmapRaw` and `From<MmapMut> for MmapRaw`.
78 [@swlynch99](https://github.com/swlynch99)
79 - `Mmap::advise_range`, `MmapMut::advise_range`, `MmapRaw::advise_range`.
80 [@ho-229](https://github.com/ho-229)
81
82 ## [0.5.8] - 2022-11-09
83 ### Added
84 - `MmapRaw::advise`, `MmapRaw::lock` and `MmapRaw::unlock`.
85 [@diwic](https://github.com/diwic)
86 - Improve `MmapMut::make_exec` documentation.
87
88 ## [0.5.7] - 2022-08-15
89 ### Changed
90 - Simplify file size retrieving code.
91 [@saethlin](https://github.com/saethlin)
92
93 ## [0.5.6] - 2022-08-11
94 ### Added
95 - Memory locking and unlocking. See `Mmap::lock`, `Mmap::unlock`,
96 `MmapMut::lock` and `MmapMut::unlock`.
97 [@vmx](https://github.com/vmx)
98
99 ## [0.5.5] - 2022-07-09
100 ### Fixed
101 - Limit mapping length to `isize::MAX` to prevent undefined behavior
102 on calling `std::slice::from_raw_parts`. Technically affects only 32-bit systems.
103 [@adamreichold](https://github.com/adamreichold)
104
105 ## [0.5.4] - 2022-06-04
106 ### Added
107 - Add madvice operations specific to Darwin. [@turbocool3r](https://github.com/turbocool3r)
108 - Implement common traits for the `Advice` enum. [@nyurik](https://github.com/nyurik)
109
110 ### Changed
111 - Make stub implementation Infallible. [@coolreader18](https://github.com/coolreader18)
112 - Use `tempfile` crate instead of `tempdir` in tests.
113 [@alexanderkjall](https://github.com/alexanderkjall)
114
115 ## [0.5.3] - 2022-02-10
116 ### Added
117 - `Mmap::advise` and `MmapMut::advise`. [@nyurik](https://github.com/nyurik)
118
119 ## [0.5.2] - 2022-01-10
120 ### Added
121 - `flush`, `flush_async`, `flush_range` and `flush_async_range` to `MmapRaw` matching
122 the corresponding methods on `MmapMut`.
123 [@cberner](https://github.com/cberner)
124
125 ## [0.5.1] - 2022-01-09
126 ### Fixed
127 - Explicitly call `fstat64` on Linux, emscripten and l4re targets.
128 [@adamreichold](https://github.com/adamreichold)
129
130 ## [0.5.0] - 2021-09-19
131 ### Added
132 - `MmapOptions` accepts any type that supports `RawHandle`/`RawFd` returning now.
133 This allows using `memmap2` not only with Rust std types, but also with
134 [async-std](https://github.com/async-rs/async-std) one.
135 [@adamreichold](https://github.com/adamreichold)
136 - (unix) Memoize page size to avoid repeatedly calling into sysconf machinery.
137 [@adamreichold](https://github.com/adamreichold)
138
139 ### Changed
140 - (win) Use `std::os::windows::io::AsRawHandle` directly, without relying on `std::fs::File`.
141 [@adamreichold](https://github.com/adamreichold)
142 - Do not panic when failing to release resources in Drop impls.
143 [@adamreichold](https://github.com/adamreichold)
144
145 ## [0.4.0] - 2021-09-16
146 ### Added
147 - Optional [`StableDeref`](https://github.com/storyyeller/stable_deref_trait) support.
148 [@SimonSapin](https://github.com/SimonSapin)
149
150 ### Changed
151 - Mapping of zero-sized files is no longer an error.
152 [@SimonSapin](https://github.com/SimonSapin)
153 - MSRV changed from 1.31 to 1.36
154
155 ## [0.3.1] - 2021-08-15
156 ### Fixed
157 - Integer overflow during file length calculation on 32bit targets.
158 - Stub implementation. [@Mrmaxmeier](https://github.com/Mrmaxmeier)
159
160 ## [0.3.0] - 2021-06-10
161 ### Changed
162 - `MmapOptions` allows mapping using Unix descriptors and not only `std::fs::File` now.
163 [@mripard](https://github.com/mripard)
164
165 ## [0.2.3] - 2021-05-24
166 ### Added
167 - Allow compilation on unsupported platforms.
168 The code will panic on access just like in `std`.
169 [@jcaesar](https://github.com/jcaesar)
170
171 ## [0.2.2] - 2021-04-03
172 ### Added
173 - `MmapOptions::populate`. [@adamreichold](https://github.com/adamreichold)
174
175 ### Fixed
176 - Fix alignment computation for `flush_async` to match `flush`.
177 [@adamreichold](https://github.com/adamreichold)
178
179 ## [0.2.1] - 2021-02-08
180 ### Added
181 - `MmapOptions::map_raw` and `MmapRaw`. [@diwic](https://github.com/diwic)
182
183 ## [0.2.0] - 2020-12-19
184 ### Changed
185 - MSRV is 1.31 now (edition 2018).
186 - Make anonymous memory maps private by default on unix. [@CensoredUsername](https://github.com/CensoredUsername)
187 - Add `map_copy_read_only`. [@zseri](https://github.com/zseri)
188
189 ## 0.1.0 - 2020-01-18
190 ### Added
191 - Fork [memmap-rs](https://github.com/danburkert/memmap-rs).
192
193 ### Changed
194 - Use `LICENSE-APACHE` instead of `README.md` for some tests since it's immutable.
195
196 ### Removed
197 - `winapi` dependency. [memmap-rs/pull/89](https://github.com/danburkert/memmap-rs/pull/89)
198
199 [Unreleased]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.9.3...HEAD
200 [0.9.3]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.9.2...v0.9.3
201 [0.9.2]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.9.1...v0.9.2
202 [0.9.1]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.9.0...v0.9.1
203 [0.9.0]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.8.0...v0.9.0
204 [0.8.0]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.7.1...v0.8.0
205 [0.7.1]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.7.0...v0.7.1
206 [0.7.0]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.6.2...v0.7.0
207 [0.6.2]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.6.1...v0.6.2
208 [0.6.1]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.6.0...v0.6.1
209 [0.6.0]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.10...v0.6.0
210 [0.5.10]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.9...v0.5.10
211 [0.5.9]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.8...v0.5.9
212 [0.5.8]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.7...v0.5.8
213 [0.5.7]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.6...v0.5.7
214 [0.5.6]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.5...v0.5.6
215 [0.5.5]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.4...v0.5.5
216 [0.5.4]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.3...v0.5.4
217 [0.5.3]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.2...v0.5.3
218 [0.5.2]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.1...v0.5.2
219 [0.5.1]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.0...v0.5.1
220 [0.5.0]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.4.0...v0.5.0
221 [0.4.0]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.3.1...v0.4.0
222 [0.3.1]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.3.0...v0.3.1
223 [0.3.0]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.2.3...v0.3.0
224 [0.2.3]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.2.2...v0.2.3
225 [0.2.2]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.2.1...v0.2.2
226 [0.2.1]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.2.0...v0.2.1
227 [0.2.0]: https://github.com/RazrFalcon/memmap2-rs/compare/v0.1.0...v0.2.0