dfinity / dfinity/canbench

Enhancement: Avoid dependency on ic-cdk

Open
#32 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
21
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Currently the bench macro requires users to depend on ic-cdk. That dependency can potentially be avoided by exporting the method as a query directly and handling the serialization/deserialization of the args/reply manually as opposed to relying the ic-cdk's query macro.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the bench macro and tracing how it currently depends on ic-cdk's query macro. Review the query macro's argument and reply serialization behavior, then determine whether the benchmark entry point can expose a query without that dependency. Done means users no longer need to depend on ic-cdk while argument and reply handling remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.