1package config 2 3var ( 4 // When adding a new path below, add a rustfmt.toml file at the root of 5 // the repository and enable the rustfmt repo hook. See aosp/1458238 6 // for an example. 7 // TODO(b/160223496): enable rustfmt globally. 8 RustAllowedPaths = []string{ 9 "device/google/cuttlefish", 10 "external/adhd", 11 "external/crosvm", 12 "external/libchromeos-rs", 13 "external/minijail", 14 "external/rust", 15 "external/vm_tools/p9", 16 "frameworks/native/libs/binder/rust", 17 "frameworks/proto_logging/stats", 18 "packages/modules/DnsResolver", 19 "packages/modules/Virtualization", 20 "prebuilts/rust", 21 "system/bt", 22 "system/core/libstats/pull_rust", 23 "system/extras/profcollectd", 24 "system/extras/simpleperf", 25 "system/hardware/interfaces/keystore2", 26 "system/logging/rust", 27 "system/security", 28 "system/tools/aidl", 29 } 30 31 RustModuleTypes = []string{ 32 "rust_binary", 33 "rust_binary_host", 34 "rust_library", 35 "rust_library_dylib", 36 "rust_library_rlib", 37 "rust_ffi", 38 "rust_ffi_shared", 39 "rust_ffi_static", 40 "rust_library_host", 41 "rust_library_host_dylib", 42 "rust_library_host_rlib", 43 "rust_ffi_host", 44 "rust_ffi_host_shared", 45 "rust_ffi_host_static", 46 "rust_proc_macro", 47 "rust_test", 48 "rust_test_host", 49 } 50) 51