MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / generate

Function generate

builders/cargo.py:29–41  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

27
28
29def generate(env):
30 env['CARGO'] = _detect(env)
31 env['CARGOFLAGS'] = []
32 env['MANIFEST'] = []
33
34 rust_cargo_builder = Builder(
35 action=['"$CARGO" build $CARGOFLAGS --bins --manifest-path $MANIFEST',
36 Move('$TARGET$PROGSUFFIX',
37 '$SOURCE_DIR/target/debug/main$PROGSUFFIX')
38 ],
39 suffix='$PROGSUFFIX',
40 )
41 env.Append(BUILDERS={'cargo': rust_cargo_builder})

Callers

nothing calls this directly

Calls 1

_detectFunction · 0.70

Tested by

no test coverage detected