ink icon indicating copy to clipboard operation
ink copied to clipboard

Move away from non standard project layout

Open athei opened this issue 1 year ago • 2 comments

I see no reason why we don't store the contract under src/lib.rs. By storing it under lib.rs we always need to add a Cargo.toml entry. We should stick to the convention and move to src/lib.rs. We then don't add any lib entry to our template. The default will then be to create a rlib crate which is exactly what we want as this is what you need to depend on the crate.

When building the actual contract cargo contract will build the crate as a bin target (as it should).

athei avatar Apr 14 '23 09:04 athei

That should be cargo-contract issue

SkymanOne avatar Apr 14 '23 09:04 SkymanOne

I guess we still need to update all the integration-tests here too

ascjones avatar Apr 14 '23 09:04 ascjones