Skip to content

Commit

Permalink
refactor: reorg into Cargo workspace (#55)
Browse files Browse the repository at this point in the history
* refactor: reorg into Cargo workspace

The goal is to prepare for the addition of the TAP aggregator. The
current TAP library code is moved to lib/, and we'll be able to add more
targets such as aggregator/.

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* refactor: rename lib/ and package to tap_core/

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

---------

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>
  • Loading branch information
aasseman committed Apr 24, 2023
1 parent aabfe1d commit aa6ea9e
Show file tree
Hide file tree
Showing 26 changed files with 38 additions and 29 deletions.
34 changes: 6 additions & 28 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
[package]
name="timeline_aggregation_protocol"
[workspace]
members = [
"tap_core"
]

[workspace.package]
version="0.1.0"
edition = "2021"
license = "Apache-2.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]

primitive-types={version="0.12.1", features=["serde"]}
k256={version="0.13.0", features=["ecdsa", "serde"]}
rand_core="0.6.4"
serde={ version="1.0", features=["derive"] }
rand="0.8.5"
thiserror="1.0.38"
ethereum-types={version="0.14.1"}
rstest = "0.16.0"
ethers = "2.0.0"
ethers-core = "2.0.0"
ethers-contract = "2.0.0"
ethers-contract-derive = "2.0.0"
criterion = "0.4.0"
strum = "0.24.1"
strum_macros = "0.24.3"
tiny-keccak = { version = "2.0.2", default-features = false }


[[bench]]
name = 'timeline_aggretion_protocol_benchmark'
harness = false
31 changes: 31 additions & 0 deletions tap_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[package]
name="tap_core"
version.workspace = true
edition.workspace = true
license.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]

primitive-types={version="0.12.1", features=["serde"]}
k256={version="0.13.0", features=["ecdsa", "serde"]}
rand_core="0.6.4"
serde={ version="1.0", features=["derive"] }
rand="0.8.5"
thiserror="1.0.38"
ethereum-types={version="0.14.1"}
rstest = "0.16.0"
ethers = "2.0.0"
ethers-core = "2.0.0"
ethers-contract = "2.0.0"
ethers-contract-derive = "2.0.0"
criterion = "0.4.0"
strum = "0.24.1"
strum_macros = "0.24.3"
tiny-keccak = { version = "2.0.2", default-features = false }


[[bench]]
name = 'timeline_aggretion_protocol_benchmark'
harness = false
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use ethereum_types::Address;
use k256::ecdsa::{SigningKey, VerifyingKey};
use rand_core::OsRng;
use std::str::FromStr;
use timeline_aggregation_protocol::{
use tap_core::{
eip_712_signed_message::EIP712SignedMessage,
receipt_aggregate_voucher::ReceiptAggregateVoucher, tap_receipt::Receipt,
};
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit aa6ea9e

Please sign in to comment.