Skip to content

Commit 7b3f38f

Browse files
committed
[Rust] Use schema semantic version to populate Rust crate version.
1 parent fc50eba commit 7b3f38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public void generate() throws IOException
117117

118118
indent(writer, 0, "[package]\n");
119119
indent(writer, 0, "name = \"%s\"\n", namespace);
120-
indent(writer, 0, "version = \"0.1.0\"\n");
120+
indent(writer, 0, "version = \"%s\"\n", ir.semanticVersion());
121121
indent(writer, 0, "authors = [\"sbetool\"]\n");
122122
indent(writer, 0, "description = \"%s\"\n", ir.description());
123123
indent(writer, 0, "edition = \"2021\"\n\n");

0 commit comments

Comments
 (0)