Skip to content

Commit 048f007

Browse files
committed
Rename testing module and feature to dev to avoid confusion with test
1 parent 31590a0 commit 048f007

File tree

14 files changed

+13
-13
lines changed

14 files changed

+13
-13
lines changed

examples/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ tracing = "0.1"
2121
tokio = { version = "1", features = ["rt", "sync", "time", "macros"] }
2222
rand = "0.8"
2323
digest = "0.10"
24-
manul = { path = "../manul", features = ["testing"] }
24+
manul = { path = "../manul", features = ["dev"] }

examples/src/simple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ mod tests {
410410
use alloc::collections::BTreeSet;
411411

412412
use manul::{
413+
dev::{run_sync_with_tracing, BinaryFormat, TestSessionParams, TestSigner},
413414
session::signature::Keypair,
414-
testing::{run_sync_with_tracing, BinaryFormat, TestSessionParams, TestSigner},
415415
};
416416
use rand_core::OsRng;
417417

examples/src/simple_chain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ mod tests {
6868
use alloc::collections::BTreeSet;
6969

7070
use manul::{
71+
dev::{run_sync_with_tracing, BinaryFormat, TestSessionParams, TestSigner},
7172
session::signature::Keypair,
72-
testing::{run_sync_with_tracing, BinaryFormat, TestSessionParams, TestSigner},
7373
};
7474
use rand_core::OsRng;
7575

examples/src/simple_malicious.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ use core::fmt::Debug;
33

44
use manul::{
55
combinators::misbehave::{Misbehaving, MisbehavingEntryPoint},
6+
dev::{run_sync_with_tracing, BinaryFormat, TestSessionParams, TestSigner},
67
protocol::{
78
Artifact, BoxedRound, Deserializer, DirectMessage, EntryPoint, LocalError, PartyId, ProtocolMessagePart,
89
RoundId, Serializer,
910
},
1011
session::signature::Keypair,
11-
testing::{run_sync_with_tracing, BinaryFormat, TestSessionParams, TestSigner},
1212
};
1313
use rand_core::{CryptoRngCore, OsRng};
1414

examples/tests/async_runner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ extern crate alloc;
33
use alloc::collections::{BTreeMap, BTreeSet};
44

55
use manul::{
6+
dev::{BinaryFormat, TestSessionParams, TestSigner},
67
protocol::Protocol,
78
session::{
89
signature::Keypair, CanFinalize, LocalError, Message, RoundOutcome, Session, SessionId, SessionParameters,
910
SessionReport,
1011
},
11-
testing::{BinaryFormat, TestSessionParams, TestSigner},
1212
};
1313
use manul_example::simple::{SimpleProtocol, SimpleProtocolEntryPoint};
1414
use rand::Rng;

manul/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tracing-subscriber = { version = "0.3", features = ["std", "fmt", "env-filter"]
4444
tracing = { version = "0.1", default-features = false, features = ["std"] }
4545

4646
[features]
47-
testing = ["rand", "postcard", "serde_json", "tracing/std", "serde-persistent-deserializer", "tracing-subscriber"]
47+
dev = ["rand", "postcard", "serde_json", "tracing/std", "serde-persistent-deserializer", "tracing-subscriber"]
4848

4949
[package.metadata.docs.rs]
5050
all-features = true
@@ -53,4 +53,4 @@ rustdoc-args = ["--cfg", "docsrs"]
5353
[[bench]]
5454
name = "empty_rounds"
5555
harness = false
56-
required-features = ["testing"]
56+
required-features = ["dev"]

manul/benches/empty_rounds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ use core::fmt::Debug;
55

66
use criterion::{criterion_group, criterion_main, Criterion};
77
use manul::{
8+
dev::{run_sync, BinaryFormat, TestSessionParams, TestSigner},
89
protocol::{
910
Artifact, BoxedRound, Deserializer, DirectMessage, EchoBroadcast, EntryPoint, FinalizeError, FinalizeOutcome,
1011
LocalError, NormalBroadcast, PartyId, Payload, Protocol, ProtocolMessagePart, ReceiveError, Round, RoundId,
1112
Serializer,
1213
},
1314
session::signature::Keypair,
14-
testing::{run_sync, BinaryFormat, TestSessionParams, TestSigner},
1515
};
1616
use rand_core::{CryptoRngCore, OsRng};
1717
use serde::{Deserialize, Serialize};
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)