n0-computer / n0-computer/irpc

The `rpc_requests` macro requires the `tracing` library to be installed

Open
#43 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
57
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Trying to use irpc::rpc_requests on a struct in a crate without the tracing macro will make it fail.

I think it should be possible to have tracing as a dependency in irpc-derive and then the macro should work? (Ideally we also use some macro hygene like using ::tracing, etc.)

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 at the irpc::rpc_requests macro and the irpc-derive dependency declaration, then inspect how the generated expansion resolves tracing. Reproduce it in a consumer crate without tracing and add a regression test; done means the macro compiles there while preserving tracing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.