diff --git a/server/examples/lsys-web-module-oauth/Cargo.toml b/server/examples/lsys-web-module-oauth/Cargo.toml index ab8c491..288e656 100644 --- a/server/examples/lsys-web-module-oauth/Cargo.toml +++ b/server/examples/lsys-web-module-oauth/Cargo.toml @@ -6,28 +6,35 @@ edition = "2021" [dependencies] -lsys-core = { path = "../../lsys-core"}#path 替换为 :,git = "https://github.com/shanliu/lsys" -lsys-web = { path = "../../lsys-web"}#path 替换为 :,git = "https://github.com/shanliu/lsys" -lsys-setting = { path = "../../lsys-setting"}#path 替换为 :,git = "https://github.com/shanliu/lsys" -lsys-rbac = { path = "../../lsys-rbac"}#path 替换为 :,git = "https://github.com/shanliu/lsys" -lsys-user = { path = "../../lsys-user"}#path 替换为 :,git = "https://github.com/shanliu/lsys" -serde={ version = "1.0.*"} -serde_json="1.0.*" +lsys-core = { path = "../../lsys-core" } #path 替换为 :,git = "https://github.com/shanliu/lsys" +lsys-web = { path = "../../lsys-web" } #path 替换为 :,git = "https://github.com/shanliu/lsys" +lsys-setting = { path = "../../lsys-setting" } #path 替换为 :,git = "https://github.com/shanliu/lsys" +lsys-rbac = { path = "../../lsys-rbac" } #path 替换为 :,git = "https://github.com/shanliu/lsys" +lsys-user = { path = "../../lsys-user" } #path 替换为 :,git = "https://github.com/shanliu/lsys" +serde = { version = "1.0.*" } +serde_json = "1.0.*" #日志 -tracing = {version="0.1.*",features=["log"]}# log-always 保持log的输出 当使用tracing时会出现两次 +tracing = { version = "0.1.*", features = [ + "log", +] } # log-always 保持log的输出 当使用tracing时会出现两次 async-trait = "0.1.57" config = "0.13.2" +redis = { version = "~0.23" } -redis = { version = "~0.23" } +urlencoding = { version = "2.1.0" } -urlencoding = { version = "2.1.0" } +reqwest = { version = "~0.11.*", features = ["json", "stream"] } -reqwest = { version = "~0.11.*", features = ["json","stream"] } - -sqlx = {version = "~0.6.3",features = [ "mysql","runtime-tokio-native-tls","offline"]} -sqlx-model = {version = "~0.2.0", default-features=false,features = ["sqlx-mysql"]} \ No newline at end of file +sqlx = { version = "~0.6.3", features = [ + "mysql", + "runtime-tokio-native-tls", + "offline", +] } +sqlx-model = { version = "0.2.0", default-features = false, features = [ + "sqlx-mysql", +] } diff --git a/server/lsys-core/Cargo.toml b/server/lsys-core/Cargo.toml index 2af8f92..19d3761 100644 --- a/server/lsys-core/Cargo.toml +++ b/server/lsys-core/Cargo.toml @@ -6,30 +6,35 @@ edition = "2021" [dependencies] -futures-util="~0.3.*" +futures-util = "~0.3.*" dotenv = "~0.15.*" -tokio = {version="~1.28.0", features = ["fs","macros"]} +tokio = { version = "~1.28.0", features = ["fs", "macros"] } deadpool-redis = { version = "0.12" } -redis = { version = "~0.23", features = ["aio","tokio-comp"] } +redis = { version = "~0.23", features = ["aio", "tokio-comp"] } -serde={ version = "1.0.*" } -serde_json="1.0.*" +serde = { version = "1.0.*" } +serde_json = "1.0.*" #db -sqlx = {version = "~0.6.3",features = ["runtime-tokio-native-tls","offline"]} -sqlx-model = {version = "~0.2.0", default-features=false} +sqlx = { version = "~0.6.3", features = [ + "runtime-tokio-native-tls", + "offline", +] } +sqlx-model = { version = "0.2.0", default-features = false } #客户端 log = "~0.4.*" # 使用trace中宏 这里可以不要 #日志 -tracing = {version="~0.1.*",features=["log"]}# log-always 保持log的输出 当使用tracing时会出现两次 -tracing-attributes ="~0.1.*" #日志属性宏 -tracing-appender="~0.2.*"#写日志文件 -tracing-subscriber = {version="~0.3.*",features=["env-filter"]} +tracing = { version = "~0.1.*", features = [ + "log", +] } # log-always 保持log的输出 当使用tracing时会出现两次 +tracing-attributes = "~0.1.*" #日志属性宏 +tracing-appender = "~0.2.*" #写日志文件 +tracing-subscriber = { version = "~0.3.*", features = ["env-filter"] } #模板 tera = "~1.18.1" @@ -38,10 +43,10 @@ tera = "~1.18.1" #代替标准库的锁 parking_lot = "~0.12.*" -fluent-syntax="~0.11.*" +fluent-syntax = "~0.11.*" fluent = "~0.16.*" -unic-langid={version="~0.9.*",features=["unic-langid-macros"]} -intl-memoizer="~0.5.*" +unic-langid = { version = "~0.9.*", features = ["unic-langid-macros"] } +intl-memoizer = "~0.5.*" async-trait = "~0.1.*" @@ -53,17 +58,15 @@ rand = "~0.8.*" config = "~0.13.*" -hashlink="~0.8.*" +hashlink = "~0.8.*" hostname = "~0.3.*" chrono = "0.4.19" - - rs-snowflake = "0.6.0" crc32fast = "1.3.2" -num_cpus = "1.15.0" \ No newline at end of file +num_cpus = "1.15.0" diff --git a/server/lsys-logger/Cargo.toml b/server/lsys-logger/Cargo.toml index c120235..d1382f1 100644 --- a/server/lsys-logger/Cargo.toml +++ b/server/lsys-logger/Cargo.toml @@ -17,7 +17,7 @@ sqlx = { version = "~0.6.3", features = [ "runtime-tokio-native-tls", "offline", ] } -sqlx-model = { version = "~0.2.0", default-features = false, features = [ +sqlx-model = { version = "0.2.0", default-features = false, features = [ "sqlx-mysql", ] } diff --git a/server/lsys-notify/Cargo.toml b/server/lsys-notify/Cargo.toml index f45d820..985385d 100644 --- a/server/lsys-notify/Cargo.toml +++ b/server/lsys-notify/Cargo.toml @@ -38,6 +38,6 @@ sqlx = { version = "~0.6.3", features = [ "runtime-tokio-native-tls", "offline", ] } -sqlx-model = { version = "~0.2.0", default-features = false, features = [ +sqlx-model = { version = "0.2.0", default-features = false, features = [ "sqlx-mysql", ] } diff --git a/server/lsys-rbac/Cargo.toml b/server/lsys-rbac/Cargo.toml index 6538839..227b9de 100644 --- a/server/lsys-rbac/Cargo.toml +++ b/server/lsys-rbac/Cargo.toml @@ -7,24 +7,30 @@ edition = "2021" [dependencies] -lsys-core = { path = "../lsys-core"} -lsys-logger = { path = "../lsys-logger"}#path 替换为 :,git = "https://github.com/shanliu/lsys" -sqlx = {version = "~0.6.3",features = [ "mysql","runtime-tokio-native-tls","offline"]} -sqlx-model = {version = "~0.2.0", default-features=false,features = ["sqlx-mysql"]} - - -tokio = {version="~1.28.0", features = ["macros"]} +lsys-core = { path = "../lsys-core" } +lsys-logger = { path = "../lsys-logger" } #path 替换为 :,git = "https://github.com/shanliu/lsys" +sqlx = { version = "~0.6.3", features = [ + "mysql", + "runtime-tokio-native-tls", + "offline", +] } +sqlx-model = { version = "0.2.0", default-features = false, features = [ + "sqlx-mysql", +] } + + +tokio = { version = "~1.28.0", features = ["macros"] } deadpool-redis = { version = "0.12" } -redis = { version = "~0.23" } +redis = { version = "~0.23" } -serde={ version = "1.0.*" } -serde_json="1.0.*" +serde = { version = "1.0.*" } +serde_json = "1.0.*" fluent = "~0.16.*" -fluent-syntax="~0.11.*" +fluent-syntax = "~0.11.*" -tracing = {version="~0.1.*"} +tracing = { version = "~0.1.*" } config = "~0.13.*" @@ -32,4 +38,4 @@ config = "~0.13.*" async-trait = "~0.1.*" -async-recursion = "~1.0.0" \ No newline at end of file +async-recursion = "~1.0.0" diff --git a/server/lsys-sender/Cargo.toml b/server/lsys-sender/Cargo.toml index ea5f976..3e0caa8 100644 --- a/server/lsys-sender/Cargo.toml +++ b/server/lsys-sender/Cargo.toml @@ -30,7 +30,7 @@ sqlx = { version = "~0.6.3", features = [ "runtime-tokio-native-tls", "offline", ] } -sqlx-model = { version = "~0.2.0", default-features = false, features = [ +sqlx-model = { version = "0.2.0", default-features = false, features = [ "sqlx-mysql", ] } diff --git a/server/lsys-setting/Cargo.toml b/server/lsys-setting/Cargo.toml index e877868..9a58b96 100644 --- a/server/lsys-setting/Cargo.toml +++ b/server/lsys-setting/Cargo.toml @@ -18,7 +18,7 @@ sqlx = { version = "~0.6.3", features = [ "runtime-tokio-native-tls", "offline", ] } -sqlx-model = { version = "~0.2.0", default-features = false, features = [ +sqlx-model = { version = "0.2.0", default-features = false, features = [ "sqlx-mysql", ] } diff --git a/server/lsys-user/Cargo.toml b/server/lsys-user/Cargo.toml index 0f74531..03a57b6 100644 --- a/server/lsys-user/Cargo.toml +++ b/server/lsys-user/Cargo.toml @@ -18,7 +18,7 @@ sqlx = { version = "~0.6.3", features = [ "runtime-tokio-native-tls", "offline", ] } -sqlx-model = { version = "~0.2.0", default-features = false, features = [ +sqlx-model = { version = "0.2.0", default-features = false, features = [ "sqlx-mysql", ] }