Skip to content
Merged
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: 10 additions & 2 deletions guide/src/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,20 @@ When the `[project]` section is not present, maturin will populate metadata from

When the `[project]` section is present, maturin will merge metadata from `Cargo.toml` and `pyproject.toml`, `pyproject.toml` takes precedence over `Cargo.toml`.
Per specification, maturin is not allowed to populate fields that are not present in `project.dynamic` list when the `[project]` section is present.
For example, to use the Rust crate version as the Python package version, you need to add `version` to the `project.dynamic` list:
For example, to use the Rust crate version as the Python package version, you need to add `version` to the `project.dynamic` list and so forth:

```toml
[project]
name = "my-awesome-project"
dynamic = ["version"]
dynamic = [
"version",
"description",
"readme",
"urls",
"authors",
"license",
"keywords",
]
```

## Add Python dependencies
Expand Down