-
-
Notifications
You must be signed in to change notification settings - Fork 625
Fixes #4581: Failure to scan cargo #4582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
210c91e
84034f9
ee7f8e4
b09b68b
5249967
58e2e2b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| [package] | ||
| name = "constant_time_eq" | ||
| version = "0.4.2" | ||
| edition = "2024" | ||
| authors = ["Cesar Eduardo Barros <cesarb@cesarb.eti.br>"] | ||
| description = "Compares two equal-sized byte strings in constant time." | ||
| documentation = "https://docs.rs/constant_time_eq" | ||
| repository = "https://github.com/cesarb/constant_time_eq" | ||
| readme = "README" | ||
| keywords = ["constant_time"] | ||
| categories = ["cryptography", "no-std"] | ||
| license = "CC0-1.0 OR MIT-0 OR Apache-2.0" | ||
| rust-version = "1.85.0" | ||
|
|
||
| [dev-dependencies] | ||
| criterion = { version = "0.5.1", features = ["cargo_bench_support", "html_reports"] } | ||
| count_instructions = "0.2.0" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,158 @@ | ||
| { | ||
| "headers": [ | ||
| { | ||
| "tool_name": "scancode-toolkit", | ||
| "tool_version": "32.4.1", | ||
| "options": { | ||
| "input": [ | ||
| "/tests/packagedcode/data/cargo/cargo_toml/single-file-scan/Cargo.toml" | ||
| ], | ||
| "--json-pp": "/tmp/cargo-full-scan.json", | ||
| "--package": true | ||
| }, | ||
| "notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", | ||
| "start_timestamp": "2025-10-28T175155.400609", | ||
| "end_timestamp": "2025-10-28T175201.660855", | ||
| "output_format_version": "4.1.0", | ||
| "duration": 6.26029896736145, | ||
| "message": null, | ||
| "errors": [], | ||
| "warnings": [], | ||
| "extra_data": { | ||
| "system_environment": { | ||
| "operating_system": "linux", | ||
| "cpu_architecture": "64", | ||
| "platform": "Linux-6.10.14-linuxkit-x86_64-with-glibc2.36", | ||
| "platform_version": "#1 SMP Tue Oct 14 07:32:13 UTC 2025", | ||
| "python_version": "3.12.12 (main, Oct 21 2025, 02:11:48) [GCC 12.2.0]" | ||
| }, | ||
| "spdx_license_list_version": "3.27", | ||
| "files_count": 1 | ||
| } | ||
| } | ||
| ], | ||
| "packages": [], | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just noticed, we are not returning top-level packages for single-manifest cargo scans, which is not right. This isn't introduced by your changes of course but is a bug which was present already.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will fix this in a seperate PR as this requires a bit more looking into use of assembly elsewhere. |
||
| "dependencies": [], | ||
| "files": [ | ||
| { | ||
| "path": "Cargo.toml", | ||
| "type": "file", | ||
| "package_data": [ | ||
| { | ||
| "type": "cargo", | ||
| "namespace": null, | ||
| "name": "constant_time_eq", | ||
| "version": "0.4.2", | ||
| "qualifiers": {}, | ||
| "subpath": null, | ||
| "primary_language": "Rust", | ||
| "description": "Compares two equal-sized byte strings in constant time.", | ||
| "release_date": null, | ||
| "parties": [ | ||
| { | ||
| "type": "person", | ||
| "role": "author", | ||
| "name": "Cesar Eduardo Barros", | ||
| "email": "cesarb@cesarb.eti.br", | ||
| "url": null | ||
| } | ||
| ], | ||
| "keywords": [ | ||
| "constant_time", | ||
| "cryptography", | ||
| "no-std" | ||
| ], | ||
| "homepage_url": null, | ||
| "download_url": null, | ||
| "size": null, | ||
| "sha1": null, | ||
| "md5": null, | ||
| "sha256": null, | ||
| "sha512": null, | ||
| "bug_tracking_url": null, | ||
| "code_view_url": null, | ||
| "vcs_url": "https://github.com/cesarb/constant_time_eq", | ||
| "copyright": null, | ||
| "holder": null, | ||
| "declared_license_expression": "cc0-1.0 OR mit-0 OR apache-2.0", | ||
| "declared_license_expression_spdx": "CC0-1.0 OR MIT-0 OR Apache-2.0", | ||
| "license_detections": [ | ||
| { | ||
| "license_expression": "cc0-1.0 OR mit-0 OR apache-2.0", | ||
| "license_expression_spdx": "CC0-1.0 OR MIT-0 OR Apache-2.0", | ||
| "matches": [ | ||
| { | ||
| "license_expression": "cc0-1.0 OR mit-0 OR apache-2.0", | ||
| "license_expression_spdx": "CC0-1.0 OR MIT-0 OR Apache-2.0", | ||
| "from_file": "Cargo.toml", | ||
| "start_line": 1, | ||
| "end_line": 1, | ||
| "matcher": "1-spdx-id", | ||
| "score": 100.0, | ||
| "matched_length": 10, | ||
| "match_coverage": 100.0, | ||
| "rule_relevance": 100, | ||
| "rule_identifier": "spdx-license-identifier-cc0_1_0_or_mit_0_or_apache_2_0-f44a2ec174eb034bd3c662f728664281e507b20d", | ||
| "rule_url": null, | ||
| "matched_text": "CC0-1.0 OR MIT-0 OR Apache-2.0" | ||
| } | ||
| ], | ||
| "identifier": "cc0_1_0_or_mit_0_or_apache_2_0-3f14dd48-7cd8-cf28-d4e1-3b0174a587ee" | ||
| } | ||
| ], | ||
| "other_license_expression": null, | ||
| "other_license_expression_spdx": null, | ||
| "other_license_detections": [], | ||
| "extracted_license_statement": "CC0-1.0 OR MIT-0 OR Apache-2.0", | ||
| "notice_text": null, | ||
| "source_packages": [], | ||
| "file_references": [], | ||
| "is_private": false, | ||
| "is_virtual": false, | ||
| "extra_data": { | ||
| "documentation_url": "https://docs.rs/constant_time_eq", | ||
| "rust_version": "1.85.0", | ||
| "rust_edition": "2024" | ||
| }, | ||
| "dependencies": [ | ||
| { | ||
| "purl": "pkg:cargo/criterion", | ||
| "extracted_requirement": "0.5.1", | ||
| "scope": "dev-dependencies", | ||
| "is_runtime": false, | ||
| "is_optional": false, | ||
| "is_pinned": false, | ||
| "is_direct": true, | ||
| "resolved_package": {}, | ||
| "extra_data": { | ||
| "version": "0.5.1", | ||
| "features": [ | ||
| "cargo_bench_support", | ||
| "html_reports" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "purl": "pkg:cargo/count_instructions", | ||
| "extracted_requirement": "0.2.0", | ||
| "scope": "dev-dependencies", | ||
| "is_runtime": false, | ||
| "is_optional": false, | ||
| "is_pinned": false, | ||
| "is_direct": true, | ||
| "resolved_package": {}, | ||
| "extra_data": {} | ||
| } | ||
| ], | ||
| "repository_homepage_url": "https://crates.io/crates/constant_time_eq", | ||
| "repository_download_url": "https://crates.io/api/v1/crates/constant_time_eq/0.4.2/download", | ||
| "api_data_url": "https://crates.io/api/v1/crates/constant_time_eq", | ||
| "datasource_id": "cargo_toml", | ||
| "purl": "pkg:cargo/constant_time_eq@0.4.2" | ||
| } | ||
| ], | ||
| "for_packages": [], | ||
| "scan_errors": [] | ||
| } | ||
| ] | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.