diff --git a/Cargo.toml b/Cargo.toml index 200d1904..5afe0516 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 @@ -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 } @@ -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 = [] } - diff --git a/ipld/resolver/Cargo.toml b/ipld/resolver/Cargo.toml new file mode 100644 index 00000000..50659c9d --- /dev/null +++ b/ipld/resolver/Cargo.toml @@ -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] diff --git a/ipld/resolver/src/lib.rs b/ipld/resolver/src/lib.rs new file mode 100644 index 00000000..7d12d9af --- /dev/null +++ b/ipld/resolver/src/lib.rs @@ -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); + } +} diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000..4518cf19 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,4 @@ +[toolchain] +channel = "nightly-2022-10-03" +components = ["clippy", "llvm-tools-preview", "rustfmt"] +targets = ["wasm32-unknown-unknown"]