diff options
author | Jack Moffitt <jack@metajack.im> | 2015-06-17 15:59:04 -0600 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2015-06-17 16:18:22 -0600 |
commit | 07d95627ca08d092a78edff85faa820c924853d7 (patch) | |
tree | 9fcd232e3a8b1b542b2a2bc47c999404cae0217c /components/script/dom/mod.rs | |
parent | e1b28d893e54601bf497d0d5b83d77658ca16bac (diff) | |
download | servo-07d95627ca08d092a78edff85faa820c924853d7.tar.gz servo-07d95627ca08d092a78edff85faa820c924853d7.zip |
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.
Diffstat (limited to 'components/script/dom/mod.rs')
-rw-r--r-- | components/script/dom/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/mod.rs b/components/script/dom/mod.rs index 813e7a09145..51ef5ca3c05 100644 --- a/components/script/dom/mod.rs +++ b/components/script/dom/mod.rs @@ -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; |