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