Skip to content

Commit 9ac2cb3

Browse files
wikleeabonander
authored andcommitted
fix(macros-core): use of undeclared tracked_path
1 parent bd3eb94 commit 9ac2cb3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

sqlx-macros-core/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
//! And then make releases in lockstep with `sqlx-core`. We recommend all driver crates, in-tree
1515
//! or otherwise, use the same version numbers as `sqlx-core` to avoid confusion.
1616
17+
#![cfg_attr(
18+
any(sqlx_macros_unstable, procmacro2_semver_exempt),
19+
feature(track_path)
20+
)]
21+
1722
use once_cell::sync::Lazy;
1823

1924
use crate::query::QueryDriver;

sqlx-macros-core/src/migrate.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#[cfg(any(sqlx_macros_unstable, procmacro2_semver_exempt))]
2+
extern crate proc_macro;
3+
14
use proc_macro2::TokenStream;
25
use quote::{quote, ToTokens, TokenStreamExt};
36
use sha2::{Digest, Sha384};

0 commit comments

Comments
 (0)