Skip to content

Commit 025fdf2

Browse files
committed
doc: add missing doc for Rust support
1 parent 8bc453f commit 025fdf2

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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");
337351
System.setProperty("TRUSTIFY_DA_YARN_PATH", "/path/to/custom/yarn");
338352
System.setProperty("TRUSTIFY_DA_GO_PATH", "/path/to/custom/go");
339353
System.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
341356
System.setProperty("TRUSTIFY_DA_PYTHON3_PATH", "/path/to/python3");
342357
System.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
654674
java -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)
657680
java -jar trustify-da-java-client-cli.jar image nginx:latest
658681

src/main/resources/cli_help.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ EXAMPLES:
4242
java -jar trustify-da-java-client-cli.jar stack /path/to/package.json --summary
4343
java -jar trustify-da-java-client-cli.jar stack /path/to/build.gradle --html
4444
java -jar trustify-da-java-client-cli.jar component /path/to/requirements.txt
45+
java -jar trustify-da-java-client-cli.jar stack /path/to/Cargo.toml
4546

4647
# Container image analysis
4748
java -jar trustify-da-java-client-cli.jar image nginx:latest

0 commit comments

Comments
 (0)