Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove workspace when building a contract #377

Closed
Tracked by #9354
cmichi opened this issue Nov 29, 2021 · 1 comment · Fixed by #378
Closed
Tracked by #9354

Remove workspace when building a contract #377

cmichi opened this issue Nov 29, 2021 · 1 comment · Fixed by #378

Comments

@cmichi
Copy link
Collaborator

cmichi commented Nov 29, 2021

In use-ink/ink#1054 @xgreenx found that if the [workspace] is removed from a contract's Cargo.toml the size decreases potentially significantly.

We should have cargo-contract remove the [workspace] section before building the contract.

@xgreenx
Copy link
Collaborator

xgreenx commented Nov 29, 2021

Adding of empty [workspace] ignores [workspace] from a parent. So it can be a solution=)

[workspace]
members = []

So I can handle that=)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants