blob: fc11d2901e56e00e3601fe273571947cb961b230 [file] [log] [blame]
Ivan Lozanoe169ad72019-09-18 08:42:54 -07001package config
2
3var (
ThiƩbaud Weksteen425a5422020-08-06 20:20:19 +02004 // When adding a new path below, add a rustfmt.toml file at the root of
Andrew Scull5a58bca2020-10-13 13:49:29 +01005 // the repository and enable the rustfmt repo hook. See aosp/1458238
ThiƩbaud Weksteen425a5422020-08-06 20:20:19 +02006 // for an example.
7 // TODO(b/160223496): enable rustfmt globally.
Ivan Lozanoe169ad72019-09-18 08:42:54 -07008 RustAllowedPaths = []string{
A. Cody Schuffelen4e5fc3b2020-11-25 18:29:39 -08009 "device/google/cuttlefish",
Alistair Delvae172eaf2020-10-21 06:56:13 -070010 "external/adhd",
11 "external/crosvm",
Victor Hsieh274597b2020-12-03 16:08:43 -080012 "external/libchromeos-rs",
Lingfeng Yang0f8c5b42020-02-20 07:27:15 -080013 "external/minijail",
Chih-Hung Hsiehc74d7232019-10-25 10:01:42 -070014 "external/rust",
Alistair Delvaea2974c2020-10-21 06:56:58 -070015 "external/vm_tools/p9",
Stephen Cranefb67ab52020-05-06 14:28:21 -070016 "frameworks/native/libs/binder/rust",
Bernie Innocenti3a710d62020-12-05 02:55:53 +090017 "packages/modules/DnsResolver",
Andrew Scullaf2015d2020-10-13 11:42:28 +010018 "packages/modules/Virtualization",
Matthew Maurer99020b02019-10-31 10:44:40 -070019 "prebuilts/rust",
Qasim Javedd271ada2020-10-28 13:40:05 -070020 "system/bt",
Yi Kong91c3e4e2020-08-05 01:03:05 +080021 "system/extras/profcollectd",
Yi Kong2c9b3e02021-01-27 15:48:31 +080022 "system/extras/simpleperf",
Janis Danisevskis1edd0392020-09-30 14:28:07 -070023 "system/hardware/interfaces/keystore2",
Janis Danisevskis8b7eb8d2020-07-20 09:15:16 -070024 "system/security",
Andrei Homescu834152c2020-07-31 19:52:45 -070025 "system/tools/aidl",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070026 }
27
28 RustModuleTypes = []string{
29 "rust_binary",
30 "rust_binary_host",
31 "rust_library",
32 "rust_library_dylib",
33 "rust_library_rlib",
Matthew Maurer2ae05132020-06-23 14:28:53 -070034 "rust_ffi",
35 "rust_ffi_shared",
36 "rust_ffi_static",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070037 "rust_library_host",
38 "rust_library_host_dylib",
39 "rust_library_host_rlib",
Matthew Maurer2ae05132020-06-23 14:28:53 -070040 "rust_ffi_host",
41 "rust_ffi_host_shared",
42 "rust_ffi_host_static",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070043 "rust_proc_macro",
Ivan Lozano8a342872019-11-14 07:36:22 -080044 "rust_test",
45 "rust_test_host",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070046 }
47)