Skip to content

Commit 76b3296

Browse files
wikleeAandreba
authored andcommitted
fix(macros-core): use of undeclared tracked_path
1 parent 0ea4af8 commit 76b3296

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

sqlx-macros-core/src/lib.rs

+5
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

+3
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)