From 6c0d77ec362bd6d32fcc54e3091cdfe95db93419 Mon Sep 17 00:00:00 2001 From: Felix Martin Date: Wed, 23 Mar 2022 10:06:16 -0400 Subject: [PATCH] Initialize Rust and VS Code. --- .vscode/launch.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 8 ++++++++ src/main.rs | 8 ++++++++ src/set1.rs | 3 +++ 4 files changed, 64 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 Cargo.toml create mode 100644 src/main.rs create mode 100644 src/set1.rs diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..6f958e2 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,45 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "launch", + "name": "Debug executable 'cryptopals'", + "cargo": { + "args": [ + "build", + "--bin=cryptopals", + "--package=cryptopals" + ], + "filter": { + "name": "cryptopals", + "kind": "bin" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in executable 'cryptopals'", + "cargo": { + "args": [ + "test", + "--no-run", + "--bin=cryptopals", + "--package=cryptopals" + ], + "filter": { + "name": "cryptopals", + "kind": "bin" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..e5e7d28 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "cryptopals" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..a70d659 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,8 @@ +mod set1; + +use crate::set1::convert_hex_to_base64; + +fn main() { + println!("Hello, world! Does it work?"); + convert_hex_to_base64(); +} diff --git a/src/set1.rs b/src/set1.rs new file mode 100644 index 0000000..9e63ab5 --- /dev/null +++ b/src/set1.rs @@ -0,0 +1,3 @@ +pub fn convert_hex_to_base64() { + println!("We are here too."); +}