Skip to content

Commit

Permalink
Cleanup Cargo.toml gen
Browse files Browse the repository at this point in the history
  • Loading branch information
goffrie committed Feb 12, 2024
1 parent 1f10665 commit f116b39
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pb-jelly-gen/codegen/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1974,11 +1974,11 @@ def get_cargo_toml_file(self, derive_serde: bool) -> Iterator[Tuple[Text, Text]]
features.update({"compact_str": 'features=["bytes", "serde"]'})

versions = {
"lazy_static": ' version = "1.4.0" ',
"pb-jelly": ' version = "0.0.16" ',
"serde": ' version = "1.0" ',
"bytes": ' version = "1.0" ',
"compact_str": ' version = "0.5" ',
"lazy_static": 'version = "1.4.0"',
"pb-jelly": 'version = "0.0.16"',
"serde": 'version = "1.0"',
"bytes": 'version = "1.0"',
"compact_str": 'version = "0.5"',
}

deps_lines = []
Expand All @@ -1991,7 +1991,7 @@ def get_cargo_toml_file(self, derive_serde: bool) -> Iterator[Tuple[Text, Text]]
else:
fields.append('path = "../{dep}"'.format(dep=dep))
deps_lines.append(
"{dep} = {{{fields}}}".format(dep=dep, fields=",".join(fields))
"{dep} = {{ {fields} }}".format(dep=dep, fields=", ".join(fields))
)

targets = CARGO_TOML_TEMPLATE.format(
Expand Down

0 comments on commit f116b39

Please sign in to comment.