-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: include_file should handle proto without package #1002
Merged
Merged
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3ea9f40
fix #1001 and add tests
MixusMinimax ae360ef
add alloc:: imports
MixusMinimax 9aea9b7
Merge branch 'master' into fix/write_includes
MixusMinimax 21056cd
Merge branch 'master' into fix/write_includes
MixusMinimax ba9e558
Merge branch 'master' into fix/write_includes
MixusMinimax 511fdd5
rewrite write_includes to allow for empty modules.
MixusMinimax f2bf323
Merge branch 'master' into fix/write_includes
MixusMinimax b87c205
Merge branch 'master' into fix/write_includes
MixusMinimax 376adcb
Merge branch 'master' into fix/write_includes
MixusMinimax 4c52df9
create test fixture for `write_includes`
MixusMinimax 4ff26e5
fix lints, remove line feeds
MixusMinimax 755ea0d
Merge remote-tracking branch 'refs/remotes/upstream/master' into fix/…
MixusMinimax 56c1a2f
fixes after merge master
MixusMinimax 8ea9ec9
remove some duplicate tests and alter existing ones to test write_inc…
MixusMinimax 7b0ccb2
more test
MixusMinimax bfb0896
module.rs Module::starts_with visibility
MixusMinimax File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this function should be
pub(crate)
. Similar to the function you removed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍🏽