Skip to content

Featureless entry point doesn't work in workspace configurations #2284

@larry0x

Description

@larry0x

The featureless entry point introduced in #2246 doesn't work for this case:

Suppose two contracts, "inner" and "outer", of which outer depends on inner.

When you run the optimizer, inner gets compiled first as primary package, where wasm exports are created.

Then, outer is compiled as primary package. Here, the intended way it would work is inner is compiled as a non-primary package, where wasm exports are NOT created.

However, since inner is already compiled as primary, cargo won't compiled it again. Cargo simply uses the primary build, which contains wasm exports. Thus, we get duplicate export error.

Minimal reproduction of error: https://github.com/larry0x/cosmwasm-featureless-entry-point-error

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions