Crates.io | mbedtls-sys |
lib.rs | mbedtls-sys |
version | 0.0.2 |
source | src |
created_at | 2016-08-30 14:48:36.891832 |
updated_at | 2016-08-31 09:01:19.768625 |
description | A rust FFI wrapper around mbedtls which provides TLS, DTLS and generic crypto and hash functions |
homepage | https://github.com/lemonrock/mbedtls-sys |
repository | https://github.com/lemonrock/mbedtls-sys.git |
max_upload_size | |
id | 6185 |
size | 113,336 |
[](This file is part of mbedtls-sys. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/mbedtls-sys/master/COPYRIGHT. No part of mbedtls-sys, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.) [](Copyright © 2016 The developers of mbedtls-sys. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/mbedtls-sys/master/COPYRIGHT.)
mbedtls-sys is a rust crate that has bindings to the mbedtls C library. It currently generates them for version 2.3.0.
The license for this project is MIT.
To recompile, use bindgen/generate-macosx
. This only works on Mac OS X, and you will need Homebrew installed (as brew
). It assumes brew
and cargo
are in your path, and will install bindgen
and rustfmt
as needed. We don't use the bindgen
plugin as we have to munge the output from bindgen extensively.
At this time, the wrapper will not compile on Windows due to the use of pthread_mutex_t
. This is probably fixable.
mbedtls has extensive compile-time configuration options, and it's quite possible that a function we define isn't compiled in. The config.h
we used is in bindgen/include-fixes/config.h