Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

SergejJurecko
Copy link

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"

Copy link
Owner

@malept malept left a 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.

@@ -11,11 +11,12 @@ license = "MIT"
travis-ci = { repository = "malept/rust-commoncrypto" }

[features]
# default = ["ios-compat"]
ios-compat = []
Copy link
Owner

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?

Copy link
Author

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.

Copy link
Owner

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.

@SergejJurecko
Copy link
Author

I also removed libc dependency since you can get c_XXX types from std::os::raw

@SergejJurecko
Copy link
Author

I can confirm that the lib now passes iOS app store requirements

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.

2 participants