Cargo Features

[dependencies]
babel_nar = { version = "0.26.3", default-features = false, features = ["bundled", "test_tools", "cin_implements", "opennars", "ona", "pynars", "nars_python", "openjunars"] }

定义库的特性

default = bundled

默认启用的特性
* 默认启用所有(可选禁用)

bundled default = cin_implements, test_tools

大杂烩

test_tools bundled = pest, pest_derive

各个独立的特性

测试工具集

cin_implements bundled = nars_python, ona, openjunars, opennars, pynars

具体接口实现(虚拟机启动器)
* 📌若支持「NAVM指令-NAVM输出JSON」语法,则直接使用「原生转译器」而无需在此定义
✅OpenNARS
✅ONA
✅PyNARS
✅NARS-Python(不稳定)
✅OpenJunars(不稳定)

opennars cin_implements? = pest, pest_derive, regex

✅OpenNARS接口

ona cin_implements? = pest, pest_derive, regex

✅ONA接口

pynars cin_implements? = regex

✅PyNARS接口

nars_python cin_implements? = lazy_static

✅NARS-Python接口(不稳定)

openjunars cin_implements?

✅OpenJunars接口(不稳定)

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

Cargo文档参考:https://rustwiki.org/zh-CN/cargo/reference/manifest.html

必要的依赖

lazy_static nars_python?

Affects dialect::format_in_nars_python

pest ona? opennars? test_tools?
pest_derive ona? opennars? test_tools?
regex ona? opennars? pynars?