-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: include_file should handle proto without package (#1002)
* fix #1001 and add tests * add alloc:: imports * rewrite write_includes to allow for empty modules. * create test fixture for `write_includes` * fix lints, remove line feeds * fixes after merge master * remove some duplicate tests and alter existing ones to test write_includes * more test * module.rs Module::starts_with visibility
- Loading branch information
1 parent
1f38ea6
commit baddf98
Showing
6 changed files
with
138 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
include!(concat!(env!("OUT_DIR"), "/_.default.rs")); | ||
pub mod bar { | ||
include!(concat!(env!("OUT_DIR"), "/bar.rs")); | ||
} | ||
pub mod foo { | ||
include!(concat!(env!("OUT_DIR"), "/foo.rs")); | ||
pub mod bar { | ||
include!(concat!(env!("OUT_DIR"), "/foo.bar.rs")); | ||
pub mod a { | ||
pub mod b { | ||
pub mod c { | ||
include!(concat!(env!("OUT_DIR"), "/foo.bar.a.b.c.rs")); | ||
} | ||
} | ||
} | ||
pub mod baz { | ||
include!(concat!(env!("OUT_DIR"), "/foo.bar.baz.rs")); | ||
} | ||
pub mod qux { | ||
include!(concat!(env!("OUT_DIR"), "/foo.bar.qux.rs")); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters