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

chore: remove rlib tag from examples #472

Merged
merged 7 commits into from
Aug 10, 2021
Merged

chore: remove rlib tag from examples #472

merged 7 commits into from
Aug 10, 2021

Conversation

austinabell
Copy link
Contributor

@austinabell austinabell commented Jul 13, 2021

  • rlib crate type should only be needed when using for type inference on cross contract sim tests. This removes from all others and keeps the ones used for sim tests for now

There should probably be a better script setup to only compile it as such when running sim tests and the regular build would ignore this. Can probably use crate-type flags to do so.

Edit: I don't think there is a better way to handle this. The crate-type flag's behaviour is very undefined and cannot be relied on and I don't think would work in this example for testing. More discussion around this here rust-lang/cargo#4881. We could maybe do something hacky around modifying Cargo.toml files programmatically for the build to remove rlib, but this doesn't seem that extensible.

cc: @mikedotexe possibly the sim docs you are writing should have a note about this being needed, if we start to move away from it as a default?

@austinabell austinabell merged commit 102b2f5 into master Aug 10, 2021
@austinabell austinabell deleted the austin/rlib-rem branch August 10, 2021 18:49
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 this pull request may close these issues.

2 participants