All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Update
cfg-if
to v1.0. #173 - Implement
std::error::Error
for theError
type on additional targets. #169
- Multithreaded WASM support. #171
- Remove use of spin-locks in the
use_file
module. #125 - Update
wasi
to v0.9. #126 - Do not read errno value on DragonFlyBSD to fix compilation failure. #129
- VxWorks targets support. #86
- If zero-length slice is passed to the
getrandom
function, always returnOk(())
immediately without doing any calls to the underlying operating system. #104 - Use the
kern.arandom
sysctl on NetBSD. #115
- Update wasi dependency from v0.5 to v0.7. #100
- Implement
std
-dependent traits for selected targets even ifstd
feature is disabled. (backward compatibility with v0.1.8) #96
- Use the dummy implementation on
wasm32-unknown-unknown
even with the disableddummy
feature. #90
- Fix CSP error for
wasm-bindgen
. #92
- Remove
std
dependency for opening and reading files. #58 - Use
wasi
isntead oflibc
on WASI target. #64 - By default emit a compile-time error when built for an unsupported target.
This behaviour can be disabled by using the
dummy
feature. #71
- Explicitly specify types to arguments of 'libc::syscall'. #74
- Support for hermit and l4re. #61
Error::raw_os_error
method,Error::INTERNAL_START
andError::CUSTOM_START
constants. Uselibc
for retrieving OS error descriptions. #54
- Remove
lazy_static
dependency and use custom structures for lock-free initialization. #51 #52 - Try
getrandom()
first on FreeBSD. #57
- Bitrig support. #56
Error::UNKNOWN
,Error::UNAVAILABLE
. #54
- Minor change of RDRAND AMD bug handling. #48
- Use shared
File
instead of shared file descriptor. #44 - Workaround for RDRAND hardware bug present on some AMD CPUs. #43
- Try
getentropy
and then fallback to/dev/random
on macOS. #38
- Add support for
x86_64-unknown-uefi
target by using RDRAND with CPUID feature detection. #30
- Fix long buffer issues on Windows and Linux. #31 #32
- Check
EPERM
in addition toENOSYS
on Linux. #37
- Improve efficiency by sharing file descriptor across threads. #13
- Remove
cloudabi
,winapi
, andfuchsia-cprng
dependencies. #40 - Improve RDRAND implementation. #24
- Don't block during syscall detection on Linux. #26
- Increase consistency with libc implementation on FreeBSD. #36
- Apply
rustfmt
. #39
- Update for
wasm32-unknown-wasi
being renamed towasm32-wasi
, and for WASI being categorized as an OS.
- Add support for
wasm32-unknown-wasi
target.
- Enable std functionality for CloudABI by default.
Publish initial implementation.
Publish an empty template library.