Rust support relies on the presence of the Cargo.lock
and Cargo.toml
files.
Run fossa init
to detect all directories that contain Cargo.lock
.
Add a module with type: cargo
, and target
and dir
set to the directory where Cargo.lock
is.
analyze:
modules:
- name: cargo-project
type: cargo
target: rust/root
dir: rust/root
Rust analysis is a simple three step process:
- Parse
Cargo.lock
and retrieve information about the full dependency tree and each dependency's resolved version. - Read the root crate's
Cargo.toml
and detect if any "member" crates exist. - Parse all
Cargo.toml
files to retrieve information about which dependencies are declared.