From 6a8fade3eff0c659f2bf6256ec07e098e5ee1311 Mon Sep 17 00:00:00 2001 From: ARCJ137442 <61109168+ARCJ137442@users.noreply.github.com> Date: Fri, 13 Sep 2024 01:21:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20:sparkles:=20=E6=96=B0=E5=A2=9ENARust-1?= =?UTF-8?q?58=E8=BF=90=E8=A1=8C=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 直接使用「原生」接口,对接NARust-158 batch --- Cargo.toml | 2 +- build.bat | 1 + config_public/cin_narust_158.hjson | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 config_public/cin_narust_158.hjson diff --git a/Cargo.toml b/Cargo.toml index f7fecca..fa4be82 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "babel_nar_cli" -version = "0.1.1" +version = "0.2.0" edition = "2021" description = """ Command Line Interface (CLI) of BabelNAR.rs diff --git a/build.bat b/build.bat index 657981c..d3fea85 100644 --- a/build.bat +++ b/build.bat @@ -26,6 +26,7 @@ copy .\executables\ONA.exe .\dist\executables\ONA.exe copy .\executables\opennars-158-shell.jar .\dist\executables\opennars-158-shell.jar copy .\executables\opennars-304-T-modified.jar .\dist\executables\opennars-304-T-modified.jar copy .\executables\opennars-matriangle-test.log.json .\dist\executables\opennars-matriangle-test.log.json +copy .\executables\narust_158_batch.exe .\dist\executables\narust_158_batch.exe echo Build Successfull! sleep 1 diff --git a/config_public/cin_narust_158.hjson b/config_public/cin_narust_158.hjson new file mode 100644 index 0000000..b0fa328 --- /dev/null +++ b/config_public/cin_narust_158.hjson @@ -0,0 +1,15 @@ +#hjson +// * 🎯用于测试NARust-158 +// * ✨纯Rust编写的完整OpenNARS 1.5.8复刻版本 +{ + description: NARust-158(纯Rust编写,支持原生接口) + translators: native + command: { + // * ⚠️必须前缀`./`以指定是「启动当前工作目录下的exe文件」 + cmd: ./narust_158_batch.exe + cmdArgs: [] + // 启动目录 + currentDir: ./../executables + } + autoRestart: true +} \ No newline at end of file