-
Notifications
You must be signed in to change notification settings - Fork 5
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
iOS compatibility #4
base: master
Are you sure you want to change the base?
Conversation
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.
I will look at this in more detail later, but in the meantime, please read over the contributing docs and make sure your pull request follows that.
commoncrypto/Cargo.toml
Outdated
@@ -11,11 +11,12 @@ license = "MIT" | |||
travis-ci = { repository = "malept/rust-commoncrypto" } | |||
|
|||
[features] | |||
# default = ["ios-compat"] | |||
ios-compat = [] |
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.
Why does this need to be behind a feature? Shouldn't it just be gated on the OS?
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.
So tests can be run on macOS.
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.
I'm not convinced that's the right way to do it, but I'll do some research when I have some free time.
I also removed libc dependency since you can get c_XXX types from std::os::raw |
I can confirm that the lib now passes iOS app store requirements |
Tests pass but I have not found a better way of running them then to modify Cargo.toml and uncomment the default feature flag for ios-compat.
I have no idea why this does not work: cargo test --features="ios-compat"