> [!INFO] maturin
> PyO3의 프로젝트 중 하나로, PyO3를 기반으로 Rust 코드를 Python 패키지(`.whl`)로 빌드하고 설치해주는 도구입니다.
> ```
> Rust 컴파일 → 네이티브 라이브러리 생성 → Python 패키지 구조화
> ```
## help 명령어 출력
```shell
$ maturin help
Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages
Usage: maturin [OPTIONS] <COMMAND>
Commands:
build Build the crate into python packages
publish Build and publish the crate as python packages to pypi
list-python Search and list the available python installations
develop Install the crate as module in the current virtualenv
sdist Build only a source distribution (sdist) without compiling
init Create a new cargo project in an existing directory
new Create a new cargo project
generate-ci Generate CI configuration
upload Upload python packages to pypi
help Print this message or the help of the given subcommand(s)
```
## 기본 사용법
```shell
# 현재 환경에 개발 모드 설치
$ maturin develop
# .whl 파일 생성
$ maturin build
```
---
- [Github - PyO3/maturin](https://github.com/PyO3/maturin?tab=readme-ov-file#maturin)