Initialize Rust and VS Code.
This commit is contained in:
45
.vscode/launch.json
vendored
Normal file
45
.vscode/launch.json
vendored
Normal 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
8
Cargo.toml
Normal 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
8
src/main.rs
Normal 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
3
src/set1.rs
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
pub fn convert_hex_to_base64() {
|
||||||
|
println!("We are here too.");
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user