fix(macros-core): use of undeclared tracked_path

This commit is contained in:
patix 2023-03-19 01:03:31 +01:00 committed by Austin Bonander
parent bd3eb94737
commit 9ac2cb3ace
2 changed files with 8 additions and 0 deletions

View file

@ -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;

View file

@ -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};