Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update rust crate assets_manager to 0.12 #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 30, 2023

This PR contains the following updates:

Package Type Update Change
assets_manager dependencies minor 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.1

Compare Source

  • Implement DirLoadable for OnceInitCell when possible

v0.12.0: Version 0.12.0

Compare Source

  • Remove NotHotReloaded trait and Handle::get (Handle::read is still guaranteed to be a no-op when HOT_RELOADED is false)
  • Storable trait is now a trait alias of Sized + Send + Sync + 'static. All custom Storable implementations can be removed without breaking anything.
  • Remove rodio support from the main crate. It is now done in assets_manager-rodio.
  • Add zip-zstd for easy zstd support in Zip
  • Use hashbrown to avoid hashing keys multiple times, which increases performance
  • Zip, Tar: remove deprecated from_slice
  • Update image to 0.25
  • Update MSRV to 1.71

v0.11.6: Version 0.11.6

Compare Source

  • No longer depend on serde's derive feature
  • Improve performance of opening Zip

For version starting from 0.18, rodio support is in assets_manager-rodio. This allows keeping up to date with rodio versions more easily, and potentially improving compile times.

v0.11.5: Version 0.11.5

Compare Source

  • Internals improvements

v0.11.4: Version 0.11.4

Compare Source

  • Update base64 to 0.22
  • Improve internals to reduce monomorphization per asset type

v0.11.3: Version 0.11.3

Compare Source

  • Add downcast method to AssetReadGuard<'_, dyn Any>
  • Add into_inner and downcast methods to Error
  • Implement Default for many types (including AssetCache, LocalAssetCache, source::Empty, ReloadId and AtomicReloadId)
  • Doc: Make it clear that get_or_insert inhibits hot-reloading

v0.11.2: Version 0.11.2

Compare Source

Added

  • Support for deriving Asset trait
    #[derive(Asset, serde::Deserialize)]
    #[asset_format = "ron"]
    struct Point {
        x: i32,
        y: i32,
    }
  • AssetReadGuard::map and AssetReadGuard::try_map
  • Many methods on UntypedHandle to mirror those on Handle<T>

Changed

  • Zip::from_bytes* and Tar::from_bytes* are now generic over the bytes type.
    In consequence, from_slice* are now deprecated.
  • Small documentation improvements.

v0.11.1: Version 0.11.1

Compare Source

  • Use sync_file::SyncFile as default type parameter of Tar

v0.11.0: Version 0.11.0

Compare Source

Highlights

  • Hot-reloading was reworked to be easier to implement and more robust to use while simplifying internals.

    • Hot-reloading implementation now only have to send the changed files instead of tracking asset types and ids. Hot-reloading APIs were changed to reflect this.
    • Compound implementations can now use raw Source methods from the cache and everything will work.
      This means that using load_owned instead of T::load is no longer necessary, and that it is possible to read files directly.
    • Hot-reloading now works for directories.
  • 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 owned Handle<T> is not possible.

    impl<'a> AnyCache<'a> {
    -   fn load<T: Compound>(self, id: &str) -> Handle<'a, T> { ... }
    +   fn load<T: Compound>(self, id: &str) -> &'a Handle<T> { ... }
    }
    • Handle::same_handle was removed in favor of std::ptr::eq.
    • PartialEq and Eq implementations were removed in favor of explicit locking.
    • A field id was added to the Debug implementation.
  • Directories are now regular Compounds that can be used with all APIs. Two methods load_dir and load_rec_dir are still provided for convenience.

    -let handle = cache.load_dir::<T>(id, false)?;
    +let handle = cache.load_dir::<T>(id)?;
    
    -let handle = cache.load_dir::<T>(id, true)?;
    +let handle = cache.load_rec_dir::<T>(id)?;
  • Support for TAR archives was added.

    let cache = AssetCache::with_source(source::Tar::open("assets.tar")?);
  • LocalAssetCache, a thread-local variant of AssetCache 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 of Handle<T> was added
    It can be obtained from a Handle<T>. Like Handle 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 uses BoxedError instead of assets_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 of toml_edit.
  • Errors when reading from ZIP or from the file system were improved.
  • Rename AssetGuard to AssetReadGuard
  • Removed Asset implementation for Box
  • Removed Debug impl of loaders. They could not be used anyway.
  • AnyCache now always take methods by value
  • MSRV is now 1.70

Other additions

  • OnceInitCell now implement UnwindSafe and RefUnwindSafe
  • ReloadId::NEVER

Bug fixes

  • A condition was inverted for when to emit a warning log in hot-reloading

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Dec 30, 2023

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.


  • Branch has one or more failed status checks

@renovate renovate bot force-pushed the renovate/assets_manager-0.x branch 2 times, most recently from b9fa74c to 8ffc7ef Compare January 14, 2024 14:02
@renovate renovate bot force-pushed the renovate/assets_manager-0.x branch from 8ffc7ef to 7ab0028 Compare May 1, 2024 11:04
@renovate renovate bot changed the title fix(deps): update rust crate assets_manager to 0.11 fix(deps): update rust crate assets_manager to 0.11.5 May 1, 2024
@renovate renovate bot force-pushed the renovate/assets_manager-0.x branch from 7ab0028 to 6e5c844 Compare May 5, 2024 09:12
@renovate renovate bot changed the title fix(deps): update rust crate assets_manager to 0.11.5 fix(deps): update rust crate assets_manager to 0.11 May 5, 2024
@renovate renovate bot force-pushed the renovate/assets_manager-0.x branch from 6e5c844 to 4515015 Compare July 6, 2024 02:16
@renovate renovate bot changed the title fix(deps): update rust crate assets_manager to 0.11 fix(deps): update rust crate assets_manager to 0.12 Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants