File: README.md

package info (click to toggle)
rust-bugreport 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 228 kB
  • sloc: sh: 15; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 581 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
This directory contains crates used to test `bugreport`.

It is insufficient to test bugreport with regular crate test facilities, due to
how bugreport is implemented.

Since bugreport uses a `bugreport!()` macro that is evaluated in the context of
a dependent crate, it is important to test evaluation of that macro in an
external create. Otherwise the test will not detect problems such as having
`#[cfg(feature = "git_hash")]` inside the `bugreport!()` macro. Since the macro
is evaluated in the context of the dependent crate, that feature will not be
defined in that context.