1*d4726bddSHONG Yifanload("@bazel_skylib//rules:write_file.bzl", "write_file") 2*d4726bddSHONG Yifanload(":rustfmt_integration_test_suite.bzl", "rustfmt_integration_test_suite") 3*d4726bddSHONG Yifan 4*d4726bddSHONG Yifanexports_files([ 5*d4726bddSHONG Yifan "test_rustfmt.toml", 6*d4726bddSHONG Yifan]) 7*d4726bddSHONG Yifan 8*d4726bddSHONG Yifanwrite_file( 9*d4726bddSHONG Yifan name = "srcs/generated/generated", 10*d4726bddSHONG Yifan out = "srcs/generated/generated.rs", 11*d4726bddSHONG Yifan content = """\ 12*d4726bddSHONG Yifanpub fn greeting() { 13*d4726bddSHONG Yifan println!("Guten tag!"); 14*d4726bddSHONG Yifan} 15*d4726bddSHONG Yifan""".splitlines(), 16*d4726bddSHONG Yifan newline = "unix", 17*d4726bddSHONG Yifan) 18*d4726bddSHONG Yifan 19*d4726bddSHONG Yifanrustfmt_integration_test_suite( 20*d4726bddSHONG Yifan name = "rustfmt_integration_test_suite", 21*d4726bddSHONG Yifan) 22