For test purpose, I made a simple structure like this:
.
├── Cargo.toml
├── common
├── src
│ ├── Cargo.toml
│ ├── mandos
│ │ └── empty.scen.json
│ ├── sc_one
│ │ ├── Cargo.toml
│ │ ├── elrond.json
│ │ ├── mandos
│ │ │ └── empty.scen.json
│ │ ├── meta
│ │ │ ├── Cargo.toml
│ │ │ └── src
│ │ ├── src
│ │ │ └── empty.rs
│ │ ├── tests
│ │ │ ├── empty_mandos_go_test.rs
│ │ │ ├── empty_mandos_rs_test.rs
│ │ │ └── empty_rust_test.rs
│ │ ├── wallets
│ │ │ ├── observers
│ │ │ ├── users
│ │ │ └── validators
│ │ └── wasm
│ │ ├── Cargo.toml
│ │ └── src
│ └── sc_two
│ ├── Cargo.toml
│ ├── elrond.json
│ ├── mandos
│ │ └── empty.scen.json
│ ├── meta
│ │ ├── Cargo.toml
│ │ └── src
│ ├── src
│ │ └── empty.rs
│ ├── tests
│ │ ├── empty_mandos_go_test.rs
│ │ ├── empty_mandos_rs_test.rs
│ │ └── empty_rust_test.rs
│ ├── wallets
│ │ ├── observers
│ │ ├── users
│ │ └── validators
│ └── wasm
│ ├── Cargo.toml
│ └── src
└── wasm
The two smarts contracts were builded with erdpt contract build sc_ --template=empty --directory=src
I added a mandos folder after the src folder to be able to test interactions between the two contracts
When building a contract, I get the following error:
error: failed to parse manifest at `/[...]/src/Cargo.toml`
Caused by:
no targets specified in the manifest
either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present
However, no [lib] is specified in the dex/Cargo.toml from https://github.com/ElrondNetwork/sc-dex-rs, and it seems weird to specify one as src (and dex) are not smart contracts.
Do you know what I messed up here?
0 Comments