diff --git a/Cargo.toml b/Cargo.toml index 194360e..54a3f2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,5 +2,5 @@ resolver = "2" members = [ - "serde-itf", + "itf", ] diff --git a/serde-itf/Cargo.toml b/itf/Cargo.toml similarity index 92% rename from serde-itf/Cargo.toml rename to itf/Cargo.toml index fa5e66c..faca6a1 100644 --- a/serde-itf/Cargo.toml +++ b/itf/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "serde-itf" +name = "itf" version = "0.1.0" edition = "2021" diff --git a/serde-itf/src/de.rs b/itf/src/de.rs similarity index 100% rename from serde-itf/src/de.rs rename to itf/src/de.rs diff --git a/serde-itf/src/error.rs b/itf/src/error.rs similarity index 100% rename from serde-itf/src/error.rs rename to itf/src/error.rs diff --git a/serde-itf/src/lib.rs b/itf/src/lib.rs similarity index 100% rename from serde-itf/src/lib.rs rename to itf/src/lib.rs diff --git a/serde-itf/src/state.rs b/itf/src/state.rs similarity index 100% rename from serde-itf/src/state.rs rename to itf/src/state.rs diff --git a/serde-itf/src/trace.rs b/itf/src/trace.rs similarity index 100% rename from serde-itf/src/trace.rs rename to itf/src/trace.rs diff --git a/serde-itf/src/value.rs b/itf/src/value.rs similarity index 100% rename from serde-itf/src/value.rs rename to itf/src/value.rs diff --git a/serde-itf/src/value/bigint.rs b/itf/src/value/bigint.rs similarity index 100% rename from serde-itf/src/value/bigint.rs rename to itf/src/value/bigint.rs diff --git a/serde-itf/src/value/map.rs b/itf/src/value/map.rs similarity index 100% rename from serde-itf/src/value/map.rs rename to itf/src/value/map.rs diff --git a/serde-itf/src/value/set.rs b/itf/src/value/set.rs similarity index 100% rename from serde-itf/src/value/set.rs rename to itf/src/value/set.rs diff --git a/serde-itf/src/value/tuple.rs b/itf/src/value/tuple.rs similarity index 100% rename from serde-itf/src/value/tuple.rs rename to itf/src/value/tuple.rs diff --git a/serde-itf/src/value/unserializable.rs b/itf/src/value/unserializable.rs similarity index 100% rename from serde-itf/src/value/unserializable.rs rename to itf/src/value/unserializable.rs diff --git a/serde-itf/tests/decide_non_proposer.rs b/itf/tests/decide_non_proposer.rs similarity index 98% rename from serde-itf/tests/decide_non_proposer.rs rename to itf/tests/decide_non_proposer.rs index 1472b05..0470344 100644 --- a/serde-itf/tests/decide_non_proposer.rs +++ b/itf/tests/decide_non_proposer.rs @@ -230,6 +230,6 @@ where #[test] fn deserialize() { let data = include_str!("../tests/fixtures/DecideNonProposerTest0.itf.json"); - let trace = serde_itf::trace_from_str::(data).unwrap(); + let trace = itf::trace_from_str::(data).unwrap(); dbg!(trace); } diff --git a/serde-itf/tests/fixtures/DecideNonProposerTest0.itf.json b/itf/tests/fixtures/DecideNonProposerTest0.itf.json similarity index 100% rename from serde-itf/tests/fixtures/DecideNonProposerTest0.itf.json rename to itf/tests/fixtures/DecideNonProposerTest0.itf.json diff --git a/serde-itf/tests/fixtures/MissionariesAndCannibals.itf.json b/itf/tests/fixtures/MissionariesAndCannibals.itf.json similarity index 100% rename from serde-itf/tests/fixtures/MissionariesAndCannibals.itf.json rename to itf/tests/fixtures/MissionariesAndCannibals.itf.json diff --git a/serde-itf/tests/fixtures/TestInsufficientSuccess9.itf.json b/itf/tests/fixtures/TestInsufficientSuccess9.itf.json similarity index 100% rename from serde-itf/tests/fixtures/TestInsufficientSuccess9.itf.json rename to itf/tests/fixtures/TestInsufficientSuccess9.itf.json diff --git a/serde-itf/tests/insufficient_success.rs b/itf/tests/insufficient_success.rs similarity index 91% rename from serde-itf/tests/insufficient_success.rs rename to itf/tests/insufficient_success.rs index 81aff5a..d75d22e 100644 --- a/serde-itf/tests/insufficient_success.rs +++ b/itf/tests/insufficient_success.rs @@ -2,8 +2,8 @@ use std::collections::HashMap; +use itf::value::BigInt; use serde::Deserialize; -use serde_itf::value::BigInt; type Balance = HashMap; type Balances = HashMap; @@ -52,7 +52,7 @@ struct State { #[ignore] fn deserialize() { let data = include_str!("../tests/fixtures/TestInsufficientSuccess9.itf.json"); - let trace = serde_itf::trace_from_str::(data).unwrap(); + let trace = itf::trace_from_str::(data).unwrap(); dbg!(trace); } diff --git a/serde-itf/tests/missionaries_and_cannibals.rs b/itf/tests/missionaries_and_cannibals.rs similarity index 93% rename from serde-itf/tests/missionaries_and_cannibals.rs rename to itf/tests/missionaries_and_cannibals.rs index 66ec864..a99b479 100644 --- a/serde-itf/tests/missionaries_and_cannibals.rs +++ b/itf/tests/missionaries_and_cannibals.rs @@ -37,7 +37,7 @@ struct State { #[test] fn cannibals() { let data = include_str!("../tests/fixtures/MissionariesAndCannibals.itf.json"); - let trace = serde_itf::trace_from_str::(data).unwrap(); + let trace = itf::trace_from_str::(data).unwrap(); dbg!(trace); }