-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
1,135 additions
and
462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "deadpool" | ||
version = "0.9.0-pre" | ||
version = "0.9.1" | ||
edition = "2018" | ||
resolver = "2" | ||
authors = ["Michael P. Jung <[email protected]>"] | ||
|
@@ -18,8 +18,8 @@ rustdoc-args = ["--cfg", "docsrs"] | |
default = ["managed", "unmanaged"] | ||
managed = ["async-trait"] | ||
unmanaged = [] | ||
rt_tokio_1 = ["tokio/time", "tokio/rt"] | ||
rt_async-std_1 = ["async-std"] | ||
rt_tokio_1 = ["deadpool-runtime/tokio_1"] | ||
rt_async-std_1 = ["deadpool-runtime/async-std_1"] | ||
|
||
[dependencies] | ||
num_cpus = "1.11.1" | ||
|
@@ -28,7 +28,7 @@ async-trait = { version = "0.1.17", optional = true } | |
# `serde` feature | ||
serde = { version = "1.0.103", features = ["derive"], optional = true } | ||
# `rt_async-std_1` feature | ||
async-std = { version = "1.0", features = ["unstable"], optional = true } | ||
deadpool-runtime = { version = "0.1", path = "./runtime" } | ||
# The dependency of tokio::sync is non-optional. Deadpool depends on | ||
# `tokio::sync::Semaphore`. No other features of `tokio` are enabled or used | ||
# unless the `rt_tokio_1` feature is enabled. | ||
|
@@ -50,7 +50,10 @@ members = [ | |
"diesel", | ||
"lapin", | ||
"postgres", | ||
"r2d2", | ||
"redis", | ||
"runtime", | ||
"sqlite", | ||
"sync", | ||
"examples/*" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "deadpool-diesel" | ||
version = "0.2.0-pre" | ||
version = "0.3.0" | ||
edition = "2018" | ||
resolver = "2" | ||
authors = ["Michael P. Jung <[email protected]>"] | ||
|
@@ -24,7 +24,8 @@ rt_async-std_1 = ["deadpool/rt_async-std_1"] | |
serde = ["deadpool/serde"] | ||
|
||
[dependencies] | ||
deadpool = { path = "../", version = "0.9.0-pre", default-features = false, features = ["managed"] } | ||
deadpool = { path = "../", version = "0.9.1", default-features = false, features = ["managed"] } | ||
deadpool-sync = { path = "../sync", version = "0.1.0" } | ||
diesel = { version = "1.4.7", default-features = false } | ||
|
||
[dev-dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
//! Type aliases for using `deadpool-diesel` with MySQL. | ||
/// Connection which is returned by the MySQL [`Pool`]. | ||
pub type Connection = crate::Connection<diesel::MysqlConnection>; | ||
/// Manager for MySQL connections | ||
pub type Manager = crate::Manager<diesel::MysqlConnection>; | ||
|
||
/// Manager which is used to create [`diesel::MysqlConnection`]s. | ||
pub type Manager = crate::manager::Manager<diesel::MysqlConnection>; | ||
deadpool::managed_reexports!( | ||
"diesel", | ||
Manager, | ||
deadpool::managed::Object<Manager>, | ||
diesel::ConnectionError, | ||
std::convert::Infallible | ||
); | ||
|
||
/// Pool for using `deadpool-diesel` with MySQL. | ||
pub type Pool = deadpool::managed::Pool<Manager>; | ||
/// Type alias for [`Object`] | ||
pub type Connection = Object; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
//! Type aliases for using `deadpool-diesel` with PostgreSQL. | ||
/// Connection which is returned by the PostgreSQL [`Pool`]. | ||
pub type Connection = crate::Connection<diesel::PgConnection>; | ||
/// Manager for PostgreSQL connections | ||
pub type Manager = crate::Manager<diesel::PgConnection>; | ||
|
||
/// Manager which is used to create [`diesel::PgConnection`]s. | ||
pub type Manager = crate::manager::Manager<diesel::PgConnection>; | ||
deadpool::managed_reexports!( | ||
"diesel", | ||
Manager, | ||
deadpool::managed::Object<Manager>, | ||
diesel::ConnectionError, | ||
std::convert::Infallible | ||
); | ||
|
||
/// Pool for using `deadpool-diesel` with PostgreSQL. | ||
pub type Pool = deadpool::managed::Pool<Manager>; | ||
/// Type alias for [`Object`] | ||
pub type Connection = Object; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
//! Type aliases for using `deadpool-diesel` with SQLite. | ||
/// Connection which is returned by the SQLite [`Pool`]. | ||
pub type Connection = crate::Connection<diesel::SqliteConnection>; | ||
/// Manager for SQLite connections | ||
pub type Manager = crate::Manager<diesel::SqliteConnection>; | ||
|
||
/// Manager which is used to create [`diesel::SqliteConnection`]s. | ||
pub type Manager = crate::manager::Manager<diesel::SqliteConnection>; | ||
pub use deadpool::managed::reexports::*; | ||
pub use deadpool_sync::reexports::*; | ||
deadpool::managed_reexports!( | ||
"diesel", | ||
Manager, | ||
deadpool::managed::Object<Manager>, | ||
diesel::ConnectionError, | ||
std::convert::Infallible | ||
); | ||
|
||
/// Pool for using `deadpool-diesel` with SQLite. | ||
pub type Pool = deadpool::managed::Pool<Manager>; | ||
/// Type alias for [`Object`] | ||
pub type Connection = Object; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "deadpool-lapin" | ||
version = "0.9.0-pre" | ||
version = "0.9.0" | ||
edition = "2018" | ||
resolver = "2" | ||
authors = ["Michael P. Jung <[email protected]>"] | ||
|
@@ -22,7 +22,7 @@ serde = ["deadpool/serde", "serde_1"] | |
|
||
[dependencies] | ||
async-amqp = { version = "1.2", optional = true } | ||
deadpool = { path = "../", version = "0.9.0-pre", default-features = false, features = ["managed"] } | ||
deadpool = { path = "../", version = "0.9.0", default-features = false, features = ["managed"] } | ||
lapin = { version = "1.0", default-features = false } | ||
serde_1 = { package = "serde", version = "1.0.103", features = ["derive"], optional = true } | ||
tokio-amqp = { version = "1.0", optional = true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "deadpool-postgres" | ||
version = "0.10.0-pre" | ||
version = "0.10.0" | ||
edition = "2018" | ||
resolver = "2" | ||
authors = ["Michael P. Jung <[email protected]>"] | ||
|
@@ -20,7 +20,7 @@ rt_async-std_1 = ["deadpool/rt_async-std_1"] | |
serde = ["deadpool/serde", "serde_1"] | ||
|
||
[dependencies] | ||
deadpool = { path = "../", version = "0.9.0-pre", default-features = false, features = ["managed"] } | ||
deadpool = { path = "../", version = "0.9.0", default-features = false, features = ["managed"] } | ||
log = "0.4" | ||
serde_1 = { package = "serde", version = "1.0", features = ["derive"], optional = true } | ||
tokio = { version = "1", features = ["rt"] } | ||
|
Oops, something went wrong.