Returns the supported rust targets for the current environment.
()
| 82 | |
| 83 | |
| 84 | def rust_targets() -> List[str]: |
| 85 | """ |
| 86 | Returns the supported rust targets for the current environment. |
| 87 | """ |
| 88 | match platform.system(): |
| 89 | case "Darwin": |
| 90 | return ["x86_64-apple-darwin", "aarch64-apple-darwin"] |
| 91 | case "Linux": |
| 92 | return [get_target_triple()] |
| 93 | case other: |
| 94 | raise ValueError(f"Unsupported platform {other}") |
| 95 | |
| 96 | |
| 97 | @cache |
no test coverage detected