Browse Source

Use a module instead of include!

Modules are better understood by rust-analyzer compared to macros
expansion, and we can still use the same bindgen script and lint attrs.
pull/24/head
Ian Chamberlain 3 years ago
parent
commit
6b5d420ed2
No known key found for this signature in database
GPG Key ID: AE5484D09405AA60
  1. 12
      ctru-sys/src/lib.rs

12
ctru-sys/src/lib.rs

@ -1,7 +1,9 @@
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(clippy::all)]
#![no_std] #![no_std]
include!("bindings.rs"); #[allow(non_upper_case_globals)]
#[allow(non_camel_case_types)]
#[allow(non_snake_case)]
#[allow(clippy::all)]
mod bindings;
pub use bindings::*;

Loading…
Cancel
Save