[package] name = "narust-158" version = "0.3.1" edition = "2021" description = """ A Rust reimplementation of OpenNARS 1.5.8 """ readme = "README.md" keywords = ["NARS", "Non-Axiomatic-Logic", "OpenNARS"] license = "MIT OR Apache-2.0" categories = [] # 🔗 repository = "https://github.com/ARCJ137442/narust-158" # 默认运行目标为交互式终端 # 参考报错信息`cargo r`: `cargo run` could not determine which binary to run. Use the `--bin` option to specify a binary, or the `default-run` manifest key. default-run = "narust_158_shell" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] anyhow = "1.0.86" rand = "0.8.5" serde_json = "1.0.122" thiserror = "2.0.0" [dependencies.serde] version = "1.0.206" features = ["rc"] # ! 引入不完备的「共享引用」实现,后续将通过「归一化」的方式修复 # 用于开发NARS的实用工具 [dependencies.nar_dev_utils] version = "0.44.0" features = ["bundled"] # Narsese支持:API、枚举Narsese & 词法Narsese [dependencies.narsese] version = "0.21" features = [ "enum_narsese", "lexical_narsese", ] # NAVM:统IO模型 [dependencies.navm] version = "0.17" features = ["bundled"] # 用于方言解析的词法解析器 [dependencies.pest] version = "2.7.11" optional = true # 用于方言解析的词法解析器 [dependencies.pest_derive] version = "2.7.11" optional = true [features] # 默认 / 所有 default = ["all"] all = [ "dialect_parser" ] # 「方言解析器」 # * 💡最初启发自「Narsese呈现」中简单的「名称+符号+括号」语法 # * 📌目前使用`pest`解析器实现 # * ⚠️对NARS实现可有可无,若不需要可禁用 dialect_parser = [ # 📌依赖`pest`解析器 "dep:pest", "dep:pest_derive" ] # 有关二进制构建目标的参考: # * 🔗 # * ⚠️【2024-08-19 14:28:15】建议name使用下划线:所有短横线将被重命名为下划线 [[bin]] name = "narust_158_shell" path = "src/bin/shell/main.rs" [[bin]] name = "narust_158_batch" path = "src/bin/batch/main.rs" # 有关Clippy的参考: # * 🔗 [lints.clippy] # 📌【2024-08-25 00:31:01】允许文档注释中出现以下情况 # ```markdown # * 📝这是一个笔记 # ? 💭这是一个问题 # * 📍这是问题下的一个小点 # ``` doc_lazy_continuation = "allow"