This repository has been archived by the owner on Jun 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Auto generate ecalls FFI rust code using bindgen in enigma-core app #165
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AvishaiW
reviewed
May 28, 2019
@@ -19,7 +19,8 @@ failure = "0.1.3" | |||
rustc-hex = "1.0.0" # 2.0.1? | |||
dirs = "1.0.4" | |||
# TODO: Add compression as a feature and use it in `set_compression_type()` | |||
rocksdb = { version = "0.12.2", default-features = false } # TODO: Update the rocksdb lib https://github.com/rust-rocksdb/rust-rocksdb/issues/304 | |||
#rocksdb = { version = "0.12.2", default-features = false } | |||
rocksdb = { git = "https://github.com/rust-rocksdb/rust-rocksdb.git", rev = "067c72a", default-features = false } # replace when there's a new version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
|
||
let edl = format!("{}/edl", rust_sgx_sdk); | ||
|
||
let bindings = builder() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be helpful if you can add documentation to this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. this will require more docs, I'll do that after I merge bindgen
all over if I have the time.
moriaab
approved these changes
May 28, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great addition to the core code!
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This auto generates the FFI bindings in the app's
build.rs
file.