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

Commit 9bc988b

Browse files
committed
feat: port fail-rs, intro parking_lot
Signed-off-by: Chojan Shang <[email protected]>
1 parent 6cd91d5 commit 9bc988b

File tree

7 files changed

+130
-207
lines changed

7 files changed

+130
-207
lines changed

CHANGELOG.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 76 deletions
This file was deleted.

Cargo.toml

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

1616
[dependencies]
1717
log = { version = "0.4", features = ["std"] }
18-
lazy_static = "1.2"
18+
lazy_static = "1.4"
19+
parking_lot = "0.11"
1920
rand = "0.8"
2021

2122
[features]

LICENSE renamed to LICENSE-APACHE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2019 TiKV Project Authors.
189+
Copyright 2019 TiKV Project Authors, 2021 RiteLabs.
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

LICENSE-MIT

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 RiteLabs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)