Vendor dependencies

This commit is contained in:
2026-08-01 16:11:49 +03:00
parent 7f139a0241
commit 6b5e7f0f8b
29706 changed files with 9575646 additions and 0 deletions
@@ -0,0 +1 @@
{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"20d553d1f466d55872a88648614d7bd09ecc7d8e29f270bde55b476775401e40","Cargo.lock":"14b1d508711f9ef036db073f09dabdc531388f8c2c3275d8800f102a0245e8c7","Cargo.toml":"433af16df290ea722299bae1bc3deeddf5f1b5dd0ea4dade4314a67a37445a0b","Cargo.toml.orig":"58d8741b65ca3a6737f459b38161f2df8de73d92d4f0eedccea89ef78113da4c","LICENSE":"ac7e05bd11cc1cfc3f9452c1b9986a9b1d54e180fa88e44e69caf955f95dc8a6","README.md":"f2c45c74c939294a5801bc8b6c903a74740cd3dce7523fc80b43b074fffbb4c6","src/lib.rs":"999fb7c3fe4c0bf633a13b822ae50019abe5045704cf314524ec1c0667139d27"},"package":"94e153fc76e1c6a068703d6d29c508a0b15c061c4b7e43da59cc097bc342673c"}
@@ -0,0 +1,6 @@
{
"git": {
"sha1": "6181f64de942180231fdb9098dd0894bbd9e7472"
},
"path_in_vcs": "serial_test_derive"
}
+74
View File
@@ -0,0 +1,74 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "env_logger"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95b3f3e67048839cb0d0781f445682a35113da7121f7c949db0e2be96a4fbece"
dependencies = [
"log",
]
[[package]]
name = "log"
version = "0.4.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
[[package]]
name = "prettyplease"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d"
dependencies = [
"proc-macro2",
"syn",
]
[[package]]
name = "proc-macro2"
version = "1.0.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9695f8df41bb4f3d222c95a67532365f569318332d03d5f3f67f37b20e6ebdf0"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
version = "1.0.43"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc74d9a594b72ae6656596548f56f667211f8a97b3d4c3d467150794690dc40a"
dependencies = [
"proc-macro2",
]
[[package]]
name = "serial_test_derive"
version = "3.5.0"
dependencies = [
"env_logger",
"prettyplease",
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "syn"
version = "2.0.114"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "unicode-ident"
version = "1.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4"
+66
View File
@@ -0,0 +1,66 @@
# 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 are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2018"
rust-version = "1.68"
name = "serial_test_derive"
version = "3.5.0"
authors = ["Tom Parker-Shemilt <palfrey@tevp.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Helper crate for serial_test"
readme = "README.md"
categories = ["development-tools::testing"]
license = "MIT"
repository = "https://github.com/palfrey/serial_test/"
[features]
async = []
default = []
file_locks = []
test_logging = []
[lib]
name = "serial_test_derive"
path = "src/lib.rs"
proc-macro = true
[dependencies.proc-macro2]
version = "1.0.60"
features = ["proc-macro"]
default-features = false
[dependencies.quote]
version = "1"
default-features = false
[dependencies.syn]
version = "2"
features = [
"full",
"printing",
"parsing",
"clone-impls",
]
default-features = false
[dev-dependencies.env_logger]
version = ">=0.6.1"
default-features = false
[dev-dependencies.prettyplease]
version = "0.2"
default-features = false
+29
View File
@@ -0,0 +1,29 @@
[package]
name = "serial_test_derive"
description = "Helper crate for serial_test"
license = "MIT"
version = "3.5.0"
authors = ["Tom Parker-Shemilt <palfrey@tevp.net>"]
edition = "2018"
rust-version.workspace = true
readme = "README.md"
repository = "https://github.com/palfrey/serial_test/"
categories = ["development-tools::testing"]
[lib]
proc-macro = true
[dependencies]
quote = { version="1", default-features = false}
syn = { version="2", features=["full", "printing", "parsing", "clone-impls"], default-features = false}
proc-macro2 = { version="1.0.60", features = ["proc-macro"], default-features = false} # Because of https://github.com/dtolnay/proc-macro2/issues/356
[dev-dependencies]
env_logger = {version=">=0.6.1", default-features = false}
prettyplease = {version="0.2", default-features = false}
[features]
default = []
async = []
test_logging = []
file_locks = []
+19
View File
@@ -0,0 +1,19 @@
Copyright (c) 2018 Tom Parker-Shemilt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+65
View File
@@ -0,0 +1,65 @@
# serial_test
[![Version](https://img.shields.io/crates/v/serial_test.svg)](https://crates.io/crates/serial_test)
[![Downloads](https://img.shields.io/crates/d/serial_test)](https://crates.io/crates/serial_test)
[![Docs](https://docs.rs/serial_test/badge.svg)](https://docs.rs/serial_test/)
[![MIT license](https://img.shields.io/crates/l/serial_test.svg)](./LICENSE)
[![Build Status](https://github.com/palfrey/serial_test/actions/workflows/ci.yml/badge.svg)](https://github.com/palfrey/serial_test/actions)
[![MSRV: 1.68.0](https://flat.badgen.net/badge/MSRV/1.68.0/purple)](https://blog.rust-lang.org/2023/03/09/Rust-1.68.0/)
`serial_test` allows for the creation of serialised Rust tests using the `serial` attribute
e.g.
```rust
use serial_test::serial;
#[test]
#[serial]
fn test_serial_one() {
// Do things
}
#[test]
#[serial]
fn test_serial_another() {
// Do things
}
#[tokio::test]
#[serial]
async fn test_serial_another() {
// Do things asynchronously
}
```
Multiple tests with the `serial` attribute are guaranteed to be executed in serial. Ordering of the tests is not guaranteed however. Other tests with the `parallel` attribute may run at the same time as each other, but not at the same time as a test with `serial`. Tests with neither attribute may run at any time and no guarantees are made about their timing! Both support optional keys for defining subsets of tests to run in serial together, see docs for more details.
For cases like doctests and integration tests where the tests are run as separate processes, we also support `file_serial`, with
similar properties but based off file locking. Note that there are no guarantees about one test with `serial` and another with
`file_serial` as they lock using different methods.
All of the attributes can also be applied at a `mod` level and will be automagically applied to all test functions in that block.
## Inner Attributes
You can apply attributes to an inner test function using `inner_attrs`. This is useful for applying attributes like `ntest::timeout` that should only affect the test body, not the mutex/lock acquisition:
```rust
#[test]
#[serial(inner_attrs = [ntest::timeout(1000)])]
fn test_with_timeout() {
// The timeout only applies to this body, not the serial lock acquisition
}
```
This can be combined with keys: `#[serial(my_key, inner_attrs = [timeout(1000)])]`
## Usage
The minimum supported Rust version here is 1.68.0. Note this is minimum _supported_, as it may well compile with lower versions, but they're not supported at all. Upgrades to this will require at a major version bump. 1.x supports 1.51 if you need a lower version than that.
Add to your Cargo.toml
```toml
[dev-dependencies]
serial_test = "*"
```
plus `use serial_test::serial;` in your imports section.
You can then either add `#[serial]` or `#[serial(some_key)]` to tests as required.
File diff suppressed because it is too large Load Diff