Skip to content

Commit e56691d

Browse files
danakjchromeos-ci-prod
authored andcommitted
Adopt new rust_bindgen behaviour in Rust mojo impl
The rust_bindgen template now makes a library that exports the bindgen generated symbols. R=lukasza@chromium.org Bug: b/373864033 Cq-Include-Trybots: luci.chromium.try:android-rust-arm64-rel,android-rust-arm32-rel,android-rust-arm64-dbg,linux-rust-x64-dbg,linux-rust-x64-rel,mac-rust-x64-dbg,win-rust-x64-dbg,win-rust-x64-rel Change-Id: I4584b004907612a3c122f4cf39dddc397288332a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5973313 Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org> Commit-Queue: danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/main@{#1374768} CrOS-Libchrome-Original-Commit: 09afac1d1aa18250073002ddedd0e064e4c2a981
1 parent b9e6f80 commit e56691d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

mojo/public/rust/system/ffi.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@
1717
//! TODO(crbug.com/40206847):
1818
//! * Remove references to the now-nonexistent mojo Github
1919
20-
pub mod raw_ffi {
21-
#![allow(dead_code)]
22-
#![allow(non_upper_case_globals)]
23-
#![allow(non_camel_case_types)]
24-
#![allow(non_snake_case)]
25-
include!(env!("BINDGEN_RS_FILE"));
20+
chromium::import! {
21+
pub "//mojo/public/rust:mojo_c_system_binding" as raw_ffi;
2622
}
2723

2824
pub mod types {

0 commit comments

Comments
 (0)