MCPcopy Create free account
hub / github.com/Technolution/rustig / get_crate_from_comp_dir

Function get_crate_from_comp_dir

lib/callgraph/src/crate_utils.rs:31–68  ·  view source on GitHub ↗

Function that returns a `Crate` instance from the compilation dir. Usually, for an external crate, the direactory has the format '/path/to/checkout/ - In that case, `Crate { name: " ", version: Some(" ") }` is returned. Some special cases are: - When there is no numeric char after the crate name, it is assumed the version in not known. In that case, the `vers

(comp_dir: Option<&str>, rust_version: String)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

get_crate_detailsFunction · 0.85
test_get_crate_stdlibFunction · 0.85
test_get_crate_unknownFunction · 0.85

Calls

no outgoing calls

Tested by 4

test_get_crate_stdlibFunction · 0.68
test_get_crate_unknownFunction · 0.68