-
Notifications
You must be signed in to change notification settings - Fork 355
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
Implemented hooks #187
Merged
Merged
Implemented hooks #187
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7221e85
add crossbeam_channel
yihuaf 1c0dc7b
adds run hook implementation
yihuaf 188c9f2
add unit tests
yihuaf d647d6c
Implement a timeout unit test
yihuaf 23b6eb6
Implement the requirement to pass state into hook
yihuaf 13a09ad
refactor
yihuaf bbb5639
refactor to use utils::parse_env
yihuaf 367c7c1
fighting all the references
yihuaf 31e9f2b
adds create runtime hook
yihuaf b3219fd
refactor hook->hooks
yihuaf df360ef
add post stop hooks
yihuaf ad663d7
adds post start hooks
yihuaf 5278327
disable for clean up file descritors for a moment.
yihuaf 4b5c079
enable hooks test
yihuaf 729a75e
enabled hook related tests
yihuaf 66e53ce
enable prestart hooks even though it's deprecated
yihuaf 774a5f5
Fix arg0 and argv for hook
yihuaf 13b7c17
Fix container state for poststart
yihuaf 10ebf39
handle annotation correctly
yihuaf 688f716
enable hook stdin
yihuaf 2a10cfa
fix fmt
yihuaf 90bedac
address review
yihuaf 6b5338d
Simple refactor on how to split arg0 and args
yihuaf 64e3617
fix
yihuaf 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
Is there any way to narrow down the features?
https://github.com/crossbeam-rs/crossbeam/blob/02e74146ca0b871974fccda579911bf57a9c0ea9/Cargo.toml#L18-L41
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 think we already do. If I understand how this crate works, there is crossbeam with feature ("crossbeam-channel/std" for example), or use
crossbeam-channel
directly. crossbeam with feature "crossbeam-channel/std" seems to point tocrossbeam-channel
underneath.For context, to be honest, I only used crossbeam because
std::sync::mpsc
documentation here mentioned this unfixed issue where it mentionedcrossbeam
being a potential replacement for thestd::sync::mpsc
,