aboutsummaryrefslogtreecommitdiff
path: root/rust/proc_macro_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Revert "support sandboxed rust rules"Wen-yi Chu2023-09-221-2/+2
| | | | | | | | | | Revert submission 2629131-sandbox-rust-inputs Reason for revert: Fail on android build. Reverted changes: /q/submissionid:2629131-sandbox-rust-inputs Change-Id: Ifd9aa46e80a12d8f4ffa0a2daa74b96727cbb7e6
* support sandboxed rust rulesSam Delmerico2023-09-151-2/+2
| | | | | | | | | | | This commit adds support for compiling rust rules inside the sbox sandbox. To compile a rust module with sandboxing enabled, the entry point to the crate must be specified via the `crate_root` property, and all input sources and compile-time data must be specified via the `srcs` and `compile_data` properties. Bug: 286077158 Change-Id: I8c9dc5cf7578037a583b4be2e2f73cf20ffd4408
* Pass "--extern proc_macro" to rust_proc_macros.Joel Galenson2021-09-231-0/+36
This is actually required for some code. Test: Modify the new test so it fails and see it fail. Test: Build crates that fail without it. Change-Id: I527752b765e5552aa2de7e201f056955e053e1f3