-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update to sqlx 8 (waiting for sqlx release) #159
Open
pxp9
wants to merge
6
commits into
master
Choose a base branch
from
ft/update-sqlx-8.1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
009b61c
update to sqlx 8.1 (waiting for sqlx PR)
pxp9 309e144
make it work, with new without any warnings
pxp9 b1d1862
lastest 0.8 version (once sqlx release 8.3, we are ready :) )
pxp9 1945e66
add toolchain file
pxp9 97aa430
fix clippy
pxp9 7d1917c
fix clippy ?
pxp9 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
[package] | ||
name = "fang" | ||
version = "0.11.0-rc1" | ||
authors = ["Ayrat Badykov <[email protected]>" , "Pepe Márquez <[email protected]>"] | ||
authors = [ | ||
"Ayrat Badykov <[email protected]>", | ||
"Pepe Márquez <[email protected]>", | ||
] | ||
description = "Background job processing library for Rust" | ||
repository = "https://github.com/ayrat555/fang" | ||
edition = "2021" | ||
|
@@ -15,27 +18,75 @@ rust-version = "1.77" | |
doctest = false | ||
|
||
[features] | ||
default = ["blocking", "asynk-sqlx", "derive-error", "blocking-postgres", "blocking-mysql" , "blocking-sqlite", "migrations-postgres", "migrations-sqlite", "migrations-mysql"] | ||
asynk-postgres = ["asynk-sqlx" , "sqlx?/postgres"] | ||
asynk-sqlite = ["asynk-sqlx" , "sqlx?/sqlite"] | ||
asynk-mysql = ["asynk-sqlx" , "sqlx?/mysql"] | ||
asynk-sqlx = ["asynk" , "dep:sqlx"] | ||
asynk = ["dep:tokio", "dep:async-trait", "dep:async-recursion" ] | ||
default = [ | ||
"blocking", | ||
"asynk-sqlx", | ||
"derive-error", | ||
"blocking-postgres", | ||
"blocking-mysql", | ||
"blocking-sqlite", | ||
"migrations-postgres", | ||
"migrations-sqlite", | ||
"migrations-mysql", | ||
] | ||
asynk-postgres = ["asynk-sqlx", "sqlx?/postgres"] | ||
asynk-sqlite = ["asynk-sqlx", "sqlx?/sqlite"] | ||
asynk-mysql = ["asynk-sqlx", "sqlx?/mysql"] | ||
asynk-sqlx = ["asynk", "dep:sqlx"] | ||
asynk = ["dep:tokio", "dep:async-trait", "dep:async-recursion"] | ||
derive-error = ["dep:fang-derive-error"] | ||
blocking = ["dep:diesel", "dep:diesel-derive-enum", "dep:dotenvy", "diesel?/chrono" , "diesel?/serde_json" , "diesel?/uuid", "diesel?/r2d2"] | ||
blocking-postgres = [ "blocking", "diesel?/postgres"] | ||
blocking-sqlite = ["blocking", "diesel?/sqlite" ] | ||
blocking-mysql = [ "blocking", "diesel?/mysql"] | ||
blocking = [ | ||
"dep:diesel", | ||
"dep:diesel-derive-enum", | ||
"dep:dotenvy", | ||
"diesel?/chrono", | ||
"diesel?/serde_json", | ||
"diesel?/uuid", | ||
"diesel?/r2d2", | ||
] | ||
blocking-postgres = ["blocking", "diesel?/postgres"] | ||
blocking-sqlite = ["blocking", "diesel?/sqlite"] | ||
blocking-mysql = ["blocking", "diesel?/mysql"] | ||
migrations-postgres = ["migrations", "diesel?/postgres"] | ||
migrations-sqlite = ["migrations", "diesel?/sqlite"] | ||
migrations-mysql = ["migrations", "diesel?/mysql"] | ||
migrations = ["dep:diesel_migrations", "dep:diesel"] | ||
|
||
|
||
[dev-dependencies] | ||
fang-derive-error = { version = "0.1.0"} | ||
diesel_migrations = { version = "2.1" , features = ["postgres", "sqlite" , "mysql"]} | ||
sqlx = {version = "0.6.3", features = ["any" , "macros" , "chrono", "uuid", "json","runtime-tokio-rustls", "postgres", "sqlite", "mysql"]} | ||
fang-derive-error = { version = "0.1.0" } | ||
diesel_migrations = { version = "2.1", features = [ | ||
"postgres", | ||
"sqlite", | ||
"mysql", | ||
] } | ||
#sqlx = { version = "0.8", features = [ | ||
# "any", | ||
# "macros", | ||
# "chrono", | ||
# "uuid", | ||
# "json", | ||
# "runtime-tokio-rustls", | ||
# "postgres", | ||
# "sqlite", | ||
# "mysql", | ||
#] } | ||
|
||
sqlx = { git = "https://github.com/launchbadge/sqlx.git", branch = "main", features = [ | ||
"any", | ||
"macros", | ||
"chrono", | ||
"uuid", | ||
"json", | ||
"runtime-tokio-rustls", | ||
"postgres", | ||
"sqlite", | ||
"mysql", | ||
] } | ||
|
||
url = { version = "2.2.2" } | ||
|
||
|
||
#console-subscriber = "0.2.0" # for tokio tracing debug | ||
|
||
[dependencies] | ||
|
@@ -51,8 +102,29 @@ thiserror = "1.0" | |
typed-builder = "0.14" | ||
typetag = "0.2" | ||
uuid = { version = "1.1", features = ["v4"] } | ||
fang-derive-error = { version = "0.1.0" , optional = true} | ||
sqlx = {version = "0.6.3", features = ["any" , "macros" , "chrono", "uuid", "json", "runtime-tokio-rustls"], optional = true} | ||
fang-derive-error = { version = "0.1.0", optional = true } | ||
#sqlx = { version = "0.8", features = [ | ||
# "any", | ||
# "macros", | ||
# "chrono", | ||
# "uuid", | ||
# "json", | ||
# "runtime-tokio-rustls", | ||
# "postgres", | ||
# "sqlite", | ||
# "mysql", | ||
#] } | ||
sqlx = { git = "https://github.com/launchbadge/sqlx.git", branch = "main", features = [ | ||
"any", | ||
"macros", | ||
"chrono", | ||
"uuid", | ||
"json", | ||
"runtime-tokio-rustls", | ||
], optional = true } | ||
|
||
url = { version = "2.2.2" } | ||
|
||
|
||
[dependencies.diesel] | ||
version = "2.1" | ||
|
@@ -70,7 +142,7 @@ optional = true | |
|
||
[dependencies.tokio] | ||
version = "1.25" | ||
features = ["rt", "time", "macros"]#, "tracing"] | ||
features = ["rt", "time", "macros"] #, "tracing"] | ||
optional = true | ||
|
||
[dependencies.async-trait] | ||
|
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 |
---|---|---|
|
@@ -435,7 +435,6 @@ mod worker_tests { | |
|
||
#[test] | ||
#[ignore] | ||
|
||
fn no_schedule_until_run() { | ||
let task = TaskScheduled {}; | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[toolchain] | ||
versioned = "1.83" | ||
channel = "stable-x86_64-unknown-linux-gnu" | ||
components = ["rustfmt", "rustc-dev", "clippy"] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
profile = "minimal" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it won't be possible to release a new version if the crate will reference a github repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know , I am officially waiting for the sqlx 8.3 release.