Closed hunjixin closed 2 years ago
Hey
Can you please provide a complete example of what you are doing (I don't understand)? I guess it should be possible to reproduce if put them in different modules in main.rs
did you import the trait you defined in main
i.e, ProofRpc
?
├── config
│ └── mod.rs
├── main.rs
└── proof_rpc
├── mod.rs
└── proof.rs
impl rpc in proof_rpc package and extend_with in main. but i got idea to solve, just pass iohandler to proof_rpc, and extend method in the package. work fine.
when define rpc train and impl in main file , work okay but when move rpc train and impl to sub mod, build fail
code
log