Skip to content

Commit 078480d

Browse files
authored
Configure maturin and uv so uv run can be used to work on uv itself (#19461)
The default is release builds otherwise! which is why it was so slow
1 parent ba86bb9 commit 078480d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Discord = "https://discord.gg/astral-sh"
4444

4545
[tool.maturin]
4646
bindings = "bin"
47+
editable-profile = "dev"
4748
manifest-path = "crates/uv/Cargo.toml"
4849
module-name = "uv"
4950
python-source = "python"
@@ -110,6 +111,15 @@ docker = [
110111
"cargo-zigbuild>=0.19.8",
111112
]
112113

114+
[tool.uv]
115+
cache-keys = [
116+
{ file = "pyproject.toml" },
117+
{ file = "Cargo.toml" },
118+
{ file = "Cargo.lock" },
119+
{ file = "crates/**/*.rs" },
120+
{ file = "crates/**/Cargo.toml" },
121+
]
122+
113123
[tool.uv.dependency-groups]
114124
docs = { requires-python = ">=3.12" }
115125
docker = { requires-python = ">=3.12" }

0 commit comments

Comments
 (0)