Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
wangl-cc committed Dec 23, 2024
1 parent 3539b22 commit 978f00b
Show file tree
Hide file tree
Showing 6 changed files with 447 additions and 1 deletion.
148 changes: 147 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repository = "https://github.com/MaaAssistantArknights/maa-cli"

[workspace.dependencies]
maa-dirs = { path = "maa-dirs", version = "0.1.1" }
maa-rpc-api = { path = "maa-rpc-api", version = "0.1" }
maa-sys = { path = "maa-sys", version = "0.5.0" }
maa-types = { path = "maa-types", version = "0.1" }

Expand All @@ -27,6 +28,7 @@ flate2 = "1"
futures-util = "0.3.28"
git2 = "0.19"
indicatif = "0.17.7"
jsonrpsee = "0.24.7"
libloading = "0.8"
log = "0.4.20"
prettytable = { version = "0.10.0", default-features = false }
Expand Down
2 changes: 2 additions & 0 deletions maa-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ path = "src/main.rs"

[dependencies]
maa-dirs = { workspace = true }
maa-rpc-api = { workspace = true, features = ["client", "server"] }
maa-sys = { workspace = true, features = ["runtime"] }
maa-types = { workspace = true, features = ["serde"] }

Expand All @@ -56,6 +57,7 @@ flate2 = { workspace = true, optional = true }
futures-util = { workspace = true, optional = true }
git2 = { workspace = true, optional = true }
indicatif = { workspace = true, optional = true }
jsonrpsee = { workspace = true }
log = { workspace = true }
prettytable = { workspace = true }
reqwest = { workspace = true, features = ["blocking", "json"] }
Expand Down
19 changes: 19 additions & 0 deletions maa-rpc-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "maa-rpc-api"
version = "0.1.0"
edition = "2021"
license.workspace = true
homepage.workspace = true
repository.workspace = true

[features]
server = ["jsonrpsee/server-core"]
client = ["jsonrpsee/client-core"]

[dependencies]
chrono = { workspace = true, default-features = false, features = ["serde"] }
jsonrpsee = { workspace = true, features = ["macros"] }
log = { workspace = true, features = ["serde"] }
maa-types = { workspace = true, features = ["serde"] }
serde = { workspace = true }
serde_json = { workspace = true }
Loading

0 comments on commit 978f00b

Please sign in to comment.