Skip to content

Commit

Permalink
feat: Create phaselock-types crate
Browse files Browse the repository at this point in the history
  • Loading branch information
nmccarty committed Feb 15, 2022
1 parent 343ab79 commit c0e3b34
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ tracing = "0.1.30"
tracing-error = "0.2.0"
tracing-futures = "0.2.5"
tracing-unwrap = "0.9.2"
phaselock-types = { path = "./phaselock-types", version = "0.0.6-dev" }

[dev-dependencies]
async-std = { version = "1.10.0", features = ["attributes"] }
Expand Down Expand Up @@ -69,3 +70,13 @@ opt-level = 3
## Enable LTO for release profile
[profile.release]
lto = "thin"


### Workspace
# The phaselock-types crate needs to be a seperate crate, as to not create a circular depenedncy
# when implementing traits externally
[workspace]

members = [
"phaselock-types"
]
11 changes: 11 additions & 0 deletions phaselock-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
authors = ["Nathan McCarty <[email protected]>"]
description = "Types and traits for the PhaseLock consesus module"
edition = "2021"
name = "phaselock-types"
readme = "README.md"
version = "0.0.6-dev"

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

[dependencies]
8 changes: 8 additions & 0 deletions phaselock-types/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let result = 2 + 2;
assert_eq!(result, 4);
}
}

0 comments on commit c0e3b34

Please sign in to comment.