From 55ef94f93f2cc543624ef776fd94529cbd5761bd Mon Sep 17 00:00:00 2001 From: GuilhermeWerner Date: Sun, 3 Jan 2021 10:54:31 -0300 Subject: [PATCH] Create Cargo Project --- .cargo/config.toml | 2 ++ Cargo.toml | 17 +++++++++++++++++ Source/Library.rs | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 .cargo/config.toml create mode 100644 Cargo.toml create mode 100644 Source/Library.rs diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..0243837 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[build] +target-dir = "Binaries" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..0e2ee82 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "Library" +version = "0.0.1" +description = "Rust Library" +repository = "https://github.com/GuilhermeWerner/Libraryr" +authors = ["GuilhermeWerner "] +license = "MIT" +edition = "2018" +publish = false + +[lib] +name="Library" +crate-type = ["cdylib"] +path = "Source/Library.rs" + +[dependencies] +libc = "0.2.0" diff --git a/Source/Library.rs b/Source/Library.rs new file mode 100644 index 0000000..208ebd8 --- /dev/null +++ b/Source/Library.rs @@ -0,0 +1,3 @@ +pub fn Hello() { + println!("Hello Library"); +}