PackageTrack
Sign in Get early access

multiversion-macros

Implementation crate for multiversion

0.8.0 14M downloads/mo #2592 most downloaded on crates.io calebzulawski/multiversion

What this package is like to depend on

Last release 2 years ago

no release in 18 months

Release timing varies

gaps range from 2 weeks to 2.3 years

Nearly every release is documented

notes for 8 of 8 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

8 releases · first in 2020

0 releases in the last 12 months

see the full history below

Release timeline

8 releases · Jul 2020 to Dec 2024
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 8
  1. 0.8.0 08 Dec 2024
    Release notes

    Changed

    • Upgraded to syn 2. This shouldn't break compatibility with the 0.7 releases, but there might be minor differences.

    Fixed

    • Read retpoline target features from command line flags because they're LLVM features, not Rust features.
    Open source →
  2. 0.7.4 15 Mar 2024
    Release notes

    Fixed

    • Fix is_{arch}_feature_detected path for non-x86.
    Open source →
    Release notes

    Fixed

    • Fix is_{arch}_feature_detected path for non-x86.
    Open source →
  3. 0.7.3 10 Aug 2023
    Release notes

    Fixed

    • Don't include unstable target features in targets = "simd".
    Open source →
    Release notes

    Fixed

    • Don't include unstable target features in targets = "simd".
    Open source →
  4. 0.7.2 10 May 2023
    Release notes

    Fixed

    • Added workaround for documentation bug (https://github.com/rust-lang/rust/issues/111415)
    Open source →
  5. 0.7.1 23 Dec 2022
    Release notes

    Fixed

    • Fixed handling patterns in match_target.
    Open source →
    Release notes

    Fixed

    • Fixed handling patterns in match_target.
    Open source →
  6. 0.7.0 10 Dec 2022
    Release notes

    Changed

    • The multiversion macro has been overhauled. Now uses a single attribute macro, rather than helper attributes.
    • Increased minimum required Rust version to 1.61.0.

    Added

    • The function dispatch method is now selectable, between direct or indirect dispatch, as well as compile-time static dispatch.
    • Added a variety of macros in the multiversion::target module for querying the selected target features.
    • Targets can now be specified by CPU (e.g. x86-64-v2 or skylake).
    • Added option to pass attributes to clones.
    • Added special targets = "simd" option to automatically target all SIMD instruction sets.

    Removed

    • Removed the specialize mode. All targets now specify clones. Specialization should be implemented by querying the selected targets.
    • Removed support for functions that reference self or Self. Previous support was inconsistent and difficult to use correctly.

    Fixed

    • Fixed broken impl Trait support. Using impl Trait in return position now results in an error.
    • Dispatch is now bypassed in scenarios where no targets are specified for the target architecture, or if the first matching target features are known to exist at compile time.
    • Improved performance of direct dispatch.
    • Avoid indirect dispatch in some situations, such as when using retpolines
    Open source →
    Release notes

    Changed

    • The multiversion macro has been overhauled. Now uses a single attribute macro, rather than helper attributes.
    • Increased minimum required Rust version to 1.61.0.

    Added

    • The function dispatch method is now selectable, between direct or indirect dispatch, as well as compile-time static dispatch.
    • Added a variety of macros in the multiversion::target module for querying the selected target features.
    • Targets can now be specified by CPU (e.g. x86-64-v2 or skylake).
    • Added option to pass attributes to clones.
    • Added special targets = "simd" option to automatically target all SIMD instruction sets.

    Removed

    • Removed the specialize mode. All targets now specify clones. Specialization should be implemented by querying the selected targets.
    • Removed support for functions that reference self or Self. Previous support was inconsistent and difficult to use correctly.

    Fixed

    • Fixed broken impl Trait support. Using impl Trait in return position now results in an error.
    • Dispatch is now bypassed in scenarios where no targets are specified for the target architecture, or if the first matching target features are known to exist at compile time.
    • Improved performance of direct dispatch.
    • Avoid indirect dispatch in some situations, such as when using retpolines
    Open source →
  7. 0.6.1 18 Aug 2020
    Release notes

    Fixed

    • Fixed disallowing some valid architectures, such as "wasm32"
    Open source →
    Release notes

    Fixed

    • Fixed disallowing some valid architectures, such as "wasm32"
    Open source →
  8. 0.1.0 14 Jul 2020
    Release notes

    Added

    • Initial multiversion implementation
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive