You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use ferris_says::say; // from the previous step
use std::io::{stdout, BufWriter};
fn main() {
let stdout = stdout();
let out = b"Hello fellow Rustaceans!";
let width = 24;
let mut writer = BufWriter::new(stdout.lock());
say(out, width, &mut writer).unwrap();
}
Running in verbose mode, output of terminal:
* Executing task: CodeLLDB: cargo
Running `cargo build --lib --message-format=json --color=always`...
error: no library targets found in package `hello-rust`
Error: Cargo invocation failed.
at t.Cargo.getCargoArtifacts (/home/martin/.vscode/extensions/vadimcn.vscode-lldb-1.11.1/extension.js:1:10993)
at async Object.open (/home/martin/.vscode/extensions/vadimcn.vscode-lldb-1.11.1/extension.js:1:9296)
Caused by: Error: exit code: 101.
at ChildProcess.<anonymous> (/home/martin/.vscode/extensions/vadimcn.vscode-lldb-1.11.1/extension.js:1:12660)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1105:16)
at Socket.<anonymous> (node:internal/child_process:457:11)
at Socket.emit (node:events:519:28)
at Pipe.<anonymous> (node:net:339:12)
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
Seems I need to add a library-target to hello-rust package, but being a newbie to Rust (and only using vscode occasionally), I'm not sure how. Any suggestions?
The text was updated successfully, but these errors were encountered:
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy
Getting Started Program: hello-rust in vscode 1.95.s
main.rs:
Running in verbose mode, output of terminal:
Seems I need to add a library-target to hello-rust package, but being a newbie to Rust (and only using vscode occasionally), I'm not sure how. Any suggestions?
The text was updated successfully, but these errors were encountered: