edgedb / edgedb-rust

The official Rust binding for EdgeDB
https://edgedb.com
Apache License 2.0
209 stars 26 forks source link

Excess fields in Rust type causes hard panic #297

Open jollygreenlaser opened 4 months ago

jollygreenlaser commented 4 months ago

Steps to Reproduce:

struct Thing {
  a: String,
  b: String,
}

select {
  a := 'oops'
}

This will hard panic, completely killing the entire tokio/axum instance (not just the thread dealing with the request)

This should at worst give the same DescriptorMismatch as https://github.com/edgedb/edgedb-rust/issues/282 (and ideally should give something better, per that other issue)