From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- third_party/rust/xfailure/.cargo-checksum.json | 1 + third_party/rust/xfailure/Cargo.toml | 22 ++++++++++++++++++++++ third_party/rust/xfailure/src/lib.rs | 2 ++ 3 files changed, 25 insertions(+) create mode 100644 third_party/rust/xfailure/.cargo-checksum.json create mode 100644 third_party/rust/xfailure/Cargo.toml create mode 100644 third_party/rust/xfailure/src/lib.rs (limited to 'third_party/rust/xfailure') diff --git a/third_party/rust/xfailure/.cargo-checksum.json b/third_party/rust/xfailure/.cargo-checksum.json new file mode 100644 index 0000000000..a24fa7d736 --- /dev/null +++ b/third_party/rust/xfailure/.cargo-checksum.json @@ -0,0 +1 @@ +{"files":{"Cargo.toml":"12d187a8c4289d88c2dcc1a016078e49686bdf42e4ba67f6e11e96308352b054","src/lib.rs":"77f33fd4dabba53f087d53e746843f8aeb85bcf1c7badd8216380e24d97aa3b9"},"package":"da90eac47bf1d7871b75004b9b631d107df15f37669383b23f0b5297bc7516b6"} \ No newline at end of file diff --git a/third_party/rust/xfailure/Cargo.toml b/third_party/rust/xfailure/Cargo.toml new file mode 100644 index 0000000000..3887191293 --- /dev/null +++ b/third_party/rust/xfailure/Cargo.toml @@ -0,0 +1,22 @@ +# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO +# +# When uploading crates to the registry Cargo will automatically +# "normalize" Cargo.toml files for maximal compatibility +# with all versions of Cargo and also rewrite `path` dependencies +# to registry (e.g. crates.io) dependencies +# +# If you believe there's an error in this file please file an +# issue against the rust-lang/cargo repository. If you're +# editing this file be aware that the upstream Cargo.toml +# will likely look very different (and much more reasonable) + +[package] +name = "xfailure" +version = "0.1.0" +authors = ["Frank Denis "] +description = "Additional helper macros for failure" +homepage = "https://github.com/jedisct1/rust-xfailure" +license = "ISC" +repository = "https://github.com/jedisct1/rust-xfailure" + +[dependencies] diff --git a/third_party/rust/xfailure/src/lib.rs b/third_party/rust/xfailure/src/lib.rs new file mode 100644 index 0000000000..4676c69685 --- /dev/null +++ b/third_party/rust/xfailure/src/lib.rs @@ -0,0 +1,2 @@ +#[macro_export] +macro_rules! xbail { ($e:expr) => (Err($e)?); } -- cgit v1.2.3