修改版本号机制
This commit is contained in:
parent
84c0426b05
commit
e0dbf7d21e
1279
Cargo.lock
generated
1279
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -8,17 +8,13 @@ edition = "2021"
|
|||||||
[features]
|
[features]
|
||||||
default = ["ica"]
|
default = ["ica"]
|
||||||
ica = ["dep:ed25519", "dep:ed25519-dalek", "dep:hex", "dep:rust_socketio"]
|
ica = ["dep:ed25519", "dep:ed25519-dalek", "dep:hex", "dep:rust_socketio"]
|
||||||
matrix = ["dep:ruma"]
|
matrix = ["dep:matrix-sdk", "dep:url"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
||||||
# matrix
|
# matrix
|
||||||
ruma = { version = "0.9.4", features = [
|
url = { version = "2.5.0", optional = true }
|
||||||
"client-api-c",
|
matrix-sdk = { version = "0.7.1", optional = true }
|
||||||
"client-ext-client-api",
|
|
||||||
"client-reqwest",
|
|
||||||
"rand",
|
|
||||||
], optional = true }
|
|
||||||
|
|
||||||
# ica
|
# ica
|
||||||
ed25519 = { version = "2.2.3", optional = true }
|
ed25519 = { version = "2.2.3", optional = true }
|
||||||
@ -29,12 +25,12 @@ rust_socketio = { version = "0.4.4", features = ["async"], optional = true }
|
|||||||
# data
|
# data
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
chrono = "0.4.34"
|
chrono = "0.4.35"
|
||||||
toml = "0.8.10"
|
toml = "0.8.11"
|
||||||
colored = "2.1.0"
|
colored = "2.1.0"
|
||||||
|
|
||||||
# runtime
|
# runtime
|
||||||
tokio = { version = "1.0", features = ["full"] }
|
tokio = { version = "1.36", features = ["full"] }
|
||||||
futures-util = "0.3.30"
|
futures-util = "0.3.30"
|
||||||
pyo3 = "0.20.3"
|
pyo3 = "0.20.3"
|
||||||
anyhow = { version = "1.0.81", features = ["backtrace"] }
|
anyhow = { version = "1.0.81", features = ["backtrace"] }
|
||||||
|
@ -19,7 +19,7 @@ class IcaStatus:
|
|||||||
此类并不存储信息, 所有方法都是实时获取
|
此类并不存储信息, 所有方法都是实时获取
|
||||||
"""
|
"""
|
||||||
@property
|
@property
|
||||||
def login(self) -> bool:
|
def qq_login(self) -> bool:
|
||||||
...
|
...
|
||||||
@property
|
@property
|
||||||
def online(self) -> bool:
|
def online(self) -> bool:
|
||||||
@ -43,7 +43,7 @@ class IcaStatus:
|
|||||||
def head_used(self) -> str:
|
def head_used(self) -> str:
|
||||||
...
|
...
|
||||||
@property
|
@property
|
||||||
def load_average(self) -> str:
|
def load(self) -> str:
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
@ -118,6 +118,12 @@ class IcaClient:
|
|||||||
@property
|
@property
|
||||||
def version() -> str:
|
def version() -> str:
|
||||||
...
|
...
|
||||||
|
@property
|
||||||
|
def ica_version() -> str:
|
||||||
|
"""shenbot ica 的版本号"""
|
||||||
|
@property
|
||||||
|
def matrix_version() -> str:
|
||||||
|
"""shenbot matrix 的版本号"""
|
||||||
|
|
||||||
def debug(self, message: str) -> None:
|
def debug(self, message: str) -> None:
|
||||||
"""向日志中输出调试信息"""
|
"""向日志中输出调试信息"""
|
||||||
|
@ -21,7 +21,7 @@ pub static mut MAIN_STATUS: status::BotStatus = status::BotStatus {
|
|||||||
pub type MainStatus = status::BotStatus;
|
pub type MainStatus = status::BotStatus;
|
||||||
|
|
||||||
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||||
pub const ICA_VERSION: &str = "0.5.2";
|
pub const ICA_VERSION: &str = "1.4.0";
|
||||||
pub const MATRIX_VERSION: &str = "0.1.0";
|
pub const MATRIX_VERSION: &str = "0.1.0";
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
Loading…
Reference in New Issue
Block a user