Skip to content

Commit

Permalink
Rename serde-itf crate to itf
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Oct 26, 2023
1 parent e481cf7 commit 0823107
Show file tree
Hide file tree
Showing 19 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
resolver = "2"

members = [
"serde-itf",
"itf",
]
2 changes: 1 addition & 1 deletion serde-itf/Cargo.toml → itf/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "serde-itf"
name = "itf"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,6 @@ where
#[test]
fn deserialize() {
let data = include_str!("../tests/fixtures/DecideNonProposerTest0.itf.json");
let trace = serde_itf::trace_from_str::<State>(data).unwrap();
let trace = itf::trace_from_str::<State>(data).unwrap();
dbg!(trace);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

use std::collections::HashMap;

use itf::value::BigInt;
use serde::Deserialize;
use serde_itf::value::BigInt;

type Balance = HashMap<String, BigInt>;
type Balances = HashMap<String, Balance>;
Expand Down Expand Up @@ -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::<State>(data).unwrap();
let trace = itf::trace_from_str::<State>(data).unwrap();

dbg!(trace);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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::<State>(data).unwrap();
let trace = itf::trace_from_str::<State>(data).unwrap();

dbg!(trace);
}

0 comments on commit 0823107

Please sign in to comment.