6 Commits

Author SHA1 Message Date
Jane Lusby
198600fa05
new minor version release (#71)
* update changelog for new release

* update gitignore so cargo release likes me again

* (cargo-release) version 0.5.7

* (cargo-release) start next development iteration 0.5.8-alpha.0

* try using matrix for feature combinations
2020-11-05 16:37:49 -08:00
Paul Horn
030dc5a547
Add feature more gates for capture-spantrace (#70)
* Add feature more gates for capture-spantrace

When only the `issue-url` features is enabled, with the default
features being disabled, the crate fails to build

```
$ cargo build --no-default-features --features issue-url
   Compiling color-eyre v0.5.7-alpha.0 (/Users/paul/dev/color-eyre)
error[E0432]: unresolved import `tracing_error`
 --> src/section/github.rs:5:5
  |
5 | use tracing_error::SpanTrace;
  |     ^^^^^^^^^^^^^ use of undeclared type or module `tracing_error`

error[E0282]: type annotations needed
  --> src/section/github.rs:28:25
   |
28 |             span_trace: None,
   |                         ^^^^ cannot infer type for type parameter `T` declared on the enum `Option`

error: aborting due to 2 previous errors
```

This commit add feature gates for capture-spantrace to the github
issue module, so that the issue-url feature can be used standalone.

* ignore broken doctest and add new ci configs

* make the ci configs differentiable

Co-authored-by: Jane Lusby <jlusby@yaah.dev>
2020-11-05 16:24:05 -08:00
Cynthia Coan
1df9ec5f44
add testing for wasm (#38)
* add testing for wasm

utilize wasm-bindgen-test as a developer dependency in order to
actively run wasm tests. wasm currently doesn't have support for
running doctests (and reportedly won't "anytime soon"), and in
order to actually run the tests we need a wasm environment.

the easiest of these to setup & use is wasm-pack which is primarly
built for nodejs. however, if it works in nodejs it should ideally
work in other wasm environments that are similar.

as such a wasm-pack (which utilizies wasm-bindgen) as a developer
dependency has been added that creates a simple error message,
and validates it contains the text of the error (and sections)
sans any formatting. this is meant to validate a base level
of functionality as time goes on.

* fix format

* only add dev-dependency for wasm32

* fix clippy warning

Co-authored-by: Jane Lusby <jlusby@yaah.dev>
2020-07-23 16:23:08 -07:00
Jane Lusby
9517249147
Add windows and macos support in tests (#9) 2020-05-17 11:08:46 -07:00
Jane Lusby
ad8d7cc415
mirror std backtrace capture rules (#14) 2020-05-17 06:45:19 -07:00
Jane Lusby
d5195a9bd1 add ci 2020-05-06 18:17:19 -07:00