1if (target_os == "") { 2 target_os = host_os 3} 4if (target_cpu == "") { 5 target_cpu = host_cpu 6} 7if (current_cpu == "") { 8 current_cpu = target_cpu 9} 10if (current_os == "") { 11 current_os = target_os 12} 13 14_configs = [ "//build:rust_defaults" ] 15 16set_defaults("executable") { 17 configs = _configs 18} 19set_defaults("rust_library") { 20 configs = _configs 21} 22 23set_default_toolchain("//build:rust") 24