-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to continue if an Error occurs in one section (#128)
* Collect and emit cargo:warnings. * Optionally continue if Build block failed. * Optionally continue if Git block failed. * Optionally continue if Sysinfo block failed. * Optionally continue if Rustc block failed. * Add test for Git skip_if_error - This test needs a directory that is not a git repository or a subdirectory of a git repository. - Use a temporary directory, provided by the tempfile crate. - The tempfile dependency is only needed for this one test. It is only compiled in the test configuration and if the git feature is active. Sadly, there is no way to define optional dev-dependencies[0], so deactivate the unused_crate_dependencies lint to allow compilation of the other features. [0]: rust-lang/cargo#1596 * Add docs for skip_if_error. * Fix typos * Fix mistake in docs. If the "git" feature is not active, no git2 Errors will be generated.
- Loading branch information
1 parent
160336f
commit a80a880
Showing
8 changed files
with
273 additions
and
120 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,5 @@ rustversion = "1" | |
lazy_static = "1" | ||
regex = "1" | ||
serial_test = "0" | ||
tempfile = "3" | ||
|
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.