From b2185af55973315edc853246ee36fcdb9c974159 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Fri, 16 Dec 2022 15:52:00 +0800 Subject: [PATCH] Cleaning up dependency (#1300) * Dependency version cleanup * Update build tool * Disable default features * [cli] disable default features --- Cargo.toml | 58 +++++++++---------- build-tools/bump-version.sh | 12 ++-- examples/actix3_example/api/Cargo.toml | 4 +- examples/actix3_example/core/Cargo.toml | 2 +- examples/actix3_example/entity/Cargo.toml | 2 +- examples/actix3_example/migration/Cargo.toml | 4 +- examples/actix_example/core/Cargo.toml | 2 +- examples/actix_example/entity/Cargo.toml | 2 +- examples/actix_example/migration/Cargo.toml | 4 +- examples/axum_example/core/Cargo.toml | 2 +- examples/axum_example/entity/Cargo.toml | 2 +- examples/axum_example/migration/Cargo.toml | 4 +- examples/basic/Cargo.toml | 10 ++-- examples/graphql_example/api/Cargo.toml | 4 +- examples/graphql_example/core/Cargo.toml | 2 +- examples/graphql_example/entity/Cargo.toml | 4 +- examples/graphql_example/migration/Cargo.toml | 4 +- examples/jsonrpsee_example/api/Cargo.toml | 2 +- examples/jsonrpsee_example/core/Cargo.toml | 2 +- examples/jsonrpsee_example/entity/Cargo.toml | 2 +- .../jsonrpsee_example/migration/Cargo.toml | 4 +- examples/poem_example/core/Cargo.toml | 2 +- examples/poem_example/entity/Cargo.toml | 2 +- examples/poem_example/migration/Cargo.toml | 4 +- examples/rocket_example/api/Cargo.toml | 8 +-- examples/rocket_example/core/Cargo.toml | 2 +- examples/rocket_example/entity/Cargo.toml | 2 +- examples/rocket_example/migration/Cargo.toml | 4 +- examples/rocket_okapi_example/api/Cargo.toml | 8 +-- examples/rocket_okapi_example/core/Cargo.toml | 2 +- .../rocket_okapi_example/entity/Cargo.toml | 2 +- .../rocket_okapi_example/migration/Cargo.toml | 4 +- examples/salvo_example/core/Cargo.toml | 2 +- examples/salvo_example/entity/Cargo.toml | 2 +- examples/salvo_example/migration/Cargo.toml | 4 +- examples/tonic_example/core/Cargo.toml | 2 +- examples/tonic_example/entity/Cargo.toml | 2 +- examples/tonic_example/migration/Cargo.toml | 4 +- issues/1143/Cargo.toml | 4 +- issues/1278/Cargo.toml | 4 +- issues/262/Cargo.toml | 2 +- issues/319/Cargo.toml | 4 +- issues/630/Cargo.toml | 4 +- sea-orm-cli/Cargo.toml | 22 +++---- sea-orm-cli/src/commands/migrate.rs | 2 +- sea-orm-cli/template/migration/_Cargo.toml | 2 +- sea-orm-codegen/Cargo.toml | 19 +++--- sea-orm-macros/Cargo.toml | 12 ++-- sea-orm-migration/Cargo.toml | 18 +++--- 49 files changed, 138 insertions(+), 143 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1690ef5f2..c42e36de0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,41 +24,41 @@ name = "sea_orm" path = "src/lib.rs" [dependencies] -async-stream = { version = "^0.3", default-features = false } -async-trait = { version = "^0.1", default-features = false } -chrono = { version = "^0.4.20", default-features = false, optional = true } -time = { version = "^0.3", default-features = false, optional = true } -futures = { version = "^0.3", default-features = false, features = ["std"] } -log = { version = "^0.4", default-features = false } -tracing = { version = "^0.1", default-features = false, features = ["attributes", "log"] } -rust_decimal = { version = "^1", default-features = false, optional = true } -bigdecimal = { version = "^0.3", default-features = false, optional = true } -sea-orm-macros = { version = "^0.10.3", path = "sea-orm-macros", default-features = false, optional = true } -sea-query = { version = "^0.27.2", features = ["thread-safe"] } -sea-query-binder = { version = "^0.2.2", default-features = false, optional = true } -sea-strum = { version = "^0.23", default-features = false, features = ["derive", "sea-orm"] } -serde = { version = "^1.0", default-features = false } -serde_json = { version = "^1.0", default-features = false, optional = true } -sqlx = { version = "^0.6", default-features = false, optional = true } -uuid = { version = "^1", default-features = false, optional = true } +async-stream = { version = "0.3", default-features = false } +async-trait = { version = "0.1", default-features = false } +chrono = { version = "0.4.20", default-features = false, optional = true } +time = { version = "0.3", default-features = false, optional = true } +futures = { version = "0.3", default-features = false, features = ["std"] } +log = { version = "0.4", default-features = false } +tracing = { version = "0.1", default-features = false, features = ["attributes", "log"] } +rust_decimal = { version = "1", default-features = false, optional = true } +bigdecimal = { version = "0.3", default-features = false, optional = true } +sea-orm-macros = { version = "0.10.3", path = "sea-orm-macros", default-features = false, optional = true } +sea-query = { version = "0.27.2", features = ["thread-safe"] } +sea-query-binder = { version = "0.2.2", default-features = false, optional = true } +sea-strum = { version = "0.23", default-features = false, features = ["derive", "sea-orm"] } +serde = { version = "1.0", default-features = false } +serde_json = { version = "1.0", default-features = false, optional = true } +sqlx = { version = "0.6", default-features = false, optional = true } +uuid = { version = "1", default-features = false, optional = true } ouroboros = { version = "0.15", default-features = false } -url = { version = "^2.2", default-features = false } -thiserror = { version = "^1", default-features = false } +url = { version = "2.2", default-features = false } +thiserror = { version = "1", default-features = false } [dev-dependencies] -smol = { version = "^1.2" } -smol-potat = { version = "^1.1" } -async-std = { version = "^1", features = ["attributes", "tokio1"] } -futures = { version = "^0.3" } -tokio = { version = "^1.6", features = ["full"] } +smol = { version = "1.2" } +smol-potat = { version = "1.1" } +async-std = { version = "1", features = ["attributes", "tokio1"] } +futures = { version = "0.3" } +tokio = { version = "1.6", features = ["full"] } actix-rt = { version = "2.2.0" } -maplit = { version = "^1" } -rust_decimal_macros = { version = "^1" } +maplit = { version = "1" } +rust_decimal_macros = { version = "1" } tracing-subscriber = { version = "0.3", features = ["env-filter"] } sea-orm = { path = ".", features = ["mock", "debug-print", "tests-cfg", "postgres-array"] } -pretty_assertions = { version = "^0.7" } -time = { version = "^0.3", features = ["macros"] } -uuid = { version = "^1", features = ["v4"] } +pretty_assertions = { version = "0.7" } +time = { version = "0.3", features = ["macros"] } +uuid = { version = "1", features = ["v4"] } once_cell = "1.8" [features] diff --git a/build-tools/bump-version.sh b/build-tools/bump-version.sh index 5e1296fe5..9436e90d5 100644 --- a/build-tools/bump-version.sh +++ b/build-tools/bump-version.sh @@ -11,7 +11,7 @@ sleep 1 # Bump `sea-orm-cli` version cd sea-orm-cli sed -i 's/^version.*$/version = "'$1'"/' Cargo.toml -sed -i 's/^sea-orm-codegen [^,]*,/sea-orm-codegen = { version = "\^'$1'",/' Cargo.toml +sed -i 's/^sea-orm-codegen [^,]*,/sea-orm-codegen = { version = "'$1'",/' Cargo.toml git commit -am "sea-orm-cli $1" cd .. sleep 1 @@ -23,21 +23,21 @@ git commit -am "sea-orm-macros $1" cd .. sleep 1 sed -i 's/^version.*$/version = "'$1'"/' Cargo.toml -sed -i 's/^sea-orm-macros [^,]*,/sea-orm-macros = { version = "\^'$1'",/' Cargo.toml +sed -i 's/^sea-orm-macros [^,]*,/sea-orm-macros = { version = "'$1'",/' Cargo.toml git commit -am "$1" # publish sea-orm sleep 1 # Bump `sea-orm-migration` version cd sea-orm-migration sed -i 's/^version.*$/version = "'$1'"/' Cargo.toml -sed -i 's/^sea-orm-cli [^,]*,/sea-orm-cli = { version = "\^'$1'",/' Cargo.toml -sed -i 's/^sea-orm [^,]*,/sea-orm = { version = "\^'$1'",/' Cargo.toml +sed -i 's/^sea-orm-cli [^,]*,/sea-orm-cli = { version = "'$1'",/' Cargo.toml +sed -i 's/^sea-orm [^,]*,/sea-orm = { version = "'$1'",/' Cargo.toml git commit -am "sea-orm-migration $1" cd .. sleep 1 # Bump examples' dependency version cd examples -find . -depth -type f -name '*.toml' -exec sed -i 's/^version = "\^.*" # sea-orm version$/version = "\^'$1'" # sea-orm version/' {} \; -find . -depth -type f -name '*.toml' -exec sed -i 's/^version = "\^.*" # sea-orm-migration version$/version = "\^'$1'" # sea-orm-migration version/' {} \; +find . -depth -type f -name '*.toml' -exec sed -i 's/^version = ".*" # sea-orm version$/version = "'$1'" # sea-orm version/' {} \; +find . -depth -type f -name '*.toml' -exec sed -i 's/^version = ".*" # sea-orm-migration version$/version = "'$1'" # sea-orm-migration version/' {} \; git commit -am "update examples" \ No newline at end of file diff --git a/examples/actix3_example/api/Cargo.toml b/examples/actix3_example/api/Cargo.toml index 16160b491..fa61d2309 100644 --- a/examples/actix3_example/api/Cargo.toml +++ b/examples/actix3_example/api/Cargo.toml @@ -11,8 +11,8 @@ actix-http = "2" actix-web = "3" actix-flash = "0.2" actix-files = "0.5" -futures = { version = "^0.3" } -futures-util = { version = "^0.3" } +futures = { version = "0.3" } +futures-util = { version = "0.3" } tera = "1.8.0" dotenvy = "0.15" listenfd = "0.3.3" diff --git a/examples/actix3_example/core/Cargo.toml b/examples/actix3_example/core/Cargo.toml index a64156f45..a23c57350 100644 --- a/examples/actix3_example/core/Cargo.toml +++ b/examples/actix3_example/core/Cargo.toml @@ -10,7 +10,7 @@ entity = { path = "../entity" } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version features = [ "debug-print", "runtime-async-std-native-tls", diff --git a/examples/actix3_example/entity/Cargo.toml b/examples/actix3_example/entity/Cargo.toml index 959133926..d7f3caec8 100644 --- a/examples/actix3_example/entity/Cargo.toml +++ b/examples/actix3_example/entity/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1", features = ["derive"] } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version diff --git a/examples/actix3_example/migration/Cargo.toml b/examples/actix3_example/migration/Cargo.toml index 5225de98b..f8154785d 100644 --- a/examples/actix3_example/migration/Cargo.toml +++ b/examples/actix3_example/migration/Cargo.toml @@ -9,11 +9,11 @@ name = "migration" path = "src/lib.rs" [dependencies] -async-std = { version = "^1", features = ["attributes", "tokio1"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.10.3" # sea-orm-migration version +version = "0.10.3" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-async-std-native-tls", diff --git a/examples/actix_example/core/Cargo.toml b/examples/actix_example/core/Cargo.toml index abf5f22fb..abee7f61d 100644 --- a/examples/actix_example/core/Cargo.toml +++ b/examples/actix_example/core/Cargo.toml @@ -10,7 +10,7 @@ entity = { path = "../entity" } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version features = [ "debug-print", "runtime-async-std-native-tls", diff --git a/examples/actix_example/entity/Cargo.toml b/examples/actix_example/entity/Cargo.toml index 959133926..d7f3caec8 100644 --- a/examples/actix_example/entity/Cargo.toml +++ b/examples/actix_example/entity/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1", features = ["derive"] } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version diff --git a/examples/actix_example/migration/Cargo.toml b/examples/actix_example/migration/Cargo.toml index cff51ed54..84c70ff9d 100644 --- a/examples/actix_example/migration/Cargo.toml +++ b/examples/actix_example/migration/Cargo.toml @@ -9,11 +9,11 @@ name = "migration" path = "src/lib.rs" [dependencies] -async-std = { version = "^1", features = ["attributes", "tokio1"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.10.3" # sea-orm-migration version +version = "0.10.3" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-actix-native-tls", diff --git a/examples/axum_example/core/Cargo.toml b/examples/axum_example/core/Cargo.toml index ce086d64f..b36b312f3 100644 --- a/examples/axum_example/core/Cargo.toml +++ b/examples/axum_example/core/Cargo.toml @@ -10,7 +10,7 @@ entity = { path = "../entity" } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version features = [ "debug-print", "runtime-async-std-native-tls", diff --git a/examples/axum_example/entity/Cargo.toml b/examples/axum_example/entity/Cargo.toml index 959133926..d7f3caec8 100644 --- a/examples/axum_example/entity/Cargo.toml +++ b/examples/axum_example/entity/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1", features = ["derive"] } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version diff --git a/examples/axum_example/migration/Cargo.toml b/examples/axum_example/migration/Cargo.toml index fba8ba56a..e5cc3d923 100644 --- a/examples/axum_example/migration/Cargo.toml +++ b/examples/axum_example/migration/Cargo.toml @@ -9,11 +9,11 @@ name = "migration" path = "src/lib.rs" [dependencies] -async-std = { version = "^1", features = ["attributes", "tokio1"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.10.3" # sea-orm-migration version +version = "0.10.3" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-native-tls", diff --git a/examples/basic/Cargo.toml b/examples/basic/Cargo.toml index 9c53df39c..4c36d6cc9 100644 --- a/examples/basic/Cargo.toml +++ b/examples/basic/Cargo.toml @@ -8,9 +8,9 @@ edition = "2021" publish = false [dependencies] -async-std = { version = "^1.9", features = [ "attributes", "tokio1" ] } +async-std = { version = "1.9", features = [ "attributes", "tokio1" ] } sea-orm = { path = "../../", features = [ "sqlx-all", "runtime-async-std-native-tls" ] } -serde_json = { version = "^1" } -futures = { version = "^0.3" } -async-stream = { version = "^0.3" } -futures-util = { version = "^0.3" } +serde_json = { version = "1" } +futures = { version = "0.3" } +async-stream = { version = "0.3" } +futures-util = { version = "0.3" } diff --git a/examples/graphql_example/api/Cargo.toml b/examples/graphql_example/api/Cargo.toml index a4fd78f44..aecf0466e 100644 --- a/examples/graphql_example/api/Cargo.toml +++ b/examples/graphql_example/api/Cargo.toml @@ -8,8 +8,8 @@ publish = false [dependencies] graphql-example-core = { path = "../core" } tokio = { version = "1.0", features = ["full"] } -axum = "^0.5.1" +axum = "0.5.1" dotenvy = "0.15.0" -async-graphql-axum = "^4.0.6" +async-graphql-axum = "4.0.6" entity = { path = "../entity" } migration = { path = "../migration" } diff --git a/examples/graphql_example/core/Cargo.toml b/examples/graphql_example/core/Cargo.toml index 332932252..dad737493 100644 --- a/examples/graphql_example/core/Cargo.toml +++ b/examples/graphql_example/core/Cargo.toml @@ -10,7 +10,7 @@ entity = { path = "../entity" } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version features = [ "debug-print", "runtime-async-std-native-tls", diff --git a/examples/graphql_example/entity/Cargo.toml b/examples/graphql_example/entity/Cargo.toml index f041d5079..58cf7b869 100644 --- a/examples/graphql_example/entity/Cargo.toml +++ b/examples/graphql_example/entity/Cargo.toml @@ -12,8 +12,8 @@ path = "src/lib.rs" serde = { version = "1", features = ["derive"] } [dependencies.async-graphql] -version = "^4.0.6" +version = "4.0.6" [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version diff --git a/examples/graphql_example/migration/Cargo.toml b/examples/graphql_example/migration/Cargo.toml index 2b12363a5..b52143197 100644 --- a/examples/graphql_example/migration/Cargo.toml +++ b/examples/graphql_example/migration/Cargo.toml @@ -10,11 +10,11 @@ path = "src/lib.rs" [dependencies] dotenvy = "0.15.0" -async-std = { version = "^1", features = ["attributes", "tokio1"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.10.3" # sea-orm-migration version +version = "0.10.3" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-native-tls", diff --git a/examples/jsonrpsee_example/api/Cargo.toml b/examples/jsonrpsee_example/api/Cargo.toml index 7f84ecd3e..9e98a03c3 100644 --- a/examples/jsonrpsee_example/api/Cargo.toml +++ b/examples/jsonrpsee_example/api/Cargo.toml @@ -6,7 +6,7 @@ publish = false [dependencies] jsonrpsee-example-core = { path = "../core" } -jsonrpsee = { version = "^0.8.0", features = ["full"] } +jsonrpsee = { version = "0.8.0", features = ["full"] } jsonrpsee-core = "0.9.0" tokio = { version = "1.8.0", features = ["full"] } serde = { version = "1", features = ["derive"] } diff --git a/examples/jsonrpsee_example/core/Cargo.toml b/examples/jsonrpsee_example/core/Cargo.toml index 23aeec82e..023152c13 100644 --- a/examples/jsonrpsee_example/core/Cargo.toml +++ b/examples/jsonrpsee_example/core/Cargo.toml @@ -10,7 +10,7 @@ entity = { path = "../entity" } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version features = [ "debug-print", "runtime-tokio-native-tls", diff --git a/examples/jsonrpsee_example/entity/Cargo.toml b/examples/jsonrpsee_example/entity/Cargo.toml index 959133926..d7f3caec8 100644 --- a/examples/jsonrpsee_example/entity/Cargo.toml +++ b/examples/jsonrpsee_example/entity/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1", features = ["derive"] } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version diff --git a/examples/jsonrpsee_example/migration/Cargo.toml b/examples/jsonrpsee_example/migration/Cargo.toml index 6c0d82a0d..246cf6883 100644 --- a/examples/jsonrpsee_example/migration/Cargo.toml +++ b/examples/jsonrpsee_example/migration/Cargo.toml @@ -9,11 +9,11 @@ name = "migration" path = "src/lib.rs" [dependencies] -async-std = { version = "^1", features = ["attributes", "tokio1"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.10.3" # sea-orm-migration version +version = "0.10.3" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-native-tls", diff --git a/examples/poem_example/core/Cargo.toml b/examples/poem_example/core/Cargo.toml index cacdfcb64..856912454 100644 --- a/examples/poem_example/core/Cargo.toml +++ b/examples/poem_example/core/Cargo.toml @@ -10,7 +10,7 @@ entity = { path = "../entity" } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version features = [ "debug-print", "runtime-async-std-native-tls", diff --git a/examples/poem_example/entity/Cargo.toml b/examples/poem_example/entity/Cargo.toml index 959133926..d7f3caec8 100644 --- a/examples/poem_example/entity/Cargo.toml +++ b/examples/poem_example/entity/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1", features = ["derive"] } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version diff --git a/examples/poem_example/migration/Cargo.toml b/examples/poem_example/migration/Cargo.toml index 6c0d82a0d..246cf6883 100644 --- a/examples/poem_example/migration/Cargo.toml +++ b/examples/poem_example/migration/Cargo.toml @@ -9,11 +9,11 @@ name = "migration" path = "src/lib.rs" [dependencies] -async-std = { version = "^1", features = ["attributes", "tokio1"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.10.3" # sea-orm-migration version +version = "0.10.3" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-native-tls", diff --git a/examples/rocket_example/api/Cargo.toml b/examples/rocket_example/api/Cargo.toml index 2ce9ab891..4361c4600 100644 --- a/examples/rocket_example/api/Cargo.toml +++ b/examples/rocket_example/api/Cargo.toml @@ -6,18 +6,18 @@ edition = "2021" publish = false [dependencies] -async-stream = { version = "^0.3" } +async-stream = { version = "0.3" } async-trait = { version = "0.1" } rocket-example-core = { path = "../core" } -futures = { version = "^0.3" } -futures-util = { version = "^0.3" } +futures = { version = "0.3" } +futures-util = { version = "0.3" } rocket = { version = "0.5.0-rc.1", features = [ "json", ] } rocket_dyn_templates = { version = "0.1.0-rc.1", features = [ "tera", ] } -serde_json = { version = "^1" } +serde_json = { version = "1" } entity = { path = "../entity" } migration = { path = "../migration" } tokio = "1.20.0" diff --git a/examples/rocket_example/core/Cargo.toml b/examples/rocket_example/core/Cargo.toml index ac2556328..18740ac32 100644 --- a/examples/rocket_example/core/Cargo.toml +++ b/examples/rocket_example/core/Cargo.toml @@ -10,7 +10,7 @@ entity = { path = "../entity" } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version features = [ "runtime-tokio-native-tls", "sqlx-postgres", diff --git a/examples/rocket_example/entity/Cargo.toml b/examples/rocket_example/entity/Cargo.toml index aefe0beb4..3cdacb0d4 100644 --- a/examples/rocket_example/entity/Cargo.toml +++ b/examples/rocket_example/entity/Cargo.toml @@ -15,4 +15,4 @@ rocket = { version = "0.5.0-rc.1", features = [ [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version diff --git a/examples/rocket_example/migration/Cargo.toml b/examples/rocket_example/migration/Cargo.toml index 2485d3c89..e195d5359 100644 --- a/examples/rocket_example/migration/Cargo.toml +++ b/examples/rocket_example/migration/Cargo.toml @@ -10,11 +10,11 @@ path = "src/lib.rs" [dependencies] rocket = { version = "0.5.0-rc.1" } -async-std = { version = "^1", features = ["attributes", "tokio1"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.10.3" # sea-orm-migration version +version = "0.10.3" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-native-tls", diff --git a/examples/rocket_okapi_example/api/Cargo.toml b/examples/rocket_okapi_example/api/Cargo.toml index 00ecdbaf3..f2e78e175 100644 --- a/examples/rocket_okapi_example/api/Cargo.toml +++ b/examples/rocket_okapi_example/api/Cargo.toml @@ -6,18 +6,18 @@ edition = "2021" publish = false [dependencies] -async-stream = { version = "^0.3" } +async-stream = { version = "0.3" } async-trait = { version = "0.1" } rocket-example-core = { path = "../core" } -futures = { version = "^0.3" } -futures-util = { version = "^0.3" } +futures = { version = "0.3" } +futures-util = { version = "0.3" } rocket = { version = "0.5.0-rc.1", features = [ "json", ] } rocket_dyn_templates = { version = "0.1.0-rc.1", features = [ "tera", ] } -serde_json = { version = "^1" } +serde_json = { version = "1" } entity = { path = "../entity" } migration = { path = "../migration" } tokio = "1.20.0" diff --git a/examples/rocket_okapi_example/core/Cargo.toml b/examples/rocket_okapi_example/core/Cargo.toml index ac2556328..18740ac32 100644 --- a/examples/rocket_okapi_example/core/Cargo.toml +++ b/examples/rocket_okapi_example/core/Cargo.toml @@ -10,7 +10,7 @@ entity = { path = "../entity" } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version features = [ "runtime-tokio-native-tls", "sqlx-postgres", diff --git a/examples/rocket_okapi_example/entity/Cargo.toml b/examples/rocket_okapi_example/entity/Cargo.toml index 42e3ed776..cea785ebb 100644 --- a/examples/rocket_okapi_example/entity/Cargo.toml +++ b/examples/rocket_okapi_example/entity/Cargo.toml @@ -15,7 +15,7 @@ rocket = { version = "0.5.0-rc.1", features = [ [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version [dependencies.rocket_okapi] version = "0.8.0-rc.2" diff --git a/examples/rocket_okapi_example/migration/Cargo.toml b/examples/rocket_okapi_example/migration/Cargo.toml index 2485d3c89..e195d5359 100644 --- a/examples/rocket_okapi_example/migration/Cargo.toml +++ b/examples/rocket_okapi_example/migration/Cargo.toml @@ -10,11 +10,11 @@ path = "src/lib.rs" [dependencies] rocket = { version = "0.5.0-rc.1" } -async-std = { version = "^1", features = ["attributes", "tokio1"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.10.3" # sea-orm-migration version +version = "0.10.3" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-native-tls", diff --git a/examples/salvo_example/core/Cargo.toml b/examples/salvo_example/core/Cargo.toml index 6b70b51ac..19ed3fa14 100644 --- a/examples/salvo_example/core/Cargo.toml +++ b/examples/salvo_example/core/Cargo.toml @@ -10,7 +10,7 @@ entity = { path = "../entity" } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version features = [ "debug-print", "runtime-tokio-native-tls", diff --git a/examples/salvo_example/entity/Cargo.toml b/examples/salvo_example/entity/Cargo.toml index 959133926..d7f3caec8 100644 --- a/examples/salvo_example/entity/Cargo.toml +++ b/examples/salvo_example/entity/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1", features = ["derive"] } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version diff --git a/examples/salvo_example/migration/Cargo.toml b/examples/salvo_example/migration/Cargo.toml index 6c0d82a0d..246cf6883 100644 --- a/examples/salvo_example/migration/Cargo.toml +++ b/examples/salvo_example/migration/Cargo.toml @@ -9,11 +9,11 @@ name = "migration" path = "src/lib.rs" [dependencies] -async-std = { version = "^1", features = ["attributes", "tokio1"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.10.3" # sea-orm-migration version +version = "0.10.3" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-native-tls", diff --git a/examples/tonic_example/core/Cargo.toml b/examples/tonic_example/core/Cargo.toml index a502e2a5d..553921f90 100644 --- a/examples/tonic_example/core/Cargo.toml +++ b/examples/tonic_example/core/Cargo.toml @@ -10,7 +10,7 @@ entity = { path = "../entity" } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version features = [ "debug-print", "runtime-tokio-rustls", diff --git a/examples/tonic_example/entity/Cargo.toml b/examples/tonic_example/entity/Cargo.toml index 959133926..d7f3caec8 100644 --- a/examples/tonic_example/entity/Cargo.toml +++ b/examples/tonic_example/entity/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1", features = ["derive"] } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.10.3" # sea-orm version +version = "0.10.3" # sea-orm version diff --git a/examples/tonic_example/migration/Cargo.toml b/examples/tonic_example/migration/Cargo.toml index e2f7eb902..506580287 100644 --- a/examples/tonic_example/migration/Cargo.toml +++ b/examples/tonic_example/migration/Cargo.toml @@ -9,11 +9,11 @@ name = "migration" path = "src/lib.rs" [dependencies] -async-std = { version = "^1", features = ["attributes", "tokio1"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.10.3" # sea-orm-migration version +version = "0.10.3" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-rustls", diff --git a/issues/1143/Cargo.toml b/issues/1143/Cargo.toml index 6dae314cd..a2583faa9 100644 --- a/issues/1143/Cargo.toml +++ b/issues/1143/Cargo.toml @@ -8,8 +8,8 @@ edition = "2021" publish = false [dependencies] -serde = "^1" -tokio = { version = "^1", features = ["rt", "rt-multi-thread", "macros"] } +serde = "1" +tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] } [dependencies.sea-orm] path = "../../" diff --git a/issues/1278/Cargo.toml b/issues/1278/Cargo.toml index 7be6742ea..f9be346b4 100644 --- a/issues/1278/Cargo.toml +++ b/issues/1278/Cargo.toml @@ -8,8 +8,8 @@ edition = "2021" publish = false [dependencies] -serde = "^1" -tokio = { version = "^1", features = ["rt", "rt-multi-thread", "macros"] } +serde = "1" +tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] } [dependencies.sea-orm] path = "../../" diff --git a/issues/262/Cargo.toml b/issues/262/Cargo.toml index b397fb8aa..6c9ce4e53 100644 --- a/issues/262/Cargo.toml +++ b/issues/262/Cargo.toml @@ -9,4 +9,4 @@ publish = false [dependencies] sea-orm = { path = "../../", features = [ "sqlx-all", "runtime-async-std-native-tls", "debug-print" ] } -async-std = { version = "^1", features = ["attributes", "tokio1"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } diff --git a/issues/319/Cargo.toml b/issues/319/Cargo.toml index a60859a4b..2269214d8 100644 --- a/issues/319/Cargo.toml +++ b/issues/319/Cargo.toml @@ -8,8 +8,8 @@ edition = "2021" publish = false [dependencies] -async-std = { version = "^1", features = ["attributes", "tokio1"] } -serde = { version = "^1", features = ["derive"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } +serde = { version = "1", features = ["derive"] } sea-orm = { path = "../../", features = [ "sqlx-mysql", "runtime-async-std-native-tls", diff --git a/issues/630/Cargo.toml b/issues/630/Cargo.toml index 00409cb55..5d9dc1da1 100644 --- a/issues/630/Cargo.toml +++ b/issues/630/Cargo.toml @@ -9,8 +9,8 @@ edition = "2021" publish = false [dependencies] -serde = "^1" -tokio = { version = "^1", features = ["rt", "rt-multi-thread", "macros"] } +serde = "1" +tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] } [dependencies.sea-orm] path = "../../" diff --git a/sea-orm-cli/Cargo.toml b/sea-orm-cli/Cargo.toml index bac45ef89..b734eee24 100644 --- a/sea-orm-cli/Cargo.toml +++ b/sea-orm-cli/Cargo.toml @@ -31,17 +31,17 @@ path = "src/bin/sea.rs" required-features = ["cli", "codegen"] [dependencies] -clap = { version = "^3.2", features = ["env", "derive"], optional = true } -dotenvy = { version = "^0.15", optional = true } -async-std = { version = "^1.9", features = ["attributes", "tokio1"], optional = true } -sea-orm-codegen = { version = "^0.10.3", path = "../sea-orm-codegen", optional = true } -sea-schema = { version = "^0.10.2" } -sqlx = { version = "^0.6", default-features = false, features = ["mysql", "postgres"], optional = true } -tracing-subscriber = { version = "0.3", features = ["env-filter"] } -tracing = { version = "0.1" } -url = "^2.2" -chrono = { version = "^0.4.20", default-features = false, features = ["clock"] } -regex = "1" +clap = { version = "3.2", default-features = false, features = ["std", "env", "derive"], optional = true } +dotenvy = { version = "0.15", default-features = false, optional = true } +async-std = { version = "1.9", default-features = false, features = ["attributes", "tokio1"], optional = true } +sea-orm-codegen = { version = "0.10.3", path = "../sea-orm-codegen", default-features = false, optional = true } +sea-schema = { version = "0.10.2" } +sqlx = { version = "0.6", default-features = false, features = ["mysql", "postgres"], optional = true } +tracing-subscriber = { version = "0.3", default-features = false, features = ["env-filter", "fmt"] } +tracing = { version = "0.1", default-features = false } +url = { version = "2.2", default-features = false } +chrono = { version = "0.4.20", default-features = false, features = ["clock"] } +regex = { version = "1", default-features = false } [dev-dependencies] smol = "1.2.5" diff --git a/sea-orm-cli/src/commands/migrate.rs b/sea-orm-cli/src/commands/migrate.rs index 8931ea5bc..c7fbaea5c 100644 --- a/sea-orm-cli/src/commands/migrate.rs +++ b/sea-orm-cli/src/commands/migrate.rs @@ -101,7 +101,7 @@ pub fn run_migrate_init(migration_dir: &str) -> Result<(), Box> { write_file!("src/main.rs"); write_file!("Cargo.toml", "_Cargo.toml", |content: String| { let ver = format!( - "^{}.{}.0", + "{}.{}.0", env!("CARGO_PKG_VERSION_MAJOR"), env!("CARGO_PKG_VERSION_MINOR") ); diff --git a/sea-orm-cli/template/migration/_Cargo.toml b/sea-orm-cli/template/migration/_Cargo.toml index 03cb031e9..2c674f238 100644 --- a/sea-orm-cli/template/migration/_Cargo.toml +++ b/sea-orm-cli/template/migration/_Cargo.toml @@ -9,7 +9,7 @@ name = "migration" path = "src/lib.rs" [dependencies] -async-std = { version = "^1", features = ["attributes", "tokio1"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] version = "" diff --git a/sea-orm-codegen/Cargo.toml b/sea-orm-codegen/Cargo.toml index 3bba86e0b..0601dfbca 100644 --- a/sea-orm-codegen/Cargo.toml +++ b/sea-orm-codegen/Cargo.toml @@ -17,17 +17,12 @@ name = "sea_orm_codegen" path = "src/lib.rs" [dependencies] -sea-query = { version = "^0.27.1", features = ["thread-safe"] } -syn = { version = "^1", default-features = false, features = [ - "derive", - "parsing", - "proc-macro", - "printing", -] } -quote = "^1" -heck = "^0.3" -proc-macro2 = "^1" -tracing = { version = "0.1", features = ["log"] } +sea-query = { version = "0.27.1", default-features = false, features = ["thread-safe"] } +syn = { version = "1", default-features = false } +quote = { version = "1", default-features = false } +heck = { version = "0.3", default-features = false } +proc-macro2 = { version = "1", default-features = false } +tracing = { version = "0.1", default-features = false, features = ["log"] } [dev-dependencies] -pretty_assertions = { version = "^0.7" } +pretty_assertions = { version = "0.7" } diff --git a/sea-orm-macros/Cargo.toml b/sea-orm-macros/Cargo.toml index 05ccc7e81..adaefe21a 100644 --- a/sea-orm-macros/Cargo.toml +++ b/sea-orm-macros/Cargo.toml @@ -18,15 +18,15 @@ path = "src/lib.rs" proc-macro = true [dependencies] -bae = "^0.1" -syn = { version = "^1", default-features = false, features = [ "full", "derive", "clone-impls", "parsing", "proc-macro", "printing", "extra-traits" ] } -quote = "^1" -heck = "^0.3" -proc-macro2 = "^1" +bae = { version = "0.1", default-features = false } +syn = { version = "1", default-features = false } +quote = { version = "1", default-features = false } +heck = { version = "0.3", default-features = false } +proc-macro2 = { version = "1", default-features = false } [dev-dependencies] sea-orm = { path = "../", features = ["macros"] } -serde = { version = "^1.0", features = ["derive"] } +serde = { version = "1.0", features = ["derive"] } [features] postgres-array = [] diff --git a/sea-orm-migration/Cargo.toml b/sea-orm-migration/Cargo.toml index 72bd37cf0..d1d960828 100644 --- a/sea-orm-migration/Cargo.toml +++ b/sea-orm-migration/Cargo.toml @@ -20,17 +20,17 @@ name = "sea_orm_migration" path = "src/lib.rs" [dependencies] -async-trait = { version = "^0.1" } -clap = { version = "^3.2", features = ["env", "derive"], optional = true } -dotenvy = { version = "^0.15", optional = true } -sea-orm = { version = "^0.10.3", path = "../", default-features = false, features = ["macros"] } -sea-orm-cli = { version = "^0.10.3", path = "../sea-orm-cli", default-features = false, optional = true } -sea-schema = { version = "^0.10.2" } -tracing = { version = "0.1", features = ["log"] } -tracing-subscriber = { version = "0.3", features = ["env-filter"] } +async-trait = { version = "0.1", default-features = false } +clap = { version = "3.2", default-features = false, features = ["std", "env", "derive"], optional = true } +dotenvy = { version = "0.15", default-features = false, optional = true } +sea-orm = { version = "0.10.3", path = "../", default-features = false, features = ["macros"] } +sea-orm-cli = { version = "0.10.3", path = "../sea-orm-cli", default-features = false, optional = true } +sea-schema = { version = "0.10.2" } +tracing = { version = "0.1", default-features = false, features = ["log"] } +tracing-subscriber = { version = "0.3", default-features = false, features = ["env-filter", "fmt"] } [dev-dependencies] -async-std = { version = "^1", features = ["attributes", "tokio1"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } [features] default = ["cli"]