安装maturin

BASH
pip install maturin
点击展开查看更多

初始化项目

BASH
maturin init --bindings pyo3
点击展开查看更多

执行命令后将会自动初始化Rust项目,并自动添加依赖

版权声明

作者: Chaim

链接: https://chaim.eu.org/posts/%E4%BD%BF%E7%94%A8pyo3%E8%BF%9B%E8%A1%8Cpython%E6%A8%A1%E5%9E%8B%E5%BC%80%E5%8F%91/

许可证: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

开始搜索

输入关键词搜索文章内容

↑↓
ESC
⌘K 快捷键