Skip to content

Commit 37434c2

Browse files
zhangguofuGary.Zhang
andauthored
add vector, a a dynamic, type-agnostic container package for RT-Thread (#1941)
* upload vector package * fix vector index error * set VER_SHA as main to fix compile issue --------- Co-authored-by: Gary.Zhang <gary.zhang@cygia.com>
1 parent a88148f commit 37434c2

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

tools/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
menu "tools packages"
22

3+
source "$PKGS_DIR/packages/tools/vector/Kconfig"
34
source "$PKGS_DIR/packages/tools/CmBacktrace/Kconfig"
45
source "$PKGS_DIR/packages/tools/MCoreDump/Kconfig"
56
source "$PKGS_DIR/packages/tools/EasyFlash/Kconfig"

tools/vector/Kconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Kconfig file for package vector
2+
menuconfig PKG_USING_VECTOR
3+
bool "vector: a dynamic, type-agnostic container."
4+
default n
5+
6+
if PKG_USING_VECTOR
7+
config PKG_VECTOR_PATH
8+
string
9+
default "/packages/tools/vector"
10+
11+
choice
12+
prompt "Version"
13+
default PKG_USING_VECTOR_LATEST_VERSION
14+
help
15+
Select the package version
16+
17+
config PKG_USING_VECTOR_LATEST_VERSION
18+
bool "latest"
19+
20+
endchoice
21+
22+
config PKG_VECTOR_VER
23+
string
24+
default "latest" if PKG_USING_VECTOR_LATEST_VERSION
25+
26+
endif

tools/vector/package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "vector",
3+
"description": "vector is a dynamic, type-agnostic container module.",
4+
"description_zh": "Vector 是一个为 RT-Thread 设计的通用向量容器模块,提供动态大小的数组功能,支持不同数据类型的存储和操作。",
5+
"enable": "PKG_USING_VECTOR",
6+
"keywords": [
7+
"vector"
8+
],
9+
"category": "tools",
10+
"author": {
11+
"name": "zhangguofu",
12+
"email": "cleancode@163.com",
13+
"github": "Gary.Zhang"
14+
},
15+
"license": "MIT",
16+
"repository": "https://github.com/zhangguofu/vector",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/zhangguofu/vector#readme",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "latest",
23+
"URL": "https://github.com/zhangguofu/vector.git",
24+
"filename": "vector.zip",
25+
"VER_SHA": "main"
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)