2019-09-18 23:42:54 +08:00
|
|
|
package config
|
|
|
|
|
|
|
|
var (
|
2020-08-07 02:20:19 +08:00
|
|
|
// When adding a new path below, add a rustfmt.toml file at the root of
|
2020-10-13 20:49:29 +08:00
|
|
|
// the repository and enable the rustfmt repo hook. See aosp/1458238
|
2020-08-07 02:20:19 +08:00
|
|
|
// for an example.
|
|
|
|
// TODO(b/160223496): enable rustfmt globally.
|
2019-09-18 23:42:54 +08:00
|
|
|
RustAllowedPaths = []string{
|
2020-11-26 10:29:39 +08:00
|
|
|
"device/google/cuttlefish",
|
2020-10-21 21:56:13 +08:00
|
|
|
"external/adhd",
|
|
|
|
"external/crosvm",
|
2020-12-04 08:08:43 +08:00
|
|
|
"external/libchromeos-rs",
|
2020-02-20 23:27:15 +08:00
|
|
|
"external/minijail",
|
2019-10-26 01:01:42 +08:00
|
|
|
"external/rust",
|
2020-10-21 21:56:58 +08:00
|
|
|
"external/vm_tools/p9",
|
2020-05-07 05:28:21 +08:00
|
|
|
"frameworks/native/libs/binder/rust",
|
2021-02-18 03:22:38 +08:00
|
|
|
"frameworks/proto_logging/stats",
|
2020-12-05 01:55:53 +08:00
|
|
|
"packages/modules/DnsResolver",
|
2020-10-13 18:42:28 +08:00
|
|
|
"packages/modules/Virtualization",
|
2019-11-01 01:44:40 +08:00
|
|
|
"prebuilts/rust",
|
2020-10-29 04:40:05 +08:00
|
|
|
"system/bt",
|
2021-03-31 04:39:45 +08:00
|
|
|
"system/core/libstats/pull_rust",
|
2020-08-05 01:03:05 +08:00
|
|
|
"system/extras/profcollectd",
|
2021-01-27 15:48:31 +08:00
|
|
|
"system/extras/simpleperf",
|
2020-10-01 05:28:07 +08:00
|
|
|
"system/hardware/interfaces/keystore2",
|
2021-03-26 02:06:42 +08:00
|
|
|
"system/logging/rust",
|
2020-07-21 00:15:16 +08:00
|
|
|
"system/security",
|
2020-08-01 10:52:45 +08:00
|
|
|
"system/tools/aidl",
|
2019-09-18 23:42:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
RustModuleTypes = []string{
|
|
|
|
"rust_binary",
|
|
|
|
"rust_binary_host",
|
|
|
|
"rust_library",
|
|
|
|
"rust_library_dylib",
|
|
|
|
"rust_library_rlib",
|
2020-06-24 05:28:53 +08:00
|
|
|
"rust_ffi",
|
|
|
|
"rust_ffi_shared",
|
|
|
|
"rust_ffi_static",
|
2019-09-18 23:42:54 +08:00
|
|
|
"rust_library_host",
|
|
|
|
"rust_library_host_dylib",
|
|
|
|
"rust_library_host_rlib",
|
2020-06-24 05:28:53 +08:00
|
|
|
"rust_ffi_host",
|
|
|
|
"rust_ffi_host_shared",
|
|
|
|
"rust_ffi_host_static",
|
2019-09-18 23:42:54 +08:00
|
|
|
"rust_proc_macro",
|
2019-11-14 23:36:22 +08:00
|
|
|
"rust_test",
|
|
|
|
"rust_test_host",
|
2019-09-18 23:42:54 +08:00
|
|
|
}
|
|
|
|
)
|