-
Notifications
You must be signed in to change notification settings - Fork 266
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
thirdparty libs strategy and support #60
Comments
Good question! For the recipe, I have a blog article (but written in Chinese) about the porting process. Basically, if you use
or
And add
The (4) Add the import For the maintenance of popular crates, currently I don't have a clear idea. Some crates are very useful in SGX but less maintained such as bit-vec. I can maintain a fork on it. Some other crates such as ring are well maintained and change rapidly. I can try to work with the authors to support rust-sgx-sdk directly, so that we can use it without any modification. For Currently I think you can port it by yourself, or I can help you with rust-base58 since it's simple. I'm happy to add your ported version into the third_party directory :-) |
Just added a PR: #61 for base58 |
Pushed 477219f. I think it's working :-) |
You're quick! Thanks a lot. I've tried it but I'm still missing something. When building my project
what am I missing? |
@brenzi It sounds like you're using part of the sgx libraries from crates.io and part from github. If you're using @dingelish's third_party libraries you must use the |
@elichai Thanks, that was it! |
but to come back on the topic: wouldn't it be more sustainable to fork all these libraries individualy and submit PR's (that might never be merged...), but it would be easier to rebase on top of upstream improvements. |
As a follow-up: I've filed an issue with rust-lang: Please go vote for this issue, if you're suffering from |
I'm trying to port rust-base58 library. I see that you've ported quite a few libs in third_party but I don't see how these will be supported and updated in the long run. Wouldn't it be better to fork these libs separately and reference them by git path in Cargo.toml?
Is there a recipie about what to do to port a lib?
The text was updated successfully, but these errors were encountered: