Skip to content

Releases: robo9k/rust-magic-sys

v0.4.2

02 Oct 13:31

Choose a tag to compare

Other

  • Update unstable doc_cfg syntax for nightly rustdoc on docs.rs

v0.4.1

28 Aug 12:54

Choose a tag to compare

Added

  • Add support for libmagic v5.44 and v5.45 API

v0.4.0

31 Jul 19:51

Choose a tag to compare

This version adds pkg-config as an alternative default feature to the existing vcpkg build. The vcpkg build is now an optional default feature.
The optional dependency on pkg-config bumps the build requirement on the libmagic C library to version 5.39 (from 2020-06-14) or newer.
Naive linking as a fallback is no longer supported; if you want to use neither pkg-config nor vcpkg you have to override the build script, see crate README.

The following environment variables are no longer supported to configure the build, check the crate README for alternatives: MAGIC_DIR and <TARGET>_MAGIC_DIR, MAGIC_STATIC and <TARGET>_MAGIC_STATIC

The following crate features are no longer supported to select the libmagic API version: v5-04, v5-05, v5-10, v5-13, v5-20, v5-21, v5-22, v5-23, v5-25, v5-27, v5-32, v5-35, v5-38
The lowest libmagic API supported by this crate is now v5.38.
If you have previously relied on the crate's default features, the libmagic API version of v5.38 remains unchanged.

The minimum supported Rust version (MSRV) is now 1.64

Added

  • [breaking] Use pkg-config to link, requiring libmagic v5.39+
  • Set include metadata from pkg-config and vcpkg build

Fixed

  • [breaking] Fix C type of buffer param in magic_buffer
  • Only include required files in .crate

Other

  • Bump MSRV to 1.64
  • Replace libc crate dependency with core::ffi
  • Update pinned revision for cargo-vcpkg
  • Fix crate license SPDX expression

v0.4.0-alpha.2

29 Jul 20:43

Choose a tag to compare

v0.4.0-alpha.2 Pre-release
Pre-release

Fixed

  • Only include required files in .crate

Other

  • Fix crate license SPDX expression

v0.4.0-alpha.1

29 Jul 16:26

Choose a tag to compare

v0.4.0-alpha.1 Pre-release
Pre-release

This version adds pkg-config as an alternative default feature to the existing vcpkg build. The vcpkg build is now an optional default feature.
The optional dependency on pkg-config bumps the build requirement on the libmagic C library to version 5.39 (from 2020-06-14) or newer.
Naive linking as a fallback is no longer supported; if you want to use neither pkg-config nor vcpkg you have to override the build script, see crate README.

The following environment variables are no longer supported to configure the build, check the crate README for alternatives: MAGIC_DIR and <TARGET>_MAGIC_DIR, MAGIC_STATIC and <TARGET>_MAGIC_STATIC

The following crate features are no longer supported to select the libmagic API version: v5-04, v5-05, v5-10, v5-13, v5-20, v5-21, v5-22, v5-23, v5-25, v5-27, v5-32, v5-35, v5-38
The lowest libmagic API supported by this crate is now v5.38.
If you have previously relied on the crate's default features, the libmagic API version of v5.38 remains unchanged.

The minimum supported Rust version (MSRV) is now 1.64

Added

  • [breaking] Use pkg-config to link, requiring libmagic v5.39+
  • Set include metadata from pkg-config and vcpkg build

Fixed

  • [breaking] Fix C type of buffer param in magic_buffer

Other

  • Bump MSRV to 1.64
  • Replace libc crate dependency with core::ffi
  • Update pinned revision for cargo-vcpkg