# hm_rust **Repository Path**: hczhhm/hm_rust ## Basic Information - **Project Name**: hm_rust - **Description**: ArkTS调用Rust代码demo - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-11-04 - **Last Updated**: 2025-09-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hm_rust ## 介绍 ArkTS调用Rust代码demo ## 使用说明 1. 在rust_add目录下执行 ohrs build 命令生成 dist 目录. 2. 在entry目录下新建libs文件夹,并将dist目录下文件拷贝到libs文件内,并在libs目录下新建oh-package.json5文件并编辑. 3. 编辑entry目录下的oh-package.json5文件,添加so包. 4. 运行鸿蒙项目,点击add按钮,得出运算结果. 5. 上面为基本流程,demo内已经配置好. 6. 具体过程见文章:.