How to debug rust lib

How to debug library that is used in rust app? Ideally from VSCode with llvm-debug plugin.
Library is a rust crate.

Thank you

Try use vadimcn.vscode-lldb plugin and create a launch option from Cargo.toml. (The plugin can auto generate one)