Skip to content

Commit 705472e

Browse files
committed
Deprecate infer_schema!
`diesel print-schema` is now the preferred way to generate schema.rs.
1 parent b851194 commit 705472e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

diesel_infer_schema/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
warn(wrong_pub_self_convention, mut_mut, non_ascii_literal, similar_names,
1010
unicode_not_nfc, if_not_else, items_after_statements, used_underscore_binding))]
1111

12+
#![deprecated(since = "1.3.0", note = "Diesel CLI can be configured to automatically run `print-schema` after running migrations. See diesel.rs/guides/configuring-diesel-cli for details.")]
13+
1214
#[cfg_attr(feature = "clippy", allow(useless_attribute))]
1315
#[allow(unused_imports)]
1416
#[macro_use]

diesel_tests/tests/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ extern crate assert_matches;
66
#[macro_use]
77
extern crate diesel;
88
#[macro_use]
9+
#[allow(deprecated)]
910
extern crate diesel_infer_schema;
1011
#[cfg(feature = "sqlite")]
1112
#[macro_use]

0 commit comments

Comments
 (0)