Skip to content

Fix feature set on casper-contract#2263

Merged
casperlabs-bors-ng[bot] merged 1 commit intocasper-network:release-1.4.1from
Fraser999:2261-fix-features
Oct 22, 2021
Merged

Fix feature set on casper-contract#2263
casperlabs-bors-ng[bot] merged 1 commit intocasper-network:release-1.4.1from
Fraser999:2261-fix-features

Conversation

@Fraser999
Copy link
Contributor

This PR fixes an accidental breaking change in the Rust features of the casper-contract crate, introduced in the 1.4.0 version.

The previous 1.3.x behavior has been reinstated, whereby if the std feature is enabled, casper-contract does not provide the wee-alloc allocator, and instead explicitly imports the std library with its allocator.

There is also a regression test added in the form of a test contract which enables the std feature of casper-contract.

Furthermore these changes were tested against the Payment Contract Example and Casper Keys Manager with their recent changes (#3 and #18 respectively) reverted.

Closes #2261.

@Fraser999
Copy link
Contributor Author

bors merge

@casperlabs-bors-ng
Copy link
Contributor

Build succeeded:

@casperlabs-bors-ng casperlabs-bors-ng bot merged commit 5f6146a into casper-network:release-1.4.1 Oct 22, 2021
@Fraser999 Fraser999 deleted the 2261-fix-features branch October 22, 2021 21:14
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.

4 participants