Skip to content

Commit d396947

Browse files
committed
Merge branch 'update-readme' into cli-revamp
2 parents 6859a55 + bc6eccb commit d396947

File tree

2 files changed

+34
-14
lines changed

2 files changed

+34
-14
lines changed

cargo-cyclonedx/CHANGELOG.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.5.0 - UNRELEASED
9+
10+
### Added
11+
12+
- Added `--describe` flag to control what is described by the SBOM: the crate as a whole in a single SBOM file, a separate SBOM file for every binary (executable or cdylib), or a separate SBOM file for every [Cargo target](https://doc.rust-lang.org/cargo/reference/cargo-targets.html) including rlibs and other kinds that do not produce executable artifacts. ([#619]) ([#630]) ([#634])
13+
- Added an option to output CycloneDX v1.4 with `--spec-version=1.4`. The recorded data are the same between v1.3 and v1.4 outputs. ([#634])
14+
- When using Rust 1.77 and later, the package hashes for crates originating from package registries are now recorded. ([#620])
15+
16+
### Changed
17+
- `cargo cyclonedx` now displays the progress information for Cargo operations, such as updating the crates.io index. This can be suppressed with the `-q` flag. `-qq` is now required to suppress warnings. ([#634])
18+
- Introduced the `--override-filename` flag replacing the `--output-prefix` and `--output-pattern` flags. ([#634])
19+
- The `.cdx` suffix is now always added to the end of the filename in all cases when the filename isn't manually overridden, to comply with the CycloneDX specification. The `--output-cdx` flag that previously controlled this behavior is removed. ([#602]) ([#634])
20+
821
## 0.4.1 - 2023-11-23
922

1023
### Added
@@ -54,7 +67,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5467

5568
- Removed the configuration through `Cargo.toml`. This is a fundamentally wrong place to record it. ([#520]) If you have use cases for a configuration file, please let us know by [filing an issue](https://github.com/CycloneDX/cyclonedx-rust-cargo/issues).
5669

57-
5870
[#363]: https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/363
5971
[#365]: https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/365
6072
[#443]: https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/443
@@ -75,4 +87,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7587
[#542]: https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/542
7688
[#553]: https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/553
7789
[#554]: https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/554
78-
[#561]: https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/561
90+
[#561]: https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/561
91+
[#602]: https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/602
92+
[#619]: https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/619
93+
[#620]: https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/620
94+
[#630]: https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/630
95+
[#634]: https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/634

cargo-cyclonedx/README.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,17 @@ This produces a `bom.xml` file adjacent to every `Cargo.toml` file that exists i
3737
-f, --format <FORMAT>
3838
Output BOM format: json, xml
3939
40+
--describe <DESCRIBE>
41+
Possible values:
42+
- crate: Describe the entire crate in a single SBOM file, with Cargo targets as subcomponents. (default)
43+
- binaries: A separate SBOM is emitted for each binary (bin, cdylib) while all other targets are ignored
44+
- all-cargo-targets: A separate SBOM is emitted for each Cargo target, including things that aren't directly executable (e.g rlib)
45+
4046
-v, --verbose...
41-
Use verbose output (-vv very verbose/build.rs output)
47+
Use verbose output (-vv for debug logging, -vvv for tracing)
4248
43-
-q, --quiet
44-
No output printed to stdout
49+
-q, --quiet...
50+
Disable progress reports (-qq to suppress warnings)
4551
4652
--all-features
4753
Activate all available features
@@ -58,29 +64,26 @@ This produces a `bom.xml` file adjacent to every `Cargo.toml` file that exists i
5864
Defaults to the host target, as printed by 'rustc -vV'
5965
6066
--target-in-filename
61-
Include the target platform of the BOM in the filename. Implies --output-cdx
67+
Include the target platform of the BOM in the filename
6268
6369
-a, --all
6470
List all dependencies instead of only top-level ones (default)
6571
6672
--top-level
6773
List only top-level dependencies
6874
69-
--output-cdx
70-
Prepend file extension with .cdx
71-
72-
--output-pattern <PATTERN>
73-
Prefix patterns to use for the filename: bom, package
74-
75-
--output-prefix <FILENAME_PREFIX>
76-
Custom prefix string to use for the filename
75+
--override-filename <FILENAME>
76+
Custom string to use for the output filename
7777
7878
--license-strict
7979
Reject the deprecated '/' separator for licenses, treating 'MIT/Apache-2.0' as an error
8080
8181
--license-accept-named <LICENSE_ACCEPT_NAMED>
8282
Add license names which will not be warned about when parsing them as a SPDX expression fails
8383
84+
--spec-version <SPEC_VERSION>
85+
The CycloneDX specification version to output: `1.3` or `1.4`. Defaults to 1.3
86+
8487
-h, --help
8588
Print help (see a summary with '-h')
8689

0 commit comments

Comments
 (0)