597 Commits

Author SHA1 Message Date
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
9e6a349c8e
port color-eyre to new eyre with global hook (#29)
* port color-eyre to new eyre with global hook

* add a singular hook configuration

* add panic handler to globally installed hook

* getting near the end

* remove unused module

* temp: working on capture consistency

* walk back changes that make porting to new release harder

* merge main into hooked

* switch to github color-spantrace and copy from htmlgit status

* move spantrace capture default mode into hook

* rename and reorg section stuff

* switch to released deps

* copy changes from lib.rs to readme

* update snippets and revert to images for readme

* remove extremely fragile format tests
2020-07-05 19:22:57 -07:00
Jane Lusby
0769344643
bump version for new release (#8) 2020-07-05 19:05:18 -07:00
Jane Lusby
f39eaff0b2
Switch report handler to a global hook (#29)
* Switch report handler to a global hook

* more cleanup

* remove default from example

* remove broken support for no_std

* back out the unneeded nostd check

* remove one stackframe when capturing a Handler

* update docs and prep for release

* port lib.rs docs updates to readme
2020-07-05 19:04:31 -07:00
Jane Lusby
fe08025c69
add support for conditional capture of span traces (#33)
* add support for conditional capture of span traces

* document how to disable spantraces
2020-07-05 15:28:02 -07:00
Jane Lusby
1f1aeb7773
colorize line numbers and fix indentation issue (#7) 2020-06-25 15:32:12 -07:00
Jane Lusby
69db885ecc
fix issue with spantrace capture in last release (#28) 2020-06-21 13:22:38 -07:00
Jane Lusby
63b8bc71e0
depend on next version of eyre (#27)
* depend on next version of eyre

* more use statement updates

* fix line numbers for windows test
2020-06-21 11:10:21 -07:00
Jane Lusby
96ddb39cd0
fix type inference issue in eyre macro autoderef behavior (#27)
* fix type inference issue in eyre macro autoderef behavior

* use the upstream example

* update testcase compile err output

* remove cruft

* bump version for breaking change
2020-06-21 10:41:56 -07:00
Saquib
b5060a5c16
Fix cleanup warnings in tests/minimal.rs when compiled for windows. (#25) 2020-06-04 11:27:51 -07:00
Jane Lusby
fff76b1424
dedupe ansi-term dependency (#24) 2020-06-02 18:50:18 -07:00
Jane Lusby
84615473ed
Dedupdep (#3)
* dedupe ansi_term dep

* bump version for release
2020-06-02 18:45:04 -07:00
Jane Lusby
3384c06584
fix color intensity (#23)
* fix color intensity

* update test expected strings

* bump version for new release
2020-06-02 18:39:18 -07:00
Jane Lusby
5b6507d455
Simplify sections features (#22)
* Simplify sections features

* cleanup docs a bit

* update docs and switch context to handler
2020-06-02 18:26:02 -07:00
Jane Lusby
385547736a
fix intensity of colors (#2) 2020-06-02 18:07:53 -07:00
Jane Lusby
fd00a3bbab
Rename EyreContext to EyreHandler (#26)
* Rename EyreContext to EyreHandler

* bump version for new release

* use pub use for aliases
2020-06-02 13:59:09 -07:00
Jane Lusby
fe284a81b1
Try to isolate debug mode perf regression (#20) 2020-05-29 18:28:21 -07:00
Duncan R Hamill
be64ee415a
Fixed use of std::fmt rather than core::fmt (#22)
Co-authored-by: Jane Lusby <jlusby@yaah.dev>
2020-05-29 17:51:00 -07:00
Basit Ayantunde
3621a4b66e
Fixed typo (#23) 2020-05-29 08:38:47 -07:00
Jane Lusby
7b2d9f4218
Add custom section support for reports (#18) 2020-05-25 19:39:26 -07:00
Alex Chan
98a2d3085d
Remove unwanted apostrophe from “its ability” (#21) 2020-05-22 19:20:01 -07:00
Jane Lusby
9f5defedb7
Add support for custom color-backtrace config (#17)
* Add support for custom color-backtrace config

* update docs and bump version for release
2020-05-18 18:36:22 -07:00
Jane Lusby
65ab3afe2b bump version for new release 2020-05-17 11:10:32 -07:00
Jane Lusby
9517249147
Add windows and macos support in tests (#9) 2020-05-17 11:08:46 -07:00
Jane Lusby
86c1267aab
bump indenter dep version and update readme
* Update testing

* dont bother testing no_std yet ...

* bump version for new release with fixed indenter

* add documentation about custom context crates
2020-05-17 10:37:33 -07:00
Jane Lusby
ad8d7cc415
mirror std backtrace capture rules (#14) 2020-05-17 06:45:19 -07:00
Jane Lusby
496a17ec61 bump version of backtrace dep 2020-05-15 11:56:09 -07:00
Jane Lusby
dbc3cc181e bump minor version for compat trait 2020-05-07 11:01:12 -07:00
Jane Lusby
6daf46c7aa
Add ContextCompat trait for porting from anyhow (#15) 2020-05-07 10:54:28 -07:00
Jane Lusby
3396e3911f Bump major version to deal with breaking change 2020-05-07 10:38:42 -07:00
Jane Lusby
9154b93381 bump version to update eyre dep 2020-05-07 07:56:52 -07:00
Jane Lusby
ee694c212a
fix links for rustdoc (#3) 2020-05-06 21:07:42 -07:00
Jane Lusby
1ca762d652
create new release to clean up docs and images (#2) 2020-05-06 19:16:44 -07:00
Jane Lusby
1666a4d4f5
fix inconsistent behavior (#1) 2020-05-06 18:56:54 -07:00
Jane Lusby
fb630e1574 match color-backtrace behavior 2020-05-06 18:47:03 -07:00
Jane Lusby
9a38e54c0d final push hopefully 2020-05-06 18:38:10 -07:00
Jane Lusby
a0823eb0f9 organize consistently 2020-05-06 18:27:48 -07:00
Jane Lusby
d5195a9bd1 add ci 2020-05-06 18:17:19 -07:00
Jane Lusby
0c921a3b70 update docs 2020-05-06 18:16:56 -07:00
Jane Lusby
208cb84f69 final prep before release 2020-05-06 15:51:03 -07:00
Jane Lusby
2e78274bdb clippy 2020-05-06 14:54:27 -07:00
Jane Lusby
6b58982ee5 Fix link in readme 2020-05-06 13:27:29 -07:00
Jane Lusby
b867bf4261 Fix links in readme 2020-05-06 13:27:01 -07:00
Jane Lusby
0c43f82be3 Add ci 2020-05-06 13:25:25 -07:00
Jane Lusby
b0c867c729 Prep for release 2020-05-06 13:23:34 -07:00
Jane Lusby
b7274c9f2f switch to ansi_term 2020-05-06 13:01:19 -07:00
Jane Lusby
d525c1fc0a
remove member access fns and backtrace fn (#14)
* remove member access fns and

* fix nightly errors

* bring back the test i accidentally removed
2020-05-04 12:20:46 -07:00
Jane Lusby
1e1eb56abf
remove br from docs and fix compile_fail docs (#13) 2020-05-03 15:23:20 -07:00
Jane Lusby
38a2e706dd
simplify docs and add back compat support (#12)
* simplify docs

* improve docs a little more
2020-05-03 13:40:02 -07:00
Jane Lusby
efd40618c8 get that bat outtahere 2020-05-01 17:39:05 -07:00