blob: df31d6023443585af56278bfc28dc04844eeb75b [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",
Lingfeng Yang0f8c5b42020-02-20 07:27:15 -080012 "external/minijail",
Chih-Hung Hsiehc74d7232019-10-25 10:01:42 -070013 "external/rust",
Alistair Delvaea2974c2020-10-21 06:56:58 -070014 "external/vm_tools/p9",
Stephen Cranefb67ab52020-05-06 14:28:21 -070015 "frameworks/native/libs/binder/rust",
Bernie Innocenti3a710d62020-12-05 02:55:53 +090016 "packages/modules/DnsResolver",
Andrew Scullaf2015d2020-10-13 11:42:28 +010017 "packages/modules/Virtualization",
Matthew Maurer99020b02019-10-31 10:44:40 -070018 "prebuilts/rust",
Qasim Javedd271ada2020-10-28 13:40:05 -070019 "system/bt",
Yi Kong91c3e4e2020-08-05 01:03:05 +080020 "system/extras/profcollectd",
Janis Danisevskis1edd0392020-09-30 14:28:07 -070021 "system/hardware/interfaces/keystore2",
Janis Danisevskis8b7eb8d2020-07-20 09:15:16 -070022 "system/security",
Andrei Homescu834152c2020-07-31 19:52:45 -070023 "system/tools/aidl",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070024 }
25
26 RustModuleTypes = []string{
27 "rust_binary",
28 "rust_binary_host",
29 "rust_library",
30 "rust_library_dylib",
31 "rust_library_rlib",
Matthew Maurer2ae05132020-06-23 14:28:53 -070032 "rust_ffi",
33 "rust_ffi_shared",
34 "rust_ffi_static",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070035 "rust_library_host",
36 "rust_library_host_dylib",
37 "rust_library_host_rlib",
Matthew Maurer2ae05132020-06-23 14:28:53 -070038 "rust_ffi_host",
39 "rust_ffi_host_shared",
40 "rust_ffi_host_static",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070041 "rust_proc_macro",
Ivan Lozano8a342872019-11-14 07:36:22 -080042 "rust_test",
43 "rust_test_host",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070044 }
45)