Prepare for 0.14.0 release

This commit is contained in:
kyren 2018-06-29 01:24:28 -04:00
parent 31fa9173ae
commit 02bc8da203
5 changed files with 8 additions and 4 deletions

View file

@ -21,6 +21,7 @@
be perfectly panic safe as far as *internal* invariants are concerned, but
(afaict) they should not be marked as `RefUnwindSafe` due to internal
mutability and thus potentially breaking *user* invariants.
- Upgrade to require `cc` 1.0.
- Several Lua stack checking bugs have been fixed that could have lead to
unsafety in release mode.

View file

@ -26,7 +26,7 @@ builtin-lua = ["cc"]
[dependencies]
libc = { version = "0.2" }
failure = { git = "https://github.com/rust-lang-nursery/failure", version = "1.0" }
failure = { version = "0.1.1" }
compiletest_rs = { version = "0.3", optional = true }
[build-dependencies]

View file

@ -5,7 +5,7 @@ below:
MIT License
Copyright (c) 2017 Chucklefish LTD
Copyright (c) 2017
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View file

@ -1,6 +1,6 @@
# rlua -- High level bindings between Rust and Lua
[![Build Status](https://travis-ci.org/chucklefish/rlua.svg?branch=master)](https://travis-ci.org/chucklefish/rlua)
[![Build Status](https://travis-ci.org/kyren/rlua.svg?branch=master)](https://travis-ci.org/kyren/rlua)
[![Latest Version](https://img.shields.io/crates/v/rlua.svg)](https://crates.io/crates/rlua)
[![API Documentation](https://docs.rs/rlua/badge.svg)](https://docs.rs/rlua)

View file

@ -185,7 +185,10 @@ impl failure::Fail for Error {
fn cause(&self) -> Option<&failure::Fail> {
match *self {
Error::CallbackError { ref cause, .. } => Some(cause.as_ref()),
Error::ExternalError(ref err) => err.as_fail().cause(),
// Error::cause simply returns the contained Fail type, which we are already displaying
// and returning the backtrace for, no need to repeat it as the cause.
// When failure 1.0 is released, this can become `err.as_fail.cause()`
Error::ExternalError(ref err) => err.cause().cause(),
_ => None,
}
}