Version 0.11.0 #18
a1phyr
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Highlights
Hot-reloading was reworked to be easier to implement and more robust to use while simplifying internals.
Compound
implementations can now use rawSource
methods from the cache and everything will work.This means that using
load_owned
instead ofT::load
is no longer necessary, and that it is possible to read files directly.Changed
Handle<'a, T>
to&'a Handle<T>
. This conveys better the fact that it is a reference and makes its use easier. Getting an ownedHandle<T>
is not possible.Handle::same_handle
was removed in favor ofstd::ptr::eq
.PartialEq
andEq
implementations were removed in favor of explicit locking.id
was added to theDebug
implementation.Directories are now regular
Compound
s that can be used with all APIs. Two methodsload_dir
andload_rec_dir
are still provided for convenience.Support for TAR archives was added.
LocalAssetCache
, a thread-local variant ofAssetCache
was added.It cannot be shared across threads but is more performant due to the lack of synchronization. Appart from that, it works exactly the same.
UntypedHandle
, a type-erased variant ofHandle<T>
was addedIt can be obtained from a
Handle<T>
. LikeHandle
it can be used to get its id or even read to get a&dyn Any
.AsAnyCache
trait was added to easily make generic interfaces over cache types.Other changes
Asset::default_value
now usesBoxedError
instead ofassets_manager::Error
and&SharedString
instead of&str
. It remains functionally the same appart from that.parking_lot
feature is no longer enabled by default.basic-toml
is now used instead oftoml_edit
.AssetGuard
toAssetReadGuard
Asset
implementation forBox
Debug
impl of loaders. They could not be used anyway.AnyCache
now always take methods by valueOther additions
OnceInitCell
now implementUnwindSafe
andRefUnwindSafe
ReloadId::NEVER
Bug fixes
This discussion was created from the release Version 0.11.0.
Beta Was this translation helpful? Give feedback.
All reactions