Skip to content
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.

Auto generate ecalls FFI rust code using bindgen in enigma-core app #165

Merged
merged 7 commits into from
May 28, 2019

Conversation

elichai
Copy link
Contributor

@elichai elichai commented May 28, 2019

This auto generates the FFI bindings in the app's build.rs file.

@elichai elichai requested review from AvishaiW and moriaab May 28, 2019 10:36
@@ -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.
Copy link
Contributor

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()
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@moriaab moriaab left a 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!

@elichai elichai merged commit 916203c into develop May 28, 2019
@elichai elichai deleted the bindgen-core-app branch May 28, 2019 14:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants