添加说明文档,为cangjie层添加单元测试

This commit is contained in:
2026-03-21 16:03:24 +08:00
parent a4196e53f9
commit 8c216ef9e3
19 changed files with 432 additions and 50 deletions

View File

@ -1,16 +1,21 @@
[package]
name = "LuaCangjie_api"
name = "luacangjie_api"
version = "0.0.1"
description = "Lua C API bindings for Cangjie"
cjc-version = "0.49.1"
# 【修正】更新为您的实际编译器版本
cjc-version = "1.1.0"
license = "GPLv3"
output-type ="executable"
output-type ="dynamic"
[dependencies]
# 【修正】显式声明测试依赖,版本号与 cjc-version 一致
[test-dependencies]
[ffi.c]
luacjapi.path = "./lib/build"
[scripts]
pre-build = "cjpm run build.cj pre-build"
post-build = "cjpm run build.cj post-build"
pre-clean = "cjpm run build.cj pre-clm ean"
pre-clean = "cjpm run build.cj pre-clean"