updates - i forget, starting over chapter 6
This commit is contained in:
parent
645a565719
commit
f0c8a6b687
7
apple/Cargo.lock
generated
Normal file
7
apple/Cargo.lock
generated
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# This file is automatically @generated by Cargo.
|
||||||
|
# It is not intended for manual editing.
|
||||||
|
version = 3
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "apple"
|
||||||
|
version = "0.1.0"
|
8
apple/Cargo.toml
Normal file
8
apple/Cargo.toml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[package]
|
||||||
|
name = "apple"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
3
apple/src/main.rs
Normal file
3
apple/src/main.rs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
8
justfile
Normal file
8
justfile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env -S just --justfile
|
||||||
|
|
||||||
|
vimspector:
|
||||||
|
echo -e "{ \"configurations\": { \"launch\": {\n \"adapter\": \"CodeLLDB\",\n \"filetypes\": [ \"rust\" ],\n \"configuration\": {\n \"request\": \"launch\",\n \"program\": \"\${workspaceRoot}/target/debug/rectangles\"\n }\n }\n }\n }" >> ./.vimspector.json
|
||||||
|
|
||||||
|
|
||||||
|
p:
|
||||||
|
echo $(pwd)
|
15
rectangles/.vimspector.json
Normal file
15
rectangles/.vimspector.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
"configurations": {
|
||||||
|
"launch": {
|
||||||
|
"adapter": "CodeLLDB",
|
||||||
|
"filetypes": [ "rust" ],
|
||||||
|
"configuration": {
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${workspaceRoot}/target/debug/rectangles"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -25,7 +25,6 @@ impl Rectangle {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// MAIN
|
// MAIN
|
||||||
fn main() {
|
fn main() {
|
||||||
let rect1 = Rectangle { width:30, height:50};
|
let rect1 = Rectangle { width:30, height:50};
|
||||||
|
Loading…
Reference in New Issue
Block a user