mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
fix(macros-core): use of undeclared tracked_path
This commit is contained in:
parent
bd3eb94737
commit
9ac2cb3ace
2 changed files with 8 additions and 0 deletions
|
@ -14,6 +14,11 @@
|
|||
//! And then make releases in lockstep with `sqlx-core`. We recommend all driver crates, in-tree
|
||||
//! or otherwise, use the same version numbers as `sqlx-core` to avoid confusion.
|
||||
|
||||
#![cfg_attr(
|
||||
any(sqlx_macros_unstable, procmacro2_semver_exempt),
|
||||
feature(track_path)
|
||||
)]
|
||||
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
use crate::query::QueryDriver;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
#[cfg(any(sqlx_macros_unstable, procmacro2_semver_exempt))]
|
||||
extern crate proc_macro;
|
||||
|
||||
use proc_macro2::TokenStream;
|
||||
use quote::{quote, ToTokens, TokenStreamExt};
|
||||
use sha2::{Digest, Sha384};
|
||||
|
|
Loading…
Reference in a new issue