-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- The `CARGO_BIN_NAME` env var is not available when building library crates, so we have to infer the binary name from the environment at runtime. - Consequently, this allows the macro to be used in tests, so we now have a doc-test! - Also uses explicit type paths to avoid certain kinds of name collisions with e.g. top-level `use anyhow::Result`.
- Loading branch information
Showing
1 changed file
with
59 additions
and
4 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