Skip to content

Commit

Permalink
Merge pull request #3370 from weiznich/rewrite_table_macro_as_proc_macro
Browse files Browse the repository at this point in the history
Rewrite table! as proc_macro
  • Loading branch information
weiznich committed Nov 3, 2022
2 parents b5eef93 + 282bfa5 commit f560c29
Show file tree
Hide file tree
Showing 45 changed files with 1,685 additions and 2,457 deletions.
8 changes: 4 additions & 4 deletions diesel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ pub mod prelude {
pub use crate::query_source::{Column, JoinTo, QuerySource, Table};
#[doc(inline)]
pub use crate::result::{ConnectionError, ConnectionResult, OptionalExtension, QueryResult};
#[doc(inline)]
pub use diesel_derives::table_proc as table;

#[cfg(feature = "mysql")]
#[doc(inline)]
Expand All @@ -525,6 +527,8 @@ pub mod prelude {
pub use crate::sqlite::SqliteConnection;
}

#[doc(inline)]
pub use crate::macros::table;
pub use crate::prelude::*;
#[doc(inline)]
pub use crate::query_builder::debug_query;
Expand All @@ -537,7 +541,3 @@ pub use crate::result::Error::NotFound;
pub(crate) mod diesel {
pub(crate) use super::*;
}

// workaround https://github.com/rust-lang/rust/pull/52234
#[doc(hidden)]
pub use __diesel_check_column_count_internal as __diesel_check_column_count;

0 comments on commit f560c29

Please sign in to comment.