mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
Make re-exports from other crates show up as such
… in `types` and sub-modules.
This commit is contained in:
parent
98812561f6
commit
e8f4eebdbe
@ -5,6 +5,7 @@ use crate::encode::{Encode, IsNull};
|
||||
use crate::error::BoxDynError;
|
||||
use crate::types::Type;
|
||||
|
||||
#[doc(no_inline)]
|
||||
pub use bstr::{BStr, BString, ByteSlice};
|
||||
|
||||
impl<DB> Type<DB> for BString
|
||||
|
||||
@ -5,6 +5,7 @@ use crate::encode::{Encode, IsNull};
|
||||
use crate::error::BoxDynError;
|
||||
use crate::types::Type;
|
||||
|
||||
#[doc(no_inline)]
|
||||
pub use git2::Oid;
|
||||
|
||||
impl<DB> Type<DB> for Oid
|
||||
|
||||
@ -34,11 +34,13 @@ mod json;
|
||||
|
||||
#[cfg(feature = "uuid")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "uuid")))]
|
||||
#[doc(no_inline)]
|
||||
pub use uuid::{self, Uuid};
|
||||
|
||||
#[cfg(feature = "chrono")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "chrono")))]
|
||||
pub mod chrono {
|
||||
#[doc(no_inline)]
|
||||
pub use chrono::{
|
||||
DateTime, FixedOffset, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc,
|
||||
};
|
||||
@ -46,25 +48,30 @@ pub mod chrono {
|
||||
|
||||
#[cfg(feature = "bit-vec")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "bit-vec")))]
|
||||
#[doc(no_inline)]
|
||||
pub use bit_vec::BitVec;
|
||||
|
||||
#[cfg(feature = "time")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "time")))]
|
||||
pub mod time {
|
||||
#[doc(no_inline)]
|
||||
pub use time::{Date, OffsetDateTime, PrimitiveDateTime, Time, UtcOffset};
|
||||
}
|
||||
|
||||
#[cfg(feature = "bigdecimal")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "bigdecimal")))]
|
||||
#[doc(no_inline)]
|
||||
pub use bigdecimal::BigDecimal;
|
||||
|
||||
#[cfg(feature = "decimal")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "decimal")))]
|
||||
#[doc(no_inline)]
|
||||
pub use rust_decimal::Decimal;
|
||||
|
||||
#[cfg(feature = "ipnetwork")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "ipnetwork")))]
|
||||
pub mod ipnetwork {
|
||||
#[doc(no_inline)]
|
||||
pub use ipnetwork::{IpNetwork, Ipv4Network, Ipv6Network};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user