Closed f3r10 closed 3 months ago
Thanks for your contribution @f3r10
I have news about this, after I try to publish a new version with this change on crates.io I get this response:
cargo publish
Updating crates.io index
error: all dependencies must have a version specified when publishing.
dependency `sqlx-crud` does not specify a version
Note: The published dependency will use the version from crates.io,
the `git` specification will be removed from the dependency declaration.
We need to push the new fork as a new project on crates.io right?
I have news about this, after I try to publish a new version with this change on crates.io I get this response:
cargo publish Updating crates.io index error: all dependencies must have a version specified when publishing. dependency `sqlx-crud` does not specify a version Note: The published dependency will use the version from crates.io, the `git` specification will be removed from the dependency declaration.
We need to push the new fork as a new project on crates.io right?
@f3r10 let me know what do you think about this
Sorry for the late response, Yes, you are right @grunch it looks like it is necessary to push the fork to crates.io so that it will be possible to define a version on the Cargo.toml file
maybe this option could be better than publishing the fork project to creates.io: https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#working-with-an-unpublished-minor-version Let me know what could be the best option
[dependencies]
sqlx-crud = { version = "0.4.0", features = [
"runtime-tokio-rustls",
], optional = true }
...
[patch.crates-io]
sqlx-crud = { git = "https://github.com/f3r10/sqlx-crud" }
With this change, it looks like it works
[dependencies] sqlx-crud = { version = "0.4.0", features = [ "runtime-tokio-rustls", ], optional = true } ... [patch.crates-io] sqlx-crud = { git = "https://github.com/f3r10/sqlx-crud" }
With this change, it looks like it works
got this done and published on version 0.6.2
I am going to create a PR to Mostro updating the dependencies with the new version mostro-core an the patch of sqlx
unfortunately I have to revert this PR because it is not working properly with https://github.com/MostroP2P/mostro/pull/334
I will do this PR again but it's not going to be merged until we are sure the mostrod PR can work properly with it
@f3r10
sure, I understand. I am going to check https://github.com/MostroP2P/mostro/pull/334 to see what is missing
Upgrade sqlx dependency #32