fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
2bad96d9
cleanup
1"""Transition implementations for wasm-bindgen rust Rules""" 2 3def _wasm_bindgen_transition ( _settings , attr ): 4"""The implementation of the `wasm_bindgen_transition` transition 5 6Args: 7_settings (dict): A dict {String:Object} of all settings declared 8in the inputs parameter to `transition()` 9attr (dict): A dict of attributes and values of the rule to which 10the transition is attached 11 12Returns: 13dict: A dict of new build settings values to apply 14""" 15return { "//command_line_option:platforms" : str ( Label ( "@rules_rust//rust/platform:{}" . format ( attr . target_arch )))} 16 17wasm_bindgen_transition = transition ( 18implementation = _wasm_bindgen_transition , 19inputs = [], 20outputs = [ "//command_line_option:platforms" ], 21)