Skip to content
Merged
Show file tree
Hide file tree
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
File renamed without changes.
3 changes: 2 additions & 1 deletion crates/codegen/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pub(super) fn print_lines(output: &mut Indenter, lines: &[&str]) {
}

pub const AUTO_GENERATED_PREFIX: &str = "// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB";
const GIT_HASH: &str = env!("GIT_HASH");

const AUTO_GENERATED_FILE_COMMENT: &[&str] = &[
"// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE",
Expand All @@ -72,7 +73,7 @@ pub(super) fn print_auto_generated_version_comment(output: &mut Indenter) {
output,
"// This was generated using spacetimedb cli version {} (commit {}).",
version::spacetimedb_lib_version(),
version::GIT_HASH
GIT_HASH
);
writeln!(output);
}
Expand Down
1 change: 0 additions & 1 deletion crates/lib/src/version.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const CLI_VERSION: &str = env!("CARGO_PKG_VERSION");
pub const GIT_HASH: &str = env!("GIT_HASH");

pub fn spacetimedb_lib_version() -> &'static str {
CLI_VERSION
Expand Down
Loading