create sync mod
This commit is contained in:
parent
3bb45022d9
commit
b1fbe8c5af
9 changed files with 33 additions and 17 deletions
|
@ -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"
|
||||||
|
|
35
src/lib.rs
35
src/lib.rs
|
@ -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
13
src/sync/mod.rs
Normal 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::*;
|
Loading…
Reference in a new issue