diff options
| author | Joseph Henry <[email protected]> | 2021-02-16 22:31:34 -0800 |
|---|---|---|
| committer | Joseph Henry <[email protected]> | 2021-02-16 22:31:34 -0800 |
| commit | 842059aeef5175e826caa2ca32407fd9f97d1d64 (patch) | |
| tree | eed91325602f139b4b2f036452d91a6a58d93420 /examples | |
| parent | a055ee8012c3dd75cdfc69f1ddbe054734f5cf45 (diff) | |
Remove incomplete rust wrapper files
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/rust/binding-example/Cargo.lock | 5 | ||||
| -rw-r--r-- | examples/rust/binding-example/Cargo.toml | 10 | ||||
| -rw-r--r-- | examples/rust/binding-example/build.rs | 4 | ||||
| -rw-r--r-- | examples/rust/binding-example/src/main.rs | 10 | ||||
| -rw-r--r-- | examples/rust/program.c | 6 | ||||
| -rw-r--r-- | examples/rust/program.h | 1 | ||||
| -rw-r--r-- | examples/rust/program.rs | 5 |
7 files changed, 0 insertions, 41 deletions
diff --git a/examples/rust/binding-example/Cargo.lock b/examples/rust/binding-example/Cargo.lock deleted file mode 100644 index 7c0a5dd..0000000 --- a/examples/rust/binding-example/Cargo.lock +++ /dev/null @@ -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" diff --git a/examples/rust/binding-example/Cargo.toml b/examples/rust/binding-example/Cargo.toml deleted file mode 100644 index fe94196..0000000 --- a/examples/rust/binding-example/Cargo.toml +++ /dev/null @@ -1,10 +0,0 @@ -[package] -name = "binding-example" -version = "0.1.0" -authors = ["Joseph Henry <[email protected]>"] -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] diff --git a/examples/rust/binding-example/build.rs b/examples/rust/binding-example/build.rs deleted file mode 100644 index bf44483..0000000 --- a/examples/rust/binding-example/build.rs +++ /dev/null @@ -1,4 +0,0 @@ -fn main() { - println!("cargo:rustc-flags=-l dylib=c++"); - //println!("cargo:rustc-link-search=."); -}
\ No newline at end of file diff --git a/examples/rust/binding-example/src/main.rs b/examples/rust/binding-example/src/main.rs deleted file mode 100644 index cd9f0fd..0000000 --- a/examples/rust/binding-example/src/main.rs +++ /dev/null @@ -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); -} diff --git a/examples/rust/program.c b/examples/rust/program.c deleted file mode 100644 index 816f383..0000000 --- a/examples/rust/program.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <stdio.h> - -int zts_socket(int address_family) -{ - return -777; -} diff --git a/examples/rust/program.h b/examples/rust/program.h deleted file mode 100644 index 23847a0..0000000 --- a/examples/rust/program.h +++ /dev/null @@ -1 +0,0 @@ -int zts_socket(int address_family); diff --git a/examples/rust/program.rs b/examples/rust/program.rs deleted file mode 100644 index 169c9dd..0000000 --- a/examples/rust/program.rs +++ /dev/null @@ -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; -} |
