Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
IPC-17: Create ipld/resolver crate (#32)
Browse files Browse the repository at this point in the history
* IPC-17: Add rust toolchain file.

* IPC-17: Create ipld/resolver crate in the workspace

* IPC-17: Use license-file
  • Loading branch information
aakoshh authored Feb 23, 2023
1 parent 98ea060 commit fbce511
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
[workspace]
members = [".", "ipld/resolver"]

[workspace.package]
authors = ["Protocol Labs"]
edition = "2021"
license-file = "LICENSE"

[package]
name = "ipc-client"
version = "0.1.0"
edition = "2021"
edition.workspace = true
license-file.workspace = true

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

Expand All @@ -27,11 +36,11 @@ toml = "0.7.2"
url = { version = "2.3.1", features = ["serde"] }
warp = "0.3.3"
bytes = "1.4.0"
clap = {version = "4.1.4", features = ["env", "derive"] }
clap = { version = "4.1.4", features = ["env", "derive"] }
thiserror = "1.0.38"

fvm_shared = {workspace = true}
fil_actors_runtime = {workspace = true}
fvm_shared = { workspace = true }
fil_actors_runtime = { workspace = true }
ipc-sdk = { workspace = true }
ipc-subnet-actor = { workspace = true }
ipc-gateway = { workspace = true }
Expand All @@ -42,4 +51,3 @@ fil_actors_runtime = { git = "https://github.com/consensus-shipyard/fvm-utils",
ipc-sdk = { git = "https://github.com/consensus-shipyard/ipc-actors.git" }
ipc-subnet-actor = { git = "https://github.com/consensus-shipyard/ipc-actors.git", features = [] }
ipc-gateway = { git = "https://github.com/consensus-shipyard/ipc-actors.git", features = [] }

11 changes: 11 additions & 0 deletions ipld/resolver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "ipc_ipld_resolver"
description = "P2P library to resolve IPLD content across IPC subnets."
version = "0.1.0"
authors.workspace = true
edition.workspace = true
license-file.workspace = true

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

[dependencies]
14 changes: 14 additions & 0 deletions ipld/resolver/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
channel = "nightly-2022-10-03"
components = ["clippy", "llvm-tools-preview", "rustfmt"]
targets = ["wasm32-unknown-unknown"]

0 comments on commit fbce511

Please sign in to comment.