mirror of
https://github.com/guilhermewerner/rust-ffi
synced 2025-06-15 13:24:19 +00:00
Create Cargo Project
This commit is contained in:
2
.cargo/config.toml
Normal file
2
.cargo/config.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[build]
|
||||||
|
target-dir = "Binaries"
|
17
Cargo.toml
Normal file
17
Cargo.toml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
[package]
|
||||||
|
name = "Library"
|
||||||
|
version = "0.0.1"
|
||||||
|
description = "Rust Library"
|
||||||
|
repository = "https://github.com/GuilhermeWerner/Libraryr"
|
||||||
|
authors = ["GuilhermeWerner <guilhermeqwerner@gmail.com>"]
|
||||||
|
license = "MIT"
|
||||||
|
edition = "2018"
|
||||||
|
publish = false
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
name="Library"
|
||||||
|
crate-type = ["cdylib"]
|
||||||
|
path = "Source/Library.rs"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
libc = "0.2.0"
|
3
Source/Library.rs
Normal file
3
Source/Library.rs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
pub fn Hello() {
|
||||||
|
println!("Hello Library");
|
||||||
|
}
|
Reference in New Issue
Block a user