建立了基础的文件结构

This commit is contained in:
:NoBody: committed 2026-03-18 21:06:35 +08:00
1 parent 5ae6a94b13
commit 72795b32a6
19 files changed
+2167

No files matched your search

+1
View File
@@ -0,0 +1 @@
flake-profile-1-link
+1
View File
@@ -0,0 +1 @@
/nix/store/8l5iic7kj6fjdgzip9p55h65j9n1yq87-nix-shell-env
Generated
+1996
View File
File diff suppressed because it is too large. Load diff
+4
View File
@@ -4,3 +4,7 @@ version = "0.1.0"
edition = "2024" edition = "2024"
[dependencies] [dependencies]
reqwest = "0.13.2"
serde = {version="1.0.228",features=["derive"]}
sled = "0.34.7"
tokio = {version="1.50.0",features=["full"]}
+15
View File
@@ -0,0 +1,15 @@
# 项目说明
签到系统,采用Sled作为数据库后端,通过matrix机器人来签到
# 文件结构说明
- define.rs 定义程序基础的trait
- ./api 实现外部程序调用本程序的api
- ./db 实现本程序内部的数据库,存储签到数据
- ./sender 实现签到反馈
- config.rs 读取配置文件
- init.rs 程序基础的初始化逻辑
# TODO
- [] 实现基础Sled DB的签到信息记录功能
- [] 实现matrix机器人收发
- [] 实现每日签到统计
- [] 实现每月签到统计
Generated
+137
View File
@@ -0,0 +1,137 @@
{
"nodes": {
"fenix": {
"inputs": {
"nixpkgs": [
"naersk",
"nixpkgs"
],
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1752475459,
"narHash": "sha256-z6QEu4ZFuHiqdOPbYss4/Q8B0BFhacR8ts6jO/F/aOU=",
"owner": "nix-community",
"repo": "fenix",
"rev": "bf0d6f70f4c9a9cf8845f992105652173f4b617f",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "fenix",
"type": "github"
}
},
"naersk": {
"inputs": {
"fenix": "fenix",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1769799857,
"narHash": "sha256-88IFXZ7Sa1vxbz5pty0Io5qEaMQMMUPMonLa3Ls/ss4=",
"owner": "nix-community",
"repo": "naersk",
"rev": "9d4ed44d8b8cecdceb1d6fd76e74123d90ae6339",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "master",
"repo": "naersk",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1752077645,
"narHash": "sha256-HM791ZQtXV93xtCY+ZxG1REzhQenSQO020cu6rHtAPk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "be9e214982e20b8310878ac2baa063a961c1bdf6",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1773628058,
"narHash": "sha256-hpXH0z3K9xv0fHaje136KY872VT2T5uwxtezlAskQgY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f8573b9c935cfaa162dd62cc9e75ae2db86f85df",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"naersk": "naersk",
"nixpkgs": "nixpkgs_2",
"utils": "utils"
}
},
"rust-analyzer-src": {
"flake": false,
"locked": {
"lastModified": 1752428706,
"narHash": "sha256-EJcdxw3aXfP8Ex1Nm3s0awyH9egQvB2Gu+QEnJn2Sfg=",
"owner": "rust-lang",
"repo": "rust-analyzer",
"rev": "591e3b7624be97e4443ea7b5542c191311aa141d",
"type": "github"
},
"original": {
"owner": "rust-lang",
"ref": "nightly",
"repo": "rust-analyzer",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
View File
Whitespace-only changes.
View File
Whitespace-only changes.
+3
View File
@@ -0,0 +1,3 @@
pub mod grpc;
pub mod restful;
pub mod define;
View File
Whitespace-only changes.
View File
Whitespace-only changes.
View File
Whitespace-only changes.
+2
View File
@@ -0,0 +1,2 @@
pub mod sled_db;
pub mod define;
View File
Whitespace-only changes.
View File
Whitespace-only changes.
+5
View File
@@ -0,0 +1,5 @@
pub mod api;
pub mod config;
pub mod db;
pub mod init;
pub mod sender;
+1
View File
@@ -0,0 +1 @@
View File
Whitespace-only changes.
+2
View File
@@ -0,0 +1,2 @@
pub mod define;
pub mod matrix;