babel_nar_cli 0.3.1

Command Line Interface (CLI) of BabelNAR.rs
Documentation
[package]

name = "babel_nar_cli"

version = "0.3.1"

edition = "2021"

description = """
Command Line Interface (CLI) of BabelNAR.rs
"""



readme = "README.md" # ! ⚠️↓crates.io的每个关键词长度不能超过20字符

keywords = ["NARS", "NAVM", "BabelNAR"]



license = "MIT OR Apache-2.0"

categories = [

    "command-line-utilities", # CLI应用

] # 🔗<https://crates.io/category_slugs>

repository = "https://github.com/ARCJ137442/BabelNAR-CLI.rs"



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



## 必要的依赖 ##





[dependencies]

# 用于错误处理

anyhow = "1.0.88"

clearscreen = "3.0.0"



[dependencies.nar_dev_utils]

# 【2024-03-13 21:17:55】实用库现在独立为`nar_dev_utils`

version = "0" # * ✅现已发布至`crates.io`

# *🚩【2024-03-21 09:26:38】启用所有

# path = "../NAR-dev-util"

# git = "https://github.com/ARCJ137442/NAR-dev-util"

# ! 【2024-03-23 19:19:01】似乎Rust-Analyzer无法获取私有仓库数据

features = [ "bundled" ] # 启用所有特性



[dependencies.narsese]

# ! 本地依赖可以不添加版本

# 载入Narsese API,引入其中所有部分

version = "0.21" # * ✅现已发布至`crates.io`

# path = "../Narsese.rs"

# git = "https://github.com/ARCJ137442/Narsese.rs"

# ! 【2024-03-23 19:19:01】似乎Rust-Analyzer无法获取私有仓库数据

features = [

    # * 📌承继NAVM

    "lexical_narsese",

]



[dependencies.navm]

# ! 本地依赖可以不添加版本

# 载入NAVM API,引入「非公理虚拟机」模型

# path = "../NAVM.rs"

version = "0.17" # 现已发布于`crates.io`

# git = "https://github.com/ARCJ137442/NAVM.rs"

# ! 【2024-03-23 19:19:01】似乎Rust-Analyzer无法获取私有仓库数据

features = [] # ! 【2024-03-21 09:24:51】暂时没有特性



[dependencies.babel_nar]

version = "0.26"

features = [ # * 🚩【2024-09-12 18:04:39】目前锁定以下两个特性

    "cin_implements", # 各大CIN的NAVM实现

    "test_tools", # 测试工具集

]



## 依赖特性的可选依赖 ##



# Rust版本的正则表达式

# * 🎯用于解析提取NARS输出

#   * 📄OpenNARS、ONA、PyNARS

[dependencies.regex]

version = "1.10.6"



# 命令行支持/彩色终端

[dependencies.colored]

version = "2.1.0"



# 命令行支持/(H)JSON配置解析

[dependencies.serde]

version = "1.0.210"

features = ["derive"]



[dependencies.serde_json]

version = "1.0.128"



[dependencies.deser-hjson]

version = "2.2.4"



# 命令行支持/Websocket服务

[dependencies.ws]

version = "0.9.2"



# 命令行支持/命令行参数解析

[dependencies.clap]

version = "4.5.17"

features = ["derive"]





### 定义库的特性 ###

[features]



# * 🚩【2024-09-12 16:27:50】暂时没有需要开关的特性

# ## 默认启用的特性 ##

# default = [ "bundled" ] # * 默认启用所有(可选禁用)

# ## 大杂烩 ##

# bundled = []





## 配置编译检查 ##



# 有关Clippy的参考:

# * 🔗<https://doc.rust-lang.org/clippy/configuration.html>

[lints.clippy]



# 📌【2024-08-25 00:31:01】允许文档注释中出现以下情况

# ```markdown

# * 📝这是一个笔记

# ? 💭这是一个问题

#   * 📍这是问题下的一个小点

# ```

doc_lazy_continuation = "allow"