Commit graph

47 commits

Author SHA1 Message Date
33390acf23 Allow custom data in errors to be displayed 2017-06-06 19:04:53 +02:00
9650f46e23 Version strings: 0.2.0 -> 0.3.0 2017-05-03 10:48:26 +02:00
97eaafe5da Allow dead code in the whole test module
As the generate_custom_error_types!() generates code in the tests which
are not used at all.
2017-02-05 15:57:46 +01:00
e0e6e0c117 Remove unused variable 2017-01-25 18:37:05 +01:00
d9c1ef482b Allow dead code in test code 2017-01-25 18:36:59 +01:00
mario
8df5519f34 Move [profile.dev] codegen-units = 2 to top-level Cargo.toml
lower level (=package/crate level) definitions for profiles are ignored
2017-01-19 20:08:51 +01:00
0a04081599 Merge pull request #656 from matthiasbeyer/cargo-rustc-codegen-units
Cargo rustc codegen units
2016-10-31 23:39:38 +01:00
e55e805c6c libimagerror/Cargo.toml: Update dependencies 2016-10-24 14:30:54 +02:00
de7206aa5a Add codegen-units = 2 in ./libimagerror/Cargo.toml 2016-10-24 13:55:49 +02:00
bdbf5cedfb Merge pull request #820 from Thiez/libimagerror/traceiter
Add Iterator for Iterator<Item = Result<T, Error>> tracing
2016-10-21 16:39:42 +02:00
Matthijs Hofstra
7a5f5b5061 Simplify OnErr iterator next and next_back 2016-10-21 11:03:02 +02:00
Matthijs Hofstra
174a9b2d40 Add trait for Iterator<Item=Result<T,E>> tracing 2016-10-20 14:50:36 +02:00
b5bfc1978c Fix: Cargo.toml does not know "website", but "homepage" 2016-10-20 14:14:18 +02:00
f9f2b93461 Add meta-info in libimagerror/Cargo.toml 2016-10-18 10:56:12 +02:00
e8ae4c0da7 Create symlinks to documentation files in libimag*/README.md 2016-10-13 12:04:36 +02:00
e30d774670 Move all libimag*/README.md to doc/src/05100-* 2016-10-13 12:04:36 +02:00
fbd6e790c7 Increment header levels in the README.md files of the libraries 2016-10-13 12:04:36 +02:00
4b2514e5a0 libimagerror: Add copyright notice to all files 2016-10-01 17:35:06 +02:00
95b77d7c92 When generating an error code, we should allow dead code here 2016-09-06 15:31:55 +02:00
bfd8e14d04 Add Result helpers for trace()ing errors 2016-09-05 16:16:06 +02:00
eafd8c1ae5 Add README.md for libimagerror 2016-08-24 14:22:16 +02:00
11dc277c6b Replace unwrap() with map() 2016-08-04 19:13:16 +02:00
9ea1811e21 Replace unwrap() with map() 2016-08-04 19:13:16 +02:00
97fde8cc1b Replace unwrap() with map() 2016-08-04 19:13:15 +02:00
Gavin Thomas Claugus
6578abdf3d libimagerror: Eliminate unused imports
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
2016-07-28 08:34:50 -04:00
Gavin Thomas Claugus
014a40c9df libimagerror: Deny warnings
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
2016-07-28 08:34:50 -04:00
4e7a266e1d Merge pull request #542 from matthiasbeyer/libimagerror/trace_exit
Add utility for calling trace_error() and exit()
2016-07-16 23:39:59 +02:00
df6ea4cc8c Make trace_error_exit() diverging 2016-07-16 21:57:29 +02:00
ea6daaa0f4 Adding debug information in trace_error_exit() 2016-07-16 21:57:29 +02:00
46b3c7c024 Add setter for custom data for error types 2016-07-16 16:51:42 +02:00
f1e7b40cc5 Add utility for calling trace_error() and exit() 2016-07-15 21:34:45 +02:00
John Sirois
5369dfa119 Remove unused into::IntoError import. 2016-07-14 20:08:42 -06:00
9337a14cdd Update all version strings: 0.1.0 -> 0.2.0 2016-07-12 11:51:20 +02:00
7ffd28b592 Add tests for Option::ok_or_errkind() extension function 2016-06-27 15:12:24 +02:00
5c8dbac34d Add test for error kind mapping 2016-06-27 15:12:24 +02:00
320c1e4bd8 Add Option helper 2016-06-27 15:12:17 +02:00
0d9d96fa6c Add result helper 2016-06-27 15:12:08 +02:00
b1f43e3ef5 Impl Into<error name> for all <errorkindname> 2016-05-24 14:31:44 +02:00
b117d7fb9f Add tests for error types with custom functions and types 2016-05-23 17:06:07 +02:00
603b4de593 Add macro to generate error types with custom fields and functions 2016-05-23 17:06:06 +02:00
972d313ed5 Import IntoError trait 2016-05-20 17:34:10 +02:00
3845f28dad Implement IntoError for all generated Errors automatically 2016-05-20 17:34:10 +02:00
8e0014d507 Add IntoError trait to convert Error kinds into Error instances 2016-05-20 17:34:10 +02:00
62cd7871a2 Expand error generating to be able to generate modules 2016-05-19 18:22:02 +02:00
1c723a9a0e Move trace_error() functionality from libimagutil to libimagerror 2016-05-17 20:28:02 +02:00
2f03077abf Add error generator macro 2016-05-17 00:26:35 +02:00
cb855ae335 Initial import 2016-05-17 00:26:35 +02:00