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

refactor: remove libc dependency by using types in libstd #6

Merged
merged 3 commits into from
Aug 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions commoncrypto-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@ repository = "https://github.com/malept/rust-commoncrypto"
keywords = ["crypto", "hash", "digest", "osx", "commoncrypto"]
categories = ["cryptography", "external-ffi-bindings", "os::macos-apis"]
license = "MIT"
travis-ci = { repository = "malept/rust-commoncrypto" }

[features]
lint = ["clippy"]

[dependencies]
libc = "0.2"

clippy = { version = "0.0", optional = true }
[badges]
travis-ci = { repository = "malept/rust-commoncrypto" }

[dev-dependencies]
hex = "0.3"
6 changes: 2 additions & 4 deletions commoncrypto-sys/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2016, 2017 Mark Lee
// Copyright (c) 2016, 2017, 2019 Mark Lee
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand All @@ -22,9 +22,7 @@

#![warn(missing_docs)]

extern crate libc;

use libc::{c_int, c_uint};
use std::os::raw::{c_int, c_uint};

/// Total number of operations.
const MD5_CBLOCK: usize = 64;
Expand Down
7 changes: 2 additions & 5 deletions commoncrypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ repository = "https://github.com/malept/rust-commoncrypto"
keywords = ["crypto", "hash", "digest", "osx", "commoncrypto"]
categories = ["cryptography", "api-bindings", "os::macos-apis"]
license = "MIT"
travis-ci = { repository = "malept/rust-commoncrypto" }

[features]
lint = ["clippy"]
[badges]
travis-ci = { repository = "malept/rust-commoncrypto" }

[dependencies]
commoncrypto-sys = { version = "0.2.0", path = "../commoncrypto-sys" }

clippy = { version = "0.0", optional = true }

[dev-dependencies]
hex = "0.3"