https://github.com/rencryptofish/ethers-events-derive
issue importing a derive macro from ethers-rs
https://github.com/rencryptofish/ethers-events-derive
Last synced: 12 months ago
JSON representation
issue importing a derive macro from ethers-rs
- Host: GitHub
- URL: https://github.com/rencryptofish/ethers-events-derive
- Owner: rencryptofish
- Created: 2021-06-18T05:34:09.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-18T06:25:50.000Z (about 5 years ago)
- Last Synced: 2025-01-06T13:58:57.560Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ethers-events-derive
Having some issues importing derive macros from ethers-rs
The test is lib.rs, replicating the below test from ethers-contract:
https://github.com/gakonst/ethers-rs/blob/master/ethers-contract/tests/common/derive.rs
In ethers-contract/src/lib the derive macros are under the abigen feature which is included in cargo.toml
```
#[cfg(feature = "abigen")]
#[cfg_attr(docsrs, doc(cfg(feature = "abigen")))]
pub use ethers_contract_derive::{abigen, EthAbiType, EthEvent};
```
Main error
`error[E0433]: failed to resolve: use of undeclared crate or module ethers_core`
Resolution
```
use ethers::core as ethers_core;
use ethers::contract as ethers_contract;
```