-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
63 lines (56 loc) · 2.04 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[package]
name = "unimock"
version = "0.6.7"
authors = ["Audun Halland <[email protected]>"]
edition = "2021"
rust-version = "1.70"
license = "MIT"
description = "A versatile and developer-friendly trait mocking library"
repository = "https://github.com/audunhalland/unimock/"
keywords = ["mocking", "mock", "testing", "test"]
categories = ["development-tools", "development-tools::testing", "no-std"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["std", "pretty-print"]
std = ["once_cell/std"]
pretty-print = ["dep:pretty_assertions"]
fragile = ["std", "dep:fragile"]
spin-lock = ["dep:spin"]
critical-section = ["once_cell/critical-section"]
mock-core = []
mock-std = ["std", "mock-core"]
mock-futures-io-0-3 = ["std", "dep:futures-io-0-3"]
mock-tokio-1 = ["std", "dep:tokio-1"]
mock-embedded-hal-1 = ["dep:embedded-hal-1", "mock-core"]
nightly-tests = []
unstable-doc-cfg = []
[dependencies]
unimock_macros = { path = "unimock_macros", version = "0.6.7" }
once_cell = { version = "1.19.0", default-features = false }
polonius-the-crab = "0.4.1"
pretty_assertions = { version = "1.4.0", optional = true }
fragile = { version = "2.0.0", optional = true }
spin = { version = "0.9.8", optional = true }
futures-io-0-3 = { package = "futures-io", version = "0.3.30", optional = true }
tokio-1 = { package = "tokio", version = "1.36", default-features = false, optional = true }
embedded-hal-1 = { package = "embedded-hal", version = "1.0.0", optional = true }
[dev-dependencies]
async-trait = "0.1"
critical-section = { version = "1.1.2", features = ["std"] }
tokio-1 = { package = "tokio", version = "1.36", features = ["full"] }
rustversion = "1"
[lib]
# do not run doctest by default with `cargo hack`. They are tested with a separate `cargo test --doc` run.
doctest = false
[package.metadata.docs.rs]
features = [
"unstable-doc-cfg",
"fragile",
"mock-core",
"mock-std",
"mock-futures-io-0-3",
"mock-tokio-1",
"mock-embedded-hal-1",
]
[workspace]
members = ["unimock_macros"]