Skip to content

Commit

Permalink
Add uuid codegen support
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Nov 2, 2022
1 parent de1ae6a commit 02b6cca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/build/manifest.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ serde_json = "1.0"
serde_yaml = "0.8"
tokio-util = \{ version = "0.4", features = ["codec"] }
url = "2.1"
uuid = \{ version = "^1.0", features = ["serde"] }
{{ if is_cli }}
anyhow = "1.0"
clap = \{ version = "2.33", features = ["yaml"] }
Expand Down
1 change: 1 addition & 0 deletions src/v2/codegen/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,7 @@ fn matching_unit_type(
Some(DataTypeFormat::Int64) => Some("i64"),
Some(DataTypeFormat::Float) => Some("f32"),
Some(DataTypeFormat::Double) => Some("f64"),
Some(DataTypeFormat::Uuid) => Some("uuid::Uuid"),
_ => match type_ {
Some(DataType::Integer) => Some("i64"),
Some(DataType::Number) => Some("f64"),
Expand Down

0 comments on commit 02b6cca

Please sign in to comment.