#how to read symboliclink
4 messages · Page 1 of 1 (latest)
?eval ```rust
fn main() {
let pid = 1;
let vscode = procfs::process::Process::new(pid).unwrap();
let exe = vscode.exe().unwrap();
println!("Path {}",exe.display());
println!("Path {}",exe.into_os_string().into_string().unwrap());
}
error[E0433]: failed to resolve: use of undeclared crate or module `procfs`
--> src/main.rs:3:18
|
3 | let vscode = procfs::process::Process::new(pid).unwrap();
| ^^^^^^ use of undeclared crate or module `procfs`
For more information about this error, try `rustc --explain E0433`.
the procfs is not allowed in here but, this runs fine on my end.