Skip to content

Commit d111a1e

Browse files
author
Martin Larralde
committed
Patch tomlgen to stop generating crate names with dots
1 parent 238ed83 commit d111a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools_rust/tomlgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def build_cargo_toml(self, ext):
143143

144144
# Create a small package section
145145
toml.add_section("package")
146-
toml.set("package", "name", quote(ext.name))
146+
toml.set("package", "name", quote(ext.name.replace('.', '-')))
147147
toml.set("package", "version", quote(dist.get_version()))
148148
toml.set("package", "authors", self.authors)
149149
toml.set("package", "publish", "false")

0 commit comments

Comments
 (0)