Make re-exports from other crates show up as such

… in `types` and sub-modules.
This commit is contained in:
Jonas Platte 2021-02-24 23:58:22 +01:00 committed by Ryan Leckey
parent 98812561f6
commit e8f4eebdbe
3 changed files with 9 additions and 0 deletions

View File

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

View File

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

View File

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