blob: b9a879a203e5db19ffd20c68674c6da9a35fd12e [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{
Lingfeng Yang0f8c5b42020-02-20 07:27:15 -08009 "external/minijail",
Chih-Hung Hsiehc74d7232019-10-25 10:01:42 -070010 "external/rust",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070011 "external/crosvm",
12 "external/adhd",
Stephen Cranefb67ab52020-05-06 14:28:21 -070013 "frameworks/native/libs/binder/rust",
Andrew Scullaf2015d2020-10-13 11:42:28 +010014 "packages/modules/Virtualization",
Matthew Maurer99020b02019-10-31 10:44:40 -070015 "prebuilts/rust",
Yi Kong91c3e4e2020-08-05 01:03:05 +080016 "system/extras/profcollectd",
Janis Danisevskis1edd0392020-09-30 14:28:07 -070017 "system/hardware/interfaces/keystore2",
Janis Danisevskis8b7eb8d2020-07-20 09:15:16 -070018 "system/security",
Andrei Homescu834152c2020-07-31 19:52:45 -070019 "system/tools/aidl",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070020 }
21
22 RustModuleTypes = []string{
23 "rust_binary",
24 "rust_binary_host",
25 "rust_library",
26 "rust_library_dylib",
27 "rust_library_rlib",
Matthew Maurer2ae05132020-06-23 14:28:53 -070028 "rust_ffi",
29 "rust_ffi_shared",
30 "rust_ffi_static",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070031 "rust_library_host",
32 "rust_library_host_dylib",
33 "rust_library_host_rlib",
Matthew Maurer2ae05132020-06-23 14:28:53 -070034 "rust_ffi_host",
35 "rust_ffi_host_shared",
36 "rust_ffi_host_static",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070037 "rust_proc_macro",
Ivan Lozano8a342872019-11-14 07:36:22 -080038 "rust_test",
39 "rust_test_host",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070040 }
41)