Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit 9c6b283

Browse files
authored
*: bump 0.4 (#53)
Signed-off-by: Jay Lee <[email protected]>
1 parent 2cf1175 commit 9c6b283

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 0.4.0 - 2020-04-13
2+
3+
- re-arrange macros to avoid leaking
4+
- support callback action
5+
- update rand to 0.7
6+
17
# 0.3.0 - 2019-07-15
28

39
- fail-rs is now 2018-edition compatible!

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "fail"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
authors = ["The TiKV Project Developers"]
55
license = "Apache-2.0"
66
keywords = ["failpoints", "fail"]
7-
repository = "https://github.com/pingcap/fail-rs"
7+
repository = "https://github.com/tikv/fail-rs"
88
readme = "README.md"
9-
homepage = "https://github.com/pingcap/fail-rs"
9+
homepage = "https://github.com/tikv/fail-rs"
1010
documentation = "https://docs.rs/fail"
11-
description = "Failpoints for rust."
11+
description = "Fail points for rust."
1212
categories = ["development-tools::testing"]
1313
edition = "2018"
1414
exclude = ["/.github/*", "/.travis.yml", "/appveyor.yml"]
@@ -22,7 +22,7 @@ rand = "0.7"
2222
failpoints = []
2323

2424
[badges]
25-
travis-ci = { repository = "pingcap/fail-rs" }
25+
travis-ci = { repository = "tikv/fail-rs" }
2626
appveyor = { repository = "busyjay/fail-rs" }
2727

2828
[package.metadata.docs.rs]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# fail-rs
22

3-
[![Build Status](https://travis-ci.org/pingcap/fail-rs.svg?branch=master)](https://travis-ci.org/pingcap/fail-rs)
3+
[![Build Status](https://travis-ci.org/tikv/fail-rs.svg?branch=master)](https://travis-ci.org/tikv/fail-rs)
44
[![Crates.io](https://img.shields.io/crates/v/fail.svg?maxAge=2592000)](https://crates.io/crates/fail)
55

66
[Documentation](https://docs.rs/fail).
@@ -17,7 +17,7 @@ First, add this to your `Cargo.toml`:
1717

1818
```toml
1919
[dependencies]
20-
fail = "0.3"
20+
fail = "0.4"
2121
```
2222

2323
Now you can import the `fail_point!` macro from the `fail` crate and use it to inject dynamic failures.

src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//!
1919
//! ```toml
2020
//! [dependencies]
21-
//! fail = "0.3"
21+
//! fail = "0.4"
2222
//! ```
2323
//!
2424
//! Now you can import the `fail_point!` macro from the `fail` crate and use it
@@ -191,7 +191,7 @@
191191
//!
192192
//! ```sh
193193
//! $ FAILPOINTS=read-dir=return cargo run --features fail/failpoints
194-
//! Compiling failpointtest v0.1.0 (/home/brian/pingcap/failpointtest)
194+
//! Compiling failpointtest v0.1.0
195195
//! Finished dev [unoptimized + debuginfo] target(s) in 2.38s
196196
//! Running `target/debug/failpointtest`
197197
//! Error: Custom { kind: PermissionDenied, error: StringError("error") }
@@ -205,15 +205,16 @@
205205
//! That's the basics of fail points: defining them with `fail_point!`,
206206
//! configuring them with `FAILPOINTS` and `fail::cfg`, and configuring them to
207207
//! panic and return early. But that's not all they can do. To learn more see
208-
//! the documentation for [`cfg`](fn.cfg.html) and
208+
//! the documentation for [`cfg`](fn.cfg.html),
209+
//! [`cfg_callback`](fn.cfg_callback.html) and
209210
//! [`fail_point!`](macro.fail_point.html).
210211
//!
211212
//!
212213
//! ## Usage considerations
213214
//!
214215
//! For most effective fail point usage, keep in mind the following:
215216
//!
216-
//! - Failpoints are disabled by default and can be enabled via the `failpoints`
217+
//! - Fail points are disabled by default and can be enabled via the `failpoints`
217218
//! feature. When failpoints are disabled, no code is generated by the macro.
218219
//! - Carefully consider complex, concurrent, non-deterministic combinations of
219220
//! fail points. Put test cases exercising fail points into their own test

0 commit comments

Comments
 (0)