diff --git a/server/lemmy_api_structs/src/lib.rs b/server/lemmy_api_structs/src/lib.rs index df5830409..66abcf200 100644 --- a/server/lemmy_api_structs/src/lib.rs +++ b/server/lemmy_api_structs/src/lib.rs @@ -1,5 +1,5 @@ -pub extern crate serde; -pub extern crate thiserror; +extern crate serde; +extern crate thiserror; pub mod comment; pub mod community; diff --git a/server/lemmy_db/src/lib.rs b/server/lemmy_db/src/lib.rs index 4a4748ce5..ed6e1dfb9 100644 --- a/server/lemmy_db/src/lib.rs +++ b/server/lemmy_db/src/lib.rs @@ -1,17 +1,17 @@ #[macro_use] -pub extern crate diesel; +extern crate diesel; #[macro_use] -pub extern crate strum_macros; +extern crate strum_macros; #[macro_use] -pub extern crate lazy_static; -pub extern crate bcrypt; -pub extern crate chrono; -pub extern crate log; -pub extern crate regex; -pub extern crate serde; -pub extern crate serde_json; -pub extern crate sha2; -pub extern crate strum; +extern crate lazy_static; +extern crate bcrypt; +extern crate chrono; +extern crate log; +extern crate regex; +extern crate serde; +extern crate serde_json; +extern crate sha2; +extern crate strum; use chrono::NaiveDateTime; use diesel::{result::Error, *}; diff --git a/server/lemmy_rate_limit/src/lib.rs b/server/lemmy_rate_limit/src/lib.rs index 2d3553f01..260f7e2cb 100644 --- a/server/lemmy_rate_limit/src/lib.rs +++ b/server/lemmy_rate_limit/src/lib.rs @@ -1,9 +1,9 @@ #[macro_use] -pub extern crate strum_macros; -pub extern crate actix_web; -pub extern crate futures; -pub extern crate log; -pub extern crate tokio; +extern crate strum_macros; +extern crate actix_web; +extern crate futures; +extern crate log; +extern crate tokio; use actix_web::dev::{Service, ServiceRequest, ServiceResponse, Transform}; use futures::future::{ok, Ready}; diff --git a/server/lemmy_utils/src/lib.rs b/server/lemmy_utils/src/lib.rs index 205093433..c27033ca5 100644 --- a/server/lemmy_utils/src/lib.rs +++ b/server/lemmy_utils/src/lib.rs @@ -1,15 +1,15 @@ #[macro_use] -pub extern crate lazy_static; -pub extern crate actix_web; -pub extern crate anyhow; -pub extern crate comrak; -pub extern crate lettre; -pub extern crate lettre_email; -pub extern crate openssl; -pub extern crate rand; -pub extern crate regex; -pub extern crate serde_json; -pub extern crate url; +extern crate lazy_static; +extern crate actix_web; +extern crate anyhow; +extern crate comrak; +extern crate lettre; +extern crate lettre_email; +extern crate openssl; +extern crate rand; +extern crate regex; +extern crate serde_json; +extern crate url; pub mod settings; diff --git a/server/src/lib.rs b/server/src/lib.rs index 380dc4454..d811d908a 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -1,25 +1,25 @@ #![recursion_limit = "512"] #[macro_use] -pub extern crate strum_macros; +extern crate strum_macros; #[macro_use] -pub extern crate lazy_static; -pub extern crate actix; -pub extern crate actix_web; -pub extern crate base64; -pub extern crate bcrypt; -pub extern crate captcha; -pub extern crate chrono; -pub extern crate diesel; -pub extern crate dotenv; -pub extern crate jsonwebtoken; +extern crate lazy_static; +extern crate actix; +extern crate actix_web; +extern crate base64; +extern crate bcrypt; +extern crate captcha; +extern crate chrono; +extern crate diesel; +extern crate dotenv; +extern crate jsonwebtoken; extern crate log; -pub extern crate openssl; -pub extern crate reqwest; -pub extern crate rss; -pub extern crate serde; -pub extern crate serde_json; -pub extern crate sha2; -pub extern crate strum; +extern crate openssl; +extern crate reqwest; +extern crate rss; +extern crate serde; +extern crate serde_json; +extern crate sha2; +extern crate strum; pub mod api; pub mod apub; diff --git a/server/src/main.rs b/server/src/main.rs index 48549e467..92619b7cd 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -1,7 +1,5 @@ #[macro_use] extern crate diesel_migrations; -#[macro_use] -pub extern crate lazy_static; use actix::prelude::*; use actix_web::{ @@ -17,6 +15,7 @@ use diesel::{ r2d2::{ConnectionManager, Pool}, PgConnection, }; +use lazy_static::lazy_static; use lemmy_db::get_database_url_from_env; use lemmy_rate_limit::{rate_limiter::RateLimiter, RateLimit}; use lemmy_server::{