(&self)
| 209 | } |
| 210 | |
| 211 | pub async fn extract_schema(&self) -> ModuleDef { |
| 212 | // TODO: extract_schema should accept &[u8] |
| 213 | let boxed_bytes: Box<[u8]> = self.program_bytes()[..].into(); |
| 214 | spacetimedb::host::extract_schema(boxed_bytes, self.host_type) |
| 215 | .await |
| 216 | .unwrap() |
| 217 | } |
| 218 | |
| 219 | pub fn extract_schema_blocking(&self) -> ModuleDef { |
| 220 | start_runtime().block_on(self.extract_schema()) |
no test coverage detected