PackageTrack
Sign in Get early access

refinery-macros

This crate should not be used directly, it is internally related to Refinery

0.9.2 9.5M downloads/mo #3185 most downloaded on crates.io rust-db/refinery

What this package is like to depend on

Last release 2 months ago

10 Jun 2026

Ships fairly regularly

a new release about every 4 months

Most releases are documented

notes for 24 of 27 stable releases

Nothing withdrawn

no release was ever pulled

7 years old

29 releases · first in 2019

3 releases in the last 12 months

see the full history below

Release timeline

29 releases · Dec 2019 to Jun 2026
2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 29
  1. 0.9.2 10 Jun 2026
    Release notes

    [0.9.2] - 2026-06-09

    Added

    • Support for rustls as a TLS backend for tokio-postgres via the new tokio-postgres-rustls feature. #426

    Changed

    • Make TLS opt-in for postgres and tokio-postgres features. The postgres and tokio-postgres features no longer pull in native-tls unconditionally. Use postgres-tls and tokio-postgres-tls features for TLS support. #408
    • Support rusqlite 0.39.x. #425
    • Support mysql up to 0.28.x and mysql_async up to 0.37.x. #436
    • Update toml dependency to 1.1.2. #430
    Open source →
    Release notes

    Added

    • Support for rustls as a TLS backend for tokio-postgres via the new tokio-postgres-rustls feature. #426

    Changed

    • Make TLS opt-in for postgres and tokio-postgres features. The postgres and tokio-postgres features no longer pull in native-tls unconditionally. Use postgres-tls and tokio-postgres-tls features for TLS support. #408
    • Support rusqlite 0.39.x. #425
    • Support mysql up to 0.28.x and mysql_async up to 0.37.x. #436
    • Update toml dependency to 1.1.2. #430
    Open source →
  2. 0.9.1 15 Apr 2026
    Release notes

    [0.9.1] - 2026-04-15

    Changed

    • Support rusqlite 0.38.x. #410

    Fixed

    • Avoid warning logs for nested directories while scanning migrations. #421
    Open source →
    Release notes

    Changed

    • Support rusqlite 0.38.x. #410

    Fixed

    • Avoid warning logs for nested directories while scanning migrations. #421
    Open source →
  3. 0.9.0 10 Oct 2025
    Release notes

    [0.9.0] - 2025-01-06

    Added

    • Support for TLS in postgres/tokio-postgres using native-tls. #353
    • Support for int8 migration versions via new int8-versions feature. #330
    • Derive Serialize for Migration if serde is enabled. #395
    Open source →
    Release notes

    Added

    • Support for TLS in postgres/tokio-postgres using native-tls. #353
    • Support for int8 migration versions via new int8-versions feature. #330
    • Derive Serialize for Migration if serde is enabled. #395

    Changed

    • Update migrate Transaction and AsyncTransaction execute functions to avoid double iteration. #393
    • Update mysql_async to support up until version 0.36. #400
    • Update rusqlite to support up until version 0.37. #389, #390
    • Update thiserror to version 2. #372
    • Update MSRV (Minimum Supported Rust Version). #401, #362
    • Fix unused warnings #403

    Fixed

    • Fix logging output for async and sync migrate functions. #378
    Open source →
  4. 0.8.16 21 Feb 2025
    Release notes

    Fixed

    • Revert #346 as it breaks Semver, save it for a minor release in the future.
    Open source →
  5. 0.8.15 18 Feb 2025
    Release notes

    Added

    • Make a query overridable. #358
    • Enable math functions for SQLite. #335
    • Add serde subfeature to tiberius-config. #334

    Changed

    • Update mysql version to allow 26, #365
    • Update mysql_async to allow 0.35, #359
    • Update rusqlite to allow 0.33, #361
    • Update migrate Transaction and AsyncTransaction execute functions to avoid double iteration when calling migrate with the grouped option active. #346
    • Update overall dependencies. #340

    Fixed

    • Fix misleading CLI arguments descriptions #336
    Open source →
  6. 0.8.14 03 Apr 2024
    Release notes

    Added

    • Add new utility function, load_sql_migrations that enables dynamic migration discovery where embedding is not desirable. #313
    • Add an enum EmbeddedMigration with all the migrations applied, #312

    Changed

    • Make serde, toml deps optional, #310
    • Make Migration::applied pub, #321
    • Update rusqlite to allow 0.31, #316

    Fixed

    • Fix bug in get_last_applied_migration when refinery's schema history table is not default, #313
    • Fix newline handling for Windows in database configuration setup, #320
    Open source →
  7. 0.8.13 29 Mar 2024
    Release notes

    [0.8.13] - 2024-03-29

    Added

    • Add new utility function, load_sql_migrations that enables dynamic migration discovery where embedding is not desirable. #313
    • Add an enum EmbeddedMigration with all the migrations applied, #312

    Changed

    • Make serde, toml deps optional, #310
    • Make Migration::applied pub, #321
    • Update rusqlite to allow 0.31, #316

    Fixed

    • Fix bug in get_last_applied_migration when refinery's schema history table is not default, #313
    • Fix newline handling for Windows in database configuration setup, #320
    Open source →
    Release notes
    • YANKED: due to release mismatch, see #323.
    Open source →
  8. 0.8.12 22 Jan 2024
    Release notes

    [0.8.12] - 2024-01-22

    Changed

    • Add Iterable method, #296
    • Update mysql to allow 24, #292
    • Update mysql_async to allow 0.33, #292
    • Update rusqlite to allow 0.30, #300
    • Replace lazy_static with std::sync::OnceLock #301
    Open source →
    Release notes

    Added

    • Add Iterable method, #296

    Changed

    • Update mysql to allow 24, #292
    • Update mysql_async to allow 0.33, #292
    • Update rusqlite to allow 0.30, #300
    • Replace lazy_static with std::sync::OnceLock #301
    Open source →
  9. 0.8.11 13 Sep 2023
    Release notes

    Changed

    • Improve feature-set, remove non required features from dependencies #286
    Open source →
  10. 0.8.10 20 May 2023
    Release notes

    Changed

    • Update mysql_async to allow 0.32, #278
    Open source →
  11. 0.8.9 05 May 2023
    Release notes

    Changed

    • Add no-default-features to tiberius dependency as tiberius features are non additive #273
    • Increase the range of supported postgres versions #273
    Open source →
  12. 0.8.8 28 Apr 2023
    Release notes

    Changed

    • Update tiberius to allow 0.12 #271
    • Update non driver dependencies to latest available versions to allow 0.12 #271
    Open source →
  13. 0.8.7 26 Nov 2022
    Release notes

    Changed

    • Update mysql to allow 23 #229
    Open source →
  14. 0.8.6 15 Aug 2022
    Release notes

    Changed

    • Update mysql_async to allow 0.30, #229
    Open source →
  15. 0.8.5 08 Jul 2022

    Nothing published for this version

  16. 0.8.4 09 Jan 2022
    Release notes

    Changed

    • Allow setting a custom migration table name, #207
    Open source →
  17. 0.8.3 09 Jan 2022

    Nothing published for this version

  18. 0.8.2 05 Jan 2022
    Release notes

    Changed

    • Update mysql to allow 22, #202
    Open source →
  19. 0.8.1 31 Dec 2021
    Release notes

    Changed

    • Update mysql to allow 0.29, #164
    • Update rusqlite to allow 0.26, #159
    Open source →
  20. 0.8.0 30 Dec 2021

    Nothing published for this version

  21. 0.7.0 16 Oct 2021
    Release notes

    Added

    • Add Target::Fake and Target::FakeVersion to allow users to only update refinery's schema migration table without actually running the migration files , #179
    • Add tiberius support to refinery and mssql support to refinery_cli #169

    Changed

    • include_migration_mods macro has been removed. Instead of that, use embed_migrations macro, and there is no need to have mod.rs. #154

    Removed

    • Removal of "files" argument from refinery cli #174
    Open source →
  22. 0.6.0 10 Jul 2021
    Release notes

    Changed

    • Update mysql to 21, #164
    • Update mysql_async to 0.28, #164
    • Update rusqlite to 0.25, #159
    Open source →
  23. 0.5.0 31 Dec 2020
    Release notes

    Added

    • Detect repeated migrations on migrations to be applied and return Error on that situation, #146

    Changed

    • Update assert_cmd to 1.0, #143
    • Update env_logger to 0.8, #143
    • Update env_logger to 0.8, #143
    • Update cfg_if to 1.0, #143
    • Update postgres to 0.19, #143
    • Update tokio-postgres to 0.7, #143
    • Update mysql to 0.20, #143
    Open source →
  24. 0.4.0 13 Oct 2020
    Release notes

    Added

    • Warn when migration file name is malformed #130
    • Add Unversioned migration type, #128
    • Add get_migrations method to runner to allow inspecting gathered migrations, #120
    • Add support for 'postgresql' url schema prefix, #107
    • Add lib option to load config from a string, 1#13
    • Add lib and cli option to load config from env var, #103

    Fixed

    • Fix set_abort_missing, it was setting the wrong variable, #127

    Changed

    • Update mysql_async to 0.25, #131
    • Update mysql to 0.18, #99
    Open source →
  25. 0.3.0 19 May 2020
    Release notes

    Added

    • Rename Config.get_db_type to Config.db_type, #95
    • Deprecate migrate_from_config and migrate_from_config_async, instead impl Migrate for Config, #94
    • Update Runner.run and Runner.run_async return signature, Result<(), Error> -> Result<Report, Error> where report contains applied Migration's, #92
    • Deprecate AppliedMigration, merge its functionality into Migration, #91
    • Add Runner.get_applied_migrations_async method, #90
    • Add Runner.get_applied_migrations method, #90
    • Add Runner.get_last_applied_migration_async method, #90
    • Add Runner.get_last_applied_migration method
    • Add allow migrations to run up until a Target version, #74
    • Use SipHasher13 instead of DefaultHasher #63

    Changed

    • Update mysql_async dependency, 0.21 -> 0.23 #94
    • Update rusqlite dependency, 0.21 -> 0.23 #88
    Open source →
    Release notes

    Added

    • RU translation from [@aishek].
    • pt-BR translation from [@tallesl].
    • es-ES translation from [@ZeliosAriex].
    Open source →
  26. 0.2.0 03 Jan 2020
    Release notes

    Added

    • Add tokio-postgres driver support #10.
    • Add mysql_async driver support #22.
    • Add migrate_from_config function
    • Add migrate_from_config_async function
    • Update postgres to version 0.17 #32
    • Allow refinery_cli to select driver via features #32

    Fixed

    • allow multiple statements in migration files #10
    • when building refinery_cli with default features, build with rusqlite bundled libsqlite3 #33
    • rename ConnectionError to just Connection as it is a variant for Error enum, and add its source as source #36

    Changed

    • update rusqlite dependency, 0.18 -> 0.21 #26
    Open source →
    Release notes

    Changed

    • Remove exclusionary mentions of "open source" since this project can benefit both "open" and "closed" source projects equally.
    Open source →
  27. 0.2.0-alpha.2 21 Dec 2019 pre-release

    Nothing published for this version

  28. 0.2.0-alpha.1 20 Dec 2019 pre-release

    Nothing published for this version

  29. 0.1.0 08 Dec 2019
    Release notes

    Added

    • Answer "Should you ever rewrite a change log?".

    Changed

    • Improve argument against commit logs.
    • Start following [SemVer] properly.
    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