background picture of the home page

Hi,Friend

Hi!

IronClaw-CLI初始化

一. 介绍 1. 介绍 //CLI命令主要是通过clap 的 #[derive(Subcommand)]按子命令解析去实现 //首先解析然后去匹配command的枚举 let cli = Cli::parse(); let enable_non_cli = non_cli_chan

thumbnail of the cover of the post

IronClaw-变量加载

一. 加载环境变量 一共分为两个阶段,一个是Tokio 启动前(单线程,std::env::set_var 安全),另一个是Tokio 启动后(多线程,不能再碰 set_var)。 1. 阶段一:Tokio 启动前(单线程,std::env::set_var 安全) fn main() -> any

thumbnail of the cover of the post

IronClaw重点分析

一. 胶水+crates 二. LLM链式 三. 安全层 四. Htpp安全请求 共享(模式匹配+透明刷新)+secrteStore 五. 向量化缓存

thumbnail of the cover of the post

Rust基础2

十五. 迭代器与闭包 1. 闭包:能够捕获环境的匿名函数 Rust 中的闭包是一种匿名函数,它可以被存入变量或作为参数传递给其他函数。你可以在一个地方创建闭包,然后在不同的上下文中调用它来执行运算。与普通函数不同,闭包的关键特性在于它能够从其被定义的作用域中捕获并使用外部环境的值。后续将展示如何利用

thumbnail of the cover of the post

Rust基础

参考书籍:《Rust权威指南》第2版 Steve Klabnik Carol Nichols 著 毛靖凯 译 一. Cargo 1. 基础命令 cargo new 项目名称 cargo build 编译 cargo run 运行 cargo check检查代码是否能运行。

thumbnail of the cover of the post

Rust安装

一. Homebrew Homebrew是macOS和Linux上缺失的软件包管理器,可以理解为命令行版本的应用商店。 终端执行下面命令,一键安装。 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/insta

thumbnail of the cover of the post