mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Generate code into OUT_DIR.
This is necessary to ensure Cargo knows when to rebuild. Normally .gitignore would be enough to exclude these from Cargo's freshness calculation, but https://github.com/rust-lang/cargo/issues/1729 prevents this currently. This is the new, correct way to do these thigns, just like the style crate does.
This commit is contained in:
parent
e1b28d893e
commit
07d95627ca
5 changed files with 64 additions and 51 deletions
|
@ -190,8 +190,9 @@ pub mod macros;
|
|||
|
||||
pub mod bindings;
|
||||
|
||||
#[path="bindings/codegen/InterfaceTypes.rs"]
|
||||
pub mod types;
|
||||
pub mod types {
|
||||
include!(concat!(env!("OUT_DIR"), "/InterfaceTypes.rs"));
|
||||
}
|
||||
|
||||
pub mod activation;
|
||||
pub mod attr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue