MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / rust_targets

Function rust_targets

scripts/rust.py:84–94  ·  view source on GitHub ↗

Returns the supported rust targets for the current environment.

()

Source from the content-addressed store, hash-verified

82
83
84def 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

Callers 2

buildFunction · 0.90
rust.pyFile · 0.85

Calls 1

get_target_tripleFunction · 0.85

Tested by

no test coverage detected