Skip to content

Commit

Permalink
chore: Remove dependency on dfn_* library from message test canister (#…
Browse files Browse the repository at this point in the history
…4024)

Co-authored-by: IDX GitHub Automation <infra+github-automation@dfinity.org>
  • Loading branch information
dsarlis and IDX GitHub Automation authored Feb 21, 2025
1 parent 7c85d44 commit 2f51d7e
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 16 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion rs/rust_canisters/dfn_core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ package(default_visibility = [
"//rs/registry/canister:__pkg__",
"//rs/rust_canisters:__subpackages__",
"//rs/sns:__subpackages__",
"//rs/tests/test_canisters/message:__pkg__",
])

DEPENDENCIES = [
Expand Down
2 changes: 0 additions & 2 deletions rs/tests/test_canisters/message/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ package(default_visibility = ["//rs:system-tests-pkg"])

DEPENDENCIES = [
# Keep sorted.
"//rs/rust_canisters/dfn_candid",
"//rs/rust_canisters/dfn_core",
"@crate_index//:candid",
"@crate_index//:ic-cdk",
"@crate_index//:serde",
Expand Down
2 changes: 0 additions & 2 deletions rs/tests/test_canisters/message/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ documentation.workspace = true

[dependencies]
candid = { workspace = true }
dfn_candid = {path = "../../../rust_canisters/dfn_candid"}
dfn_core = {path = "../../../rust_canisters/dfn_core"}
ic-cdk = { workspace = true }
ic-cdk-macros = { workspace = true }
serde = { workspace = true }
10 changes: 1 addition & 9 deletions rs/tests/test_canisters/message/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
use candid::candid_method;
use dfn_candid::candid_one;
use dfn_core::over_async_may_reject;
use ic_message::ForwardParams;
use std::cell::RefCell;

Expand All @@ -18,12 +15,7 @@ fn read() -> Option<String> {
MSG.with(|msg| (*msg.borrow()).clone())
}

#[export_name = "canister_update forward"]
fn forward_() {
over_async_may_reject(candid_one, forward)
}

#[candid_method(update, rename = "forward")]
#[ic_cdk_macros::update]
pub async fn forward(
ForwardParams {
receiver,
Expand Down

0 comments on commit 2f51d7e

Please sign in to comment.