@@ -172,6 +172,7 @@ public class TrustifyExample {
172172<li ><a href =" https://go.dev// " >Golang</a > - <a href =" https://go.dev/blog/using-go-modules// " >Go Modules</a ></li >
173173<li ><a href =" https://go.dev// " >Python</a > - <a href =" https://pypi.org/project/pip// " >pip Installer</a ></li >
174174<li ><a href =" https://gradle.org// " >Gradle</a > - <a href =" https://gradle.org/install// " >Gradle Installation</a ></li >
175+ <li ><a href =" https://www.rust-lang.org/ " >Rust</a > - <a href =" https://doc.rust-lang.org/cargo/ " >Cargo</a ></li >
175176
176177</ul >
177178
@@ -315,6 +316,19 @@ test {
315316```
316317</li >
317318
319+ <li >
320+ <em >Rust Cargo</em > users can add a comment with #trustify-da-ignore next to the package to be ignored in <em >Cargo.toml</em >:
321+
322+ ``` toml
323+ [dependencies ]
324+ serde = " 1.0.136" # trustify-da-ignore
325+ tokio = { version = " 1.0" , features = [" full" ] }
326+
327+ [workspace .dependencies ]
328+ regex = " 1.5.4" # trustify-da-ignore
329+ ```
330+ </li >
331+
318332</ul >
319333
320334#### Ignore Strategies - experimental
@@ -337,6 +351,7 @@ System.setProperty("TRUSTIFY_DA_PNPM_PATH", "/path/to/custom/pnpm");
337351System.setProperty("TRUSTIFY_DA_YARN_PATH", "/path/to/custom/yarn");
338352System.setProperty("TRUSTIFY_DA_GO_PATH", "/path/to/custom/go");
339353System.setProperty("TRUSTIFY_DA_GRADLE_PATH", "/path/to/custom/gradle");
354+ System.setProperty("TRUSTIFY_DA_CARGO_PATH", "/path/to/custom/cargo");
340355//python - python3, pip3 take precedence if python version > 3 installed
341356System.setProperty("TRUSTIFY_DA_PYTHON3_PATH", "/path/to/python3");
342357System.setProperty("TRUSTIFY_DA_PIP3_PATH", "/path/to/pip3");
@@ -452,6 +467,11 @@ following keys for setting custom paths for the said executables.
452467<td ><em >pip</em ></td >
453468<td >TRUSTIFY_DA_PIP_PATH</td >
454469</tr >
470+ <tr >
471+ <td ><a href =" https://doc.rust-lang.org/cargo/ " >Cargo Package Manager</a ></td >
472+ <td ><em >cargo</em ></td >
473+ <td >TRUSTIFY_DA_CARGO_PATH</td >
474+ </tr >
455475
456476</table >
457477
@@ -653,6 +673,9 @@ java -jar trustify-da-java-client-cli.jar component /path/to/requirements.txt
653673# Component analysis with summary
654674java -jar trustify-da-java-client-cli.jar component /path/to/go.mod --summary
655675
676+ # Rust Cargo analysis
677+ java -jar trustify-da-java-client-cli.jar stack /path/to/Cargo.toml --summary
678+
656679# Container image analysis with JSON output (default)
657680java -jar trustify-da-java-client-cli.jar image nginx:latest
658681
0 commit comments