From 03a94c48da15ed366a8094de2508076a86ed0804 Mon Sep 17 00:00:00 2001 From: Ivan Lozano Date: Mon, 28 Jun 2021 11:27:11 -0400 Subject: rust: Add missing Rust allow path modules. Adds rust_benchmark and rust_fuzz to the list of Rust module types which need to be in the allowed paths, and a comment about rust_bindgen and rust_protobuf. This also adds a downstream allow path list which helps prevent merge conflicts if downstream wants to extend the list of allowed paths. Bug: 191507775 Test: Paths are checked for the newly added module types. Test: Paths in DownstreamRustAllowedPaths allow Rust modules. Change-Id: Ida80c33a815d47ffdfb1f648125d71316a2a9d8a --- rust/rust.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/rust.go') diff --git a/rust/rust.go b/rust/rust.go index b8c8be5a2..98241f4c6 100644 --- a/rust/rust.go +++ b/rust/rust.go @@ -35,7 +35,7 @@ func init() { android.AddNeverAllowRules( android.NeverAllow(). - NotIn(config.RustAllowedPaths...). + NotIn(append(config.RustAllowedPaths, config.DownstreamRustAllowedPaths...)...). ModuleType(config.RustModuleTypes...)) android.RegisterModuleType("rust_defaults", defaultsFactory) -- cgit v1.2.3-59-g8ed1b