(projectName: string)
| 51 | }; |
| 52 | |
| 53 | export const cargoProjectVersion = (projectName: string): string => { |
| 54 | return execSync( |
| 55 | `cargo metadata --format-version 1 | jq -r '.packages[] | select(.name == "${projectName}") | .version'`, |
| 56 | ) |
| 57 | .toString() |
| 58 | .trim(); |
| 59 | }; |
| 60 | |
| 61 | export const readFileIntoUint8Array = async (filePath: string): Promise<Uint8Array> => { |
| 62 | const buffer = await readFile(filePath); |
no test coverage detected