platform_build_soong/rust/config/allowed_list.go
Yi Kong 2c9b3e0e25 Add system/extras/simpleperf to Rust allowed paths
This is to allow simpleperf to export rust bindings for use by
profcollect.

Test: build
Change-Id: I187139d6133c144e86cbdb05d20c2515c189718e
2021-01-27 15:48:31 +08:00

47 lines
1.1 KiB
Go

package config
var (
// When adding a new path below, add a rustfmt.toml file at the root of
// the repository and enable the rustfmt repo hook. See aosp/1458238
// for an example.
// TODO(b/160223496): enable rustfmt globally.
RustAllowedPaths = []string{
"device/google/cuttlefish",
"external/adhd",
"external/crosvm",
"external/libchromeos-rs",
"external/minijail",
"external/rust",
"external/vm_tools/p9",
"frameworks/native/libs/binder/rust",
"packages/modules/DnsResolver",
"packages/modules/Virtualization",
"prebuilts/rust",
"system/bt",
"system/extras/profcollectd",
"system/extras/simpleperf",
"system/hardware/interfaces/keystore2",
"system/security",
"system/tools/aidl",
}
RustModuleTypes = []string{
"rust_binary",
"rust_binary_host",
"rust_library",
"rust_library_dylib",
"rust_library_rlib",
"rust_ffi",
"rust_ffi_shared",
"rust_ffi_static",
"rust_library_host",
"rust_library_host_dylib",
"rust_library_host_rlib",
"rust_ffi_host",
"rust_ffi_host_shared",
"rust_ffi_host_static",
"rust_proc_macro",
"rust_test",
"rust_test_host",
}
)