diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /third_party/rust/xfailure | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/xfailure')
-rw-r--r-- | third_party/rust/xfailure/.cargo-checksum.json | 1 | ||||
-rw-r--r-- | third_party/rust/xfailure/Cargo.toml | 22 | ||||
-rw-r--r-- | third_party/rust/xfailure/src/lib.rs | 2 |
3 files changed, 25 insertions, 0 deletions
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 <github@pureftpd.org>"] +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)?); } |