blob: 3ad32fa8961cc6b3d83582753a919053f03d821c [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{
Alistair Delvae172eaf2020-10-21 06:56:13 -07009 "external/adhd",
10 "external/crosvm",
Lingfeng Yang0f8c5b42020-02-20 07:27:15 -080011 "external/minijail",
Chih-Hung Hsiehc74d7232019-10-25 10:01:42 -070012 "external/rust",
Alistair Delvaea2974c2020-10-21 06:56:58 -070013 "external/vm_tools/p9",
Stephen Cranefb67ab52020-05-06 14:28:21 -070014 "frameworks/native/libs/binder/rust",
Andrew Scullaf2015d2020-10-13 11:42:28 +010015 "packages/modules/Virtualization",
Matthew Maurer99020b02019-10-31 10:44:40 -070016 "prebuilts/rust",
Qasim Javedd271ada2020-10-28 13:40:05 -070017 "system/bt",
Yi Kong91c3e4e2020-08-05 01:03:05 +080018 "system/extras/profcollectd",
Janis Danisevskis1edd0392020-09-30 14:28:07 -070019 "system/hardware/interfaces/keystore2",
Janis Danisevskis8b7eb8d2020-07-20 09:15:16 -070020 "system/security",
Andrei Homescu834152c2020-07-31 19:52:45 -070021 "system/tools/aidl",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070022 }
23
24 RustModuleTypes = []string{
25 "rust_binary",
26 "rust_binary_host",
27 "rust_library",
28 "rust_library_dylib",
29 "rust_library_rlib",
Matthew Maurer2ae05132020-06-23 14:28:53 -070030 "rust_ffi",
31 "rust_ffi_shared",
32 "rust_ffi_static",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070033 "rust_library_host",
34 "rust_library_host_dylib",
35 "rust_library_host_rlib",
Matthew Maurer2ae05132020-06-23 14:28:53 -070036 "rust_ffi_host",
37 "rust_ffi_host_shared",
38 "rust_ffi_host_static",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070039 "rust_proc_macro",
Ivan Lozano8a342872019-11-14 07:36:22 -080040 "rust_test",
41 "rust_test_host",
Ivan Lozanoe169ad72019-09-18 08:42:54 -070042 }
43)