Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions guide/src/project_layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,18 @@ my-rust-and-python-project
└── src
└── lib.rs
```

Since the `Cargo.toml` is not in the project root, you need to set `manifest-path`
in `pyproject.toml` so that maturin can find it, especially for source distribution
(`sdist`) builds:

**pyproject.toml**

```toml
[tool.maturin]
manifest-path = "rust/Cargo.toml"
```

#### Import Rust as a submodule of your project

If the Python module created by Rust has the same name as the Python package in a mixed Rust/Python project, IDEs might get confused.
Expand Down