create sync mod

This commit is contained in:
Ayrat Badykov 2022-07-17 09:10:32 +03:00
parent 3bb45022d9
commit b1fbe8c5af
No known key found for this signature in database
GPG key ID: EC1148A46811EFB5
9 changed files with 33 additions and 17 deletions

View file

@ -4,7 +4,7 @@ version = "0.6.0"
authors = ["Ayrat Badykov <ayratin555@gmail.com>"] authors = ["Ayrat Badykov <ayratin555@gmail.com>"]
description = "Background job processing library for Rust" description = "Background job processing library for Rust"
repository = "https://github.com/ayrat555/fang" repository = "https://github.com/ayrat555/fang"
edition = "2018" edition = "2021"
license = "MIT" license = "MIT"
readme = "README.md" readme = "README.md"
rust-version = "1.62" rust-version = "1.62"

View file

@ -1,24 +1,27 @@
#![allow(clippy::nonstandard_macro_braces)] // #![allow(clippy::nonstandard_macro_braces)]
#![allow(clippy::extra_unused_lifetimes)] // #![allow(clippy::extra_unused_lifetimes)]
// pub mod error;
// pub mod executor;
// pub mod queue;
// pub mod scheduler;
// pub mod schema;
// pub mod worker_pool;
// pub use error::FangError;
// pub use executor::*;
// pub use queue::*;
// pub use scheduler::*;
// pub use schema::*;
// pub use worker_pool::*;
#[macro_use] #[macro_use]
extern crate diesel; extern crate diesel;
pub mod error;
pub mod executor;
pub mod queue;
pub mod scheduler;
pub mod schema;
pub mod worker_pool;
pub use error::FangError;
pub use executor::*;
pub use queue::*;
pub use scheduler::*;
pub use schema::*;
pub use worker_pool::*;
#[doc(hidden)] #[doc(hidden)]
pub use diesel::pg::PgConnection; pub use diesel::pg::PgConnection;
#[doc(hidden)] #[doc(hidden)]
pub use typetag; pub use typetag;
pub mod sync;
pub use sync::*;

13
src/sync/mod.rs Normal file
View file

@ -0,0 +1,13 @@
pub mod error;
pub mod executor;
pub mod queue;
pub mod scheduler;
pub mod schema;
pub mod worker_pool;
pub use error::FangError;
pub use executor::*;
pub use queue::*;
pub use scheduler::*;
pub use schema::*;
pub use worker_pool::*;