Remove incomplete rust wrapper files

This commit is contained in:
Joseph Henry
2021-02-16 22:31:34 -08:00
parent a055ee8012
commit 842059aeef
7 changed files with 0 additions and 41 deletions

View File

@@ -1,5 +0,0 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "binding-example"
version = "0.1.0"

View File

@@ -1,10 +0,0 @@
[package]
name = "binding-example"
version = "0.1.0"
authors = ["Joseph Henry <joseph.henry@zerotier.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
#rustc-link-search = ["../../../lib/debug/macos-x86_64/"]
[dependencies]

View File

@@ -1,4 +0,0 @@
fn main() {
println!("cargo:rustc-flags=-l dylib=c++");
//println!("cargo:rustc-link-search=.");
}

View File

@@ -1,10 +0,0 @@
#[link(name = "libzt", kind = "dylib")]
extern {
fn zts_socket(address_family: i32) -> i32;
}
fn main() {
let x = unsafe { zts_socket(100) };
println!("zts_socket() = {}", x);
}

View File

@@ -1,6 +0,0 @@
#include <stdio.h>
int zts_socket(int address_family)
{
return -777;
}

View File

@@ -1 +0,0 @@
int zts_socket(int address_family);

View File

@@ -1,5 +0,0 @@
/* automatically generated by rust-bindgen 0.56.0 */
extern "C" {
pub fn zts_socket(address_family: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}