diff options
author | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-19 23:10:53 -0600 |
---|---|---|
committer | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-19 23:10:53 -0600 |
commit | 88d527d574567420d7aa72f37205bd6b345b8dd7 (patch) | |
tree | 4cbec62f262d29c88b15df02e1d37f003991d99e /src/bin | |
parent | f2009f7135f92959e919a85a02584d7a0d7b8e47 (diff) | |
download | tosin-88d527d574567420d7aa72f37205bd6b345b8dd7.tar.gz tosin-88d527d574567420d7aa72f37205bd6b345b8dd7.zip |
generate diesel::table! in derive(Model)
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/tosin-admin.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/tosin-admin.rs b/src/bin/tosin-admin.rs index 4ca2d15..034e4a9 100644 --- a/src/bin/tosin-admin.rs +++ b/src/bin/tosin-admin.rs @@ -6,8 +6,11 @@ use std::process::Command; use structopt::StructOpt; -const TOSIN_DEPENDENCY: &str = concat!(r#"tosin = { path = ""#, env!("CARGO_MANIFEST_DIR"), r#"" }"#); +const TOSIN_DEPENDENCY: &str = concat!(r#"tosin = { path = ""#, env!("CARGO_MANIFEST_DIR"), r#"" } +diesel = { version = "1.4.4", features = ["sqlite"] }"#); const PROJECT_MAIN: &str = r#" +#[macro_use] extern crate diesel; + use tosin::Settings; use tosin::contrib::admin; use tosin::db::backend::Connectable; |