Skip to content

Commit 710f36e

Browse files
committed
chore: add copilot instructions
1 parent d5eaf84 commit 710f36e

File tree

10 files changed

+922
-23
lines changed

10 files changed

+922
-23
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
## 全局规则
2+
3+
- 使用中文进行思考和交流,使用英文进行编码和注释
4+
- 在完成任务前验证产生的编辑是否有错误
5+
6+
## 修改 /ui/ 目录下的文件
7+
18
- 不要直接用 fetch 获取资源,而是使用 ui/src/api/v1.ts 来获取数据。
29
- 使用 2 spaces 缩进。使用单引号。
3-
- 在完成任务前验证是否有 Linter 或者 TypeScript 错误
410
- 对于动态的 className,优先使用 clsx 来生成。只有遇到可能覆盖的情况下才使用 `import { cn } from '@/lib/utils'`。cn 底层用的是 twMerge,性能上会比 clsx 差一些。

Cargo.lock

Lines changed: 159 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ trojan = { path = "./protocol/trojan", optional = true }
6262
rpc = { path = "./protocol/rpc", optional = true }
6363
raw = { path = "./protocol/raw", optional = true }
6464
obfs = { path = "./protocol/obfs", optional = true }
65+
hysteria2 = { path = "./protocol/hysteria2", optional = true }
6566

6667
console-subscriber = { version = "0.1.3", optional = true }
6768

@@ -90,7 +91,16 @@ mimalloc = { version = "0.1", optional = true }
9091
rusty-hook = "0.11.0"
9192

9293
[features]
93-
default = ["ss", "trojan", "rpc", "obfs", "api_server", "rhai", "raw"]
94+
default = [
95+
"ss",
96+
"trojan",
97+
"rpc",
98+
"obfs",
99+
"api_server",
100+
"rhai",
101+
"raw",
102+
"hysteria2",
103+
]
94104
api_server = [
95105
"axum",
96106
"jsonrpc-core",
@@ -124,6 +134,7 @@ members = [
124134
"protocol/rpc",
125135
"protocol/raw",
126136
"protocol/obfs",
137+
"protocol/hysteria2",
127138
"ffi",
128139
]
129140

0 commit comments

Comments
 (0)