Releases: RustEnthusiast/nstd
Releases · RustEnthusiast/nstd
NSTD 0.13.0
What's Changed
Full Changelog: v0.12.0...v0.13.0
Added
nstd.core
- Added
core.alloc
.
Changed
nstd.alloc
NSTDAllocError
&NSTDAllocator
were moved intocore.alloc
.- Allocation functions now use
NSTDAllocLayout
.
nstd.core
nstd_core_mem_copy[_overlapping]
functions are no longerconst
.
nstd.heap_ptr
nstd_heap_ptr_new[_zeroed]
functions now take anNSTDAllocLayout
.
nstd.os
- Always define operating system constants as a
u8
value of either 0 or 1. - Standalone allocation functions now use
NSTDAllocLayout
.
nstd.shared_ptr
nstd_shared_ptr_new[_zeroed]
functions now take anNSTDAllocLayout
.
nstd.vec
NSTDVec
constructors now take analign
argument.
Removed
nstd.os
- Removed
NSTD[Unix|Windows]AllocError
in favor ofNSTDAllocError
.
NSTD 0.12.0
What's Changed
Full Changelog: v0.11.0...v0.12.0
Changed
nstd.core
- Merged
nstd.core.ptr.raw
intonstd.core.mem
.
NSTD 0.11.0
What's Changed
Full Changelog: v0.10.0...v0.11.0
Removed
nstd.thread
- Removed
NSTDOptionalThreadHandle
. - Removed
NSTDOptionalThreadID
.
NSTD 0.10.0
What's Changed
Full Changelog: v0.9.0...v0.10.0
Added
nstd
- Added
NSTDRef[Mut]
. - Added
NSTDAnyRef[Mut]
.
nstd.core
- Added
NSTDOptionalRef[Mut]
. - Added
NSTDOptionalAnyRef[Mut]
.
Changed
nstd.core
nstd_core_math_div_[ceil|floor]_*
functions now return optionals.nstd_core_str[_mut]_from_bytes
functions no longer panic.- Functions in
nstd.core.mem
no longer panic. - Functions in
nstd.core.ops
now return optionals instead of panicking.
nstd.fs
nstd_fs_write
no longer panics.
nstd.os
nstd_os_windows_str_to_utf16
now returnsNSTDOptionalVec
.
nstd.proc
nstd_proc_spawn
no longer panics.
nstd.shared_lib
nstd_shared_lib_load
no longer panics.
nstd.string
nstd_string_new_with_cap
now returnsNSTDOptionalString
.
nstd.vec
nstd_vec_new_with_cap
now returnsNSTDOptionalVec
.
Removed
nstd.core
- Removed
nstd_core_abort_with_msg
. - Removed
nstd_core_ops_[inc|dec]_*
functions.
NSTD 0.9.0
What's Changed
Full Changelog: v0.8.0...v0.9.0
Added
nstd
- Added an
nstd
feature to enable all modules. - Added a
link
feature.
nstd.io
- Added
NSTDOptionalStd[in|out|err][Lock]
.
nstd.mutex
- Added
NSTDOptionalMutex
.
nstd.thread
- Added
NSTDOptionalThreadHandle
. - Added
NSTDOptionalThreadID
.
Changed
nstd
- Removed the
nstd_
prefix from all features.
nstd.env
nstd_env_temp_dir
now returnsNSTDOptionalString
.
nstd.io
nstd_io_std[in|out|err]
functions now returnNSTDOptionalStd[in|out|err]
respectively.nstd_io_std[in|out|err]_lock
functions now returnNSTDOptionalStd[in|out|err]Lock
respectively.
nstd.mutex
nstd_mutex_new
now returnsNSTDOptionalMutex
.nstd_mutex_lock
now returnsNSTDOptionalMutexLockResult
.
nstd.thread
NSTDThreadResult
is nowNSTDOptionalHeapPtr
.nstd_thread_spawn
now takesconst NSTDThreadDescriptor *desc
.nstd_thread_[current|handle]
functions now returnNSTDOptionalThreadHandle
.nstd_thread_id
now returnsNSTDOptionalThreadID
.
Removed
nstd
- Removed the
asm
feature.
nstd.thread
nstd_thread_spawn_with_desc
.
NSTD 0.8.0
What's Changed
Full Changelog: v0.7.0...v0.8.0
Added
nstd.alloc
- Added
NSTDAllocator
&NSTD_ALLOCATOR
.
nstd.cstring
- Added
nstd_cstring_allocator
.
nstd.heap_ptr
- Added
nstd_heap_ptr_allocator
.
nstd.shared_ptr
- Added
nstd_shared_ptr_allocator
.
nstd.string
- Added
nstd_string_allocator
.
nstd.vec
- Added
nstd_vec_allocator
.
Changed
nstd.cstring
nstd_cstring_from_cstr[_unchecked]
functions now take anNSTDAllocator
.nstd_cstring_new[_with_cap]
functions now take anNSTDAllocator
.nstd_cstring_new_with_cap
no longer panics.
nstd.env
nstd_env_var
no longer panics.nstd_env_temp_dir
now returnsNSTDOptionalString
.nstd_env_current_[dir|exe]
functions no longer panic.
nstd.fs
nstd_fs_absolute
no longer panics.nstd_fs_read[_to_string]
functions no longer panic.
nstd.heap_ptr
nstd_heap_ptr_new[_zeroed]
functions now take anNSTDAllocator
.
nstd.io
nstd_io_read[_line]
functions no longer panic.
nstd.shared_ptr
nstd_shared_ptr_new[_zeroed]
functions now take anNSTDAllocator
.
nstd.string
nstd_string_from_str
now takes anNSTDAllocator
.nstd_string_new[_with_cap]
functions now take anNSTDAllocator
.nstd_string_new_with_cap
no longer panics.nstd_string_from_*
functions now returnNSTDOptionalString
.
nstd.vec
nstd_vec_from_slice
now takes anNSTDAllocator
.nstd_vec_new[_with_cap]
functions now take anNSTDAllocator
.nstd_vec_new[_with_cap]
functions no longer panic.nstd_vec_from_slice
no longer panics.nstd_vec_set_len
no longer returnsNSTDErrorCode
.
NSTD 0.7.0
What's Changed
Full Changelog: v0.6.0...v0.7.0
Added
nstd.core
- Added
nstd_core_abort[_with_msg]
. - Added
NSTDOptionalAny[Mut]
. - Added
nstd_core_slice[_mut]_empty
.
nstd.heap_ptr
- Added
nstd_heap_ptr_drop
.
nstd.mutex
- Added
nstd_mutex_into_inner
. - Added
nstd_mutex_drop
.
nstd.os
- Added
nstd_os_unix_mutex_into_inner
. - Added
nstd_os_unix_mutex_drop
. - Added
NSTDUnixAllocError
.
nstd.shared_ptr
- Added
nstd_shared_ptr_drop
.
nstd.timed_mutex
- Added
nstd_timed_mutex_into_inner
. - Added
nstd_timed_mutex_drop
.
nstd.vec
- Added
nstd_vec_drop
.
Changed
nstd
- Updated
windows-sys
to version 0.48.
nstd.core
nstd_core_str[_mut]_[from_cstr|from_raw_cstr[_with_null]|len|get|to_*]
no longer panics.nstd_core_cstr[_mut]_[is_null_terminated|get_null|get][_const]
no longer panics.nstd_core_slice[_mut]_[get|last][_const]
no longer panics.nstd_core_mem_compare
no longer panics.NSTDOptional
&NSTDResult
now useNSTDUInt8
as a discriminant.nstd_core_unichar_is_digit
no longer panics.nstd.core.time
functions now takeNSTDDuration
by value.nstd_core_slice_mut_copy
now panics.
nstd.cstring
nstd_cstring_new[_with_cap]
now returnsNSTDOptionalCString
.nstd_cstring_push
now returnsNSTDAllocError
.nstd_cstring_[new|from_cstr[_unchecked]|push|pop]
no longer panics.nstd_cstring_from_cstr[_unchecked]
now returnsNSTDOptionalCString
.nstd_cstring_clone
now returnsNSTDOptionalCString
.
nstd.env
nstd_env_set_current_dir
no longer panics.
nstd.fs
nstd_fs_[[create|remove]_[file|dir|dirs]|rename|copy|metadata]
no longer panics.nstd_fs_file_[open|read_all|read_to_string]
no longer panics.
nstd.heap_ptr
nstd_heap_ptr_[new[_zeroed]|clone]
now returnsNSTDOptionalHeapPtr
.
nstd.io
nstd_io_print[_line]
no longer panics.nstd_io_stdin[_lock]_[read_all|read_to_string|read_line]
no longer panics.
nstd.os
nstd_os_unix_mutex_timed_lock
now takesNSTDDuration
by value.nstd.os.unix.time
functions now takeNSTDUnixTime
&NSTDDuration
by value.
nstd.shared_ptr
nstd_shared_ptr_new[_zeroed]
now returnsNSTDOptionalSharedPtr
.
nstd.string
nstd_string_[len|push[_str]|pop]
no longer panics.nstd_string_from_[str|bytes]
now returnsNSTDOptionalString
.nstd_string_clone
now returnsNSTDOptionalString
.
nstd.thread
nstd_thread_spawn_with_desc
no longer panics.nstd_thread_spawn[_with_desc]
now takesNSTDOptionalHeapPtr
.nstd_thread_sleep
now takesNSTDDuration
.
nstd.time
nstd_time_now
now returnsNSTDOptionalTime
.nstd.time
functions now takeNSTDTime
&NSTDDuration
by value.
nstd.timed_mutex
nstd_timed_mutex_timed_lock
now takesNSTDDuration
by value.
nstd.vec
nstd_vec_[end|get|push|pop|insert|remove][_mut]
no longer panics.nstd_vec_from_slice
now returnsNSTDOptionalVec
.nstd_vec_clone
now returnsNSTDOptionalVec
.
NSTD 0.6.0
What's Changed
Full Changelog: v0.5.0...v0.6.0
nstd
Fixed some C99 header incompatibilities.
nstd.core
- Added
nstd.core.time
. nstd.core.cty
's functions now useNSTDChar
.- Added
nstd_core_unichar_is_[ascii|alphabetic|numeric|alphanumeric|lowercase|uppercase|whitespace|control|digit]
. - Added
nstd_core_unichar_replacement
. nstd_core_str[_mut]_substr
now returnsNSTDOptionalStr[Mut]
.nstd_core_str[_mut]_from_[cstr|raw_cstr[_with_null]|bytes]
now returnsNSTDOptionalStr[Mut]
.nstd_core_cstr[_mut]_new
now returnsNSTDOptionalCStr[Mut]
.nstd_core_slice[_mut]_new
now returnsNSTDOptionalSlice[Mut]
.nstd_core_ptr[_mut]_new
now returnsNSTDOptionalPtr[Mut]
.
nstd.fs
nstd_fs_file_[read[_all|_to_string]|write]
now returnsNSTDIOResult
.
nstd.io
- Added
NSTDStd[in|out|err]Lock
. nstd_io_[stdout|stderr]_write
now returnsNSTDIOResult
.nstd_io_stdin_read[_all|_to_string|_line]
now returnsNSTDIOResult
.- Added
NSTDIOResult
.
nstd.os
- Added
nstd.os.unix.time
. - Added
NSTD_OS_[IOS|ANDROID|DRAGONFLY|FREEBSD|NETBSD|OPENBSD|BSD|HAIKU|NTO|SOLARIS]
. - Added
NSTDUnixIOResult
. - Added
nstd.os.unix.mutex
.
NSTD 0.5.0
What's Changed
Full Changelog: v0.4.1...v0.5.0
nstd
- Renamed the
clib
feature tocapi
. - Moved
NSTDUnichar
intocore
. - Added
nstd.mutex
. - Added
nstd.timed_mutex
. - Added
nstd.time
. - Updated
windows-sys
to version 0.45.
nstd.core
- Added
nstd_core_[ptr|slice|cstr][_mut]_new_unchecked
. nstd_core_ops_sh[l|r]_*
now takeNSTDUInt32
as their right operand.- Removed floating-point operations from
nstd.core.ops
. nstd_core_str[_mut]_get
now returnsNSTDOptionalUnichar
.nstd_core_cty_is_unicode
now takesNSTDChar32
.- Added
nstd_core_panic_with_msg
.
nstd.cstring
- Added
NSTDOptionalCString
.
nstd.fs
- Added
nstd_fs_metadata
.
nstd.heap_ptr
- Added
NSTDOptionalHeapPtr
.
nstd.os
- Added
NSTD_UNIX_IO_ERROR_IS_DIR
. - Added
nstd.os.unix.io
. nstd_os_windows_shared_lib_load
now accepts Unicode.- Added
nstd_os_windows_str_to_utf16
. - Added
nstd_os_unix_shared_lib_handle
.
nstd.shared_lib
nstd_shared_lib_load
now takesNSTDStr
.
nstd.shared_ptr
- Added
NSTDOptionalSharedPtr
.
nstd.string
- Added
NSTDOptionalString
. nstd_string_push
now returnsNSTDAllocError
.nstd_string_pop
now returnsNSTDOptionalUnichar
.
nstd.vec
- Added
NSTDOptionalVec
. - Added
nstd_vec_reserved
.
NSTD 0.4.1
What's Changed
Full Changelog: v0.4.0...v0.4.1
nstd
- Fixed missing panic handler compiler error for embedded builds.