Dont use "pub extern crate"
This commit is contained in:
parent
17df0ee6b3
commit
0a86c0934c
6 changed files with 48 additions and 49 deletions
|
@ -1,5 +1,5 @@
|
||||||
pub extern crate serde;
|
extern crate serde;
|
||||||
pub extern crate thiserror;
|
extern crate thiserror;
|
||||||
|
|
||||||
pub mod comment;
|
pub mod comment;
|
||||||
pub mod community;
|
pub mod community;
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub extern crate diesel;
|
extern crate diesel;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub extern crate strum_macros;
|
extern crate strum_macros;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub extern crate lazy_static;
|
extern crate lazy_static;
|
||||||
pub extern crate bcrypt;
|
extern crate bcrypt;
|
||||||
pub extern crate chrono;
|
extern crate chrono;
|
||||||
pub extern crate log;
|
extern crate log;
|
||||||
pub extern crate regex;
|
extern crate regex;
|
||||||
pub extern crate serde;
|
extern crate serde;
|
||||||
pub extern crate serde_json;
|
extern crate serde_json;
|
||||||
pub extern crate sha2;
|
extern crate sha2;
|
||||||
pub extern crate strum;
|
extern crate strum;
|
||||||
|
|
||||||
use chrono::NaiveDateTime;
|
use chrono::NaiveDateTime;
|
||||||
use diesel::{result::Error, *};
|
use diesel::{result::Error, *};
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub extern crate strum_macros;
|
extern crate strum_macros;
|
||||||
pub extern crate actix_web;
|
extern crate actix_web;
|
||||||
pub extern crate futures;
|
extern crate futures;
|
||||||
pub extern crate log;
|
extern crate log;
|
||||||
pub extern crate tokio;
|
extern crate tokio;
|
||||||
|
|
||||||
use actix_web::dev::{Service, ServiceRequest, ServiceResponse, Transform};
|
use actix_web::dev::{Service, ServiceRequest, ServiceResponse, Transform};
|
||||||
use futures::future::{ok, Ready};
|
use futures::future::{ok, Ready};
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub extern crate lazy_static;
|
extern crate lazy_static;
|
||||||
pub extern crate actix_web;
|
extern crate actix_web;
|
||||||
pub extern crate anyhow;
|
extern crate anyhow;
|
||||||
pub extern crate comrak;
|
extern crate comrak;
|
||||||
pub extern crate lettre;
|
extern crate lettre;
|
||||||
pub extern crate lettre_email;
|
extern crate lettre_email;
|
||||||
pub extern crate openssl;
|
extern crate openssl;
|
||||||
pub extern crate rand;
|
extern crate rand;
|
||||||
pub extern crate regex;
|
extern crate regex;
|
||||||
pub extern crate serde_json;
|
extern crate serde_json;
|
||||||
pub extern crate url;
|
extern crate url;
|
||||||
|
|
||||||
pub mod settings;
|
pub mod settings;
|
||||||
|
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
#![recursion_limit = "512"]
|
#![recursion_limit = "512"]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub extern crate strum_macros;
|
extern crate strum_macros;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub extern crate lazy_static;
|
extern crate lazy_static;
|
||||||
pub extern crate actix;
|
extern crate actix;
|
||||||
pub extern crate actix_web;
|
extern crate actix_web;
|
||||||
pub extern crate base64;
|
extern crate base64;
|
||||||
pub extern crate bcrypt;
|
extern crate bcrypt;
|
||||||
pub extern crate captcha;
|
extern crate captcha;
|
||||||
pub extern crate chrono;
|
extern crate chrono;
|
||||||
pub extern crate diesel;
|
extern crate diesel;
|
||||||
pub extern crate dotenv;
|
extern crate dotenv;
|
||||||
pub extern crate jsonwebtoken;
|
extern crate jsonwebtoken;
|
||||||
extern crate log;
|
extern crate log;
|
||||||
pub extern crate openssl;
|
extern crate openssl;
|
||||||
pub extern crate reqwest;
|
extern crate reqwest;
|
||||||
pub extern crate rss;
|
extern crate rss;
|
||||||
pub extern crate serde;
|
extern crate serde;
|
||||||
pub extern crate serde_json;
|
extern crate serde_json;
|
||||||
pub extern crate sha2;
|
extern crate sha2;
|
||||||
pub extern crate strum;
|
extern crate strum;
|
||||||
|
|
||||||
pub mod api;
|
pub mod api;
|
||||||
pub mod apub;
|
pub mod apub;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate diesel_migrations;
|
extern crate diesel_migrations;
|
||||||
#[macro_use]
|
|
||||||
pub extern crate lazy_static;
|
|
||||||
|
|
||||||
use actix::prelude::*;
|
use actix::prelude::*;
|
||||||
use actix_web::{
|
use actix_web::{
|
||||||
|
@ -17,6 +15,7 @@ use diesel::{
|
||||||
r2d2::{ConnectionManager, Pool},
|
r2d2::{ConnectionManager, Pool},
|
||||||
PgConnection,
|
PgConnection,
|
||||||
};
|
};
|
||||||
|
use lazy_static::lazy_static;
|
||||||
use lemmy_db::get_database_url_from_env;
|
use lemmy_db::get_database_url_from_env;
|
||||||
use lemmy_rate_limit::{rate_limiter::RateLimiter, RateLimit};
|
use lemmy_rate_limit::{rate_limiter::RateLimiter, RateLimit};
|
||||||
use lemmy_server::{
|
use lemmy_server::{
|
||||||
|
|
Loading…
Reference in a new issue