Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
shanliu committed Dec 17, 2023
1 parent 327bc45 commit 37122bb
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 50 deletions.
35 changes: 21 additions & 14 deletions server/examples/lsys-web-module-oauth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}
sqlx = { version = "~0.6.3", features = [
"mysql",
"runtime-tokio-native-tls",
"offline",
] }
sqlx-model = { version = "0.2.0", default-features = false, features = [
"sqlx-mysql",
] }
39 changes: 21 additions & 18 deletions server/lsys-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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.*"
Expand All @@ -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"
num_cpus = "1.15.0"
2 changes: 1 addition & 1 deletion server/lsys-logger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
] }

Expand Down
2 changes: 1 addition & 1 deletion server/lsys-notify/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
] }
32 changes: 19 additions & 13 deletions server/lsys-rbac/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,35 @@ 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.*"


async-trait = "~0.1.*"

async-recursion = "~1.0.0"
async-recursion = "~1.0.0"
2 changes: 1 addition & 1 deletion server/lsys-sender/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
] }

Expand Down
2 changes: 1 addition & 1 deletion server/lsys-setting/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
] }

Expand Down
2 changes: 1 addition & 1 deletion server/lsys-user/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
] }

Expand Down

0 comments on commit 37122bb

Please sign in to comment.