Initialize Rust and VS Code.

This commit is contained in:
2022-03-23 10:06:16 -04:00
parent f2c506f806
commit 6c0d77ec36
4 changed files with 64 additions and 0 deletions

45
.vscode/launch.json vendored Normal file
View File

@@ -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}"
}
]
}

8
Cargo.toml Normal file
View File

@@ -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]

8
src/main.rs Normal file
View File

@@ -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();
}

3
src/set1.rs Normal file
View File

@@ -0,0 +1,3 @@
pub fn convert_hex_to_base64() {
println!("We are here too.");
}