fix(deps): update rust crate assets_manager to 0.12 #42
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.10
->0.12
Release Notes
a1phyr/assets_manager (assets_manager)
v0.12.3
Compare Source
v0.12.2
Compare Source
v0.12.1
: Version 0.12.1Compare Source
DirLoadable
forOnceInitCell
when possiblev0.12.0
: Version 0.12.0Compare Source
NotHotReloaded
trait andHandle::get
(Handle::read
is still guaranteed to be a no-op whenHOT_RELOADED
isfalse
)Storable
trait is now a trait alias ofSized + Send + Sync + 'static
. All customStorable
implementations can be removed without breaking anything.rodio
support from the main crate. It is now done inassets_manager-rodio
.zip-zstd
for easy zstd support in Ziphashbrown
to avoid hashing keys multiple times, which increases performancefrom_slice
image
to0.25
v0.11.6
: Version 0.11.6Compare Source
serde
's derive featureZip
For version starting from
0.18
,rodio
support is inassets_manager-rodio
. This allows keeping up to date withrodio
versions more easily, and potentially improving compile times.v0.11.5
: Version 0.11.5Compare Source
v0.11.4
: Version 0.11.4Compare Source
base64
to 0.22v0.11.3
: Version 0.11.3Compare Source
downcast
method toAssetReadGuard<'_, dyn Any>
into_inner
anddowncast
methods toError
Default
for many types (includingAssetCache
,LocalAssetCache
,source::Empty
,ReloadId
andAtomicReloadId
)get_or_insert
inhibits hot-reloadingv0.11.2
: Version 0.11.2Compare Source
Added
Asset
traitAssetReadGuard::map
andAssetReadGuard::try_map
UntypedHandle
to mirror those onHandle<T>
Changed
Zip::from_bytes*
andTar::from_bytes*
are now generic over the bytes type.In consequence,
from_slice*
are now deprecated.v0.11.1
: Version 0.11.1Compare Source
sync_file::SyncFile
as default type parameter ofTar
v0.11.0
: Version 0.11.0Compare Source
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
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.