instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rusticata__der-parser__18 | rusticata/der-parser | 18 | defect | 4201193d54f522624b5cb7cc49773e969e2460b9 | a7a3c85b19d074752be7e54861ed6c2c0037016d | Make Oid zero copy | Hi,
I implemented the changes discussed in #17.
See the README for a changelog.
I added a crate for the procedural macro. The Cargo.toml needs some metadata. I am not sure if cargo can deploy it like this?
What do you think about the changes? | diff --git a/Cargo.toml b/Cargo.toml
index e18bc91..bb14475 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,7 +21,9 @@ include = [
"src/*.rs",
"src/ber/*.rs",
"src/der/*.rs",
- "tests/*.rs"
+ "tests/*.rs",
+ "der-oid-macro/Cargo.toml",
+ "der-oid-macro/src/*.rs",
]
[package.metadata.docs.rs]
@@ -32,10 ... | 8 | 6 | 1 | [{"id": "G0", "claim": "The Display implementation and the iterators should not depend on the bigint feature; the crate should work without requiring bigint, with the arcs iterator available unconditionally over u64 (or u32) instead of being bound to bigint.", "category": "design", "verdict": "supported", "priority": "... | null |
rusticata__der-parser__19 | rusticata/der-parser | 19 | defect | 4201193d54f522624b5cb7cc49773e969e2460b9 | 5c26bb78901a02535b4b8261c3c2083872304b27 | Fix DER datestring sanity check | This PR fixes a bug in which datestring parsing fails when there are bytes after the datestring. | diff --git a/src/der/parser.rs b/src/der/parser.rs
index 24e3e70..86c7125 100644
--- a/src/der/parser.rs
+++ b/src/der/parser.rs
@@ -303,7 +303,7 @@ pub fn der_read_element_content_as(
| BerTag::GeneralString => {
der_constraint_fail_if!(i, constructed);
}
- BerTag::UtcTime | BerTa... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR's change from `i.last()` to `i.get(len - 1)` for UtcTime/GeneralizedTime is not safe against malicious zero-length content, since `len - 1` underflows when `len` is zero.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
rusticata__der-parser__50 | rusticata/der-parser | 50 | defect | 0dffeae4f84c29c3fbef97bf7393bc270afa7268 | d74f9f02a05d42d5a5c1639a9f0081eba3a59a09 | Add no_std support. | You may need to accept https://github.com/rusticata/rusticata-macros/pull/3 first to use macro `newtype_enum`. | diff --git a/Cargo.toml b/Cargo.toml
index 7ba42d4..e503e86 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,10 +41,11 @@ num-bigint = { version = "0.4", optional = true }
der-oid-macro = { version = "0.4", path = "./der-oid-macro" }
[features]
-default = []
+default = ["std"]
bigint = ["num-bigint"]
-serialize = [... | 4 | 3 | 2 | [{"id": "G0", "claim": "src/ber/serialize.rs imports core::io::Write, which does not exist (io::Write lives in std), so the crate fails to compile.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The current changes may break dependent crates (such a... | null |
rusticata__x509-parser__129 | rusticata/x509-parser | 129 | defect | 0a99a1f73eafda75483ba2ec7b5a9953e9d4bb2f | 1487b8a6a881136dad88f76aec858eab97104c98 | Added support for parsing challenge password attribute in CSR's | This branch adds support for parsing a challenge password attribute in a CSR.
Please note: https://github.com/rusticata/oid-registry/pull/10 is a prerequisite, as it adds `OID_PKCS9_CHALLENGE_PASSWORD`. This PR is merged, but not yet released. | diff --git a/src/cri_attributes.rs b/src/cri_attributes.rs
index 76c4223..4e53337 100644
--- a/src/cri_attributes.rs
+++ b/src/cri_attributes.rs
@@ -30,17 +30,25 @@ impl<'a> FromDer<'a, X509Error> for X509CriAttribute<'a> {
let (i, parsed_attribute) = crate::cri_attributes::parser::parse_attribute(i, &oi... | 4 | 4 | 0 | [{"id": "G0", "claim": "The already-parsed attribute value in `X509CriAttribute.parsed_attribute` (currently crate-private) should be exposed to users via an accessor analogous to `X509Extension::parsed_extension()`, so they do not have to re-parse `value`.", "category": "design", "verdict": "supported", "priority": "P... | null |
rusticata__x509-parser__218 | rusticata/x509-parser | 218 | defect | e57a1b8314063fe6abec85816264755b21f87f75 | f75497f752f44016e940aca0030dcbb54626d57d | Dev 0.18/add raw bytes full struct v0.1 | *target branch is 0.18*
Add `as_raw` method to top-level structs (`X509Certificate`, `CertificateRevocationList` and `X509CertificationRequest`) to expose bytes that were used during parsing.
closes #217 | diff --git a/Cargo.lock b/Cargo.lock
index 2caca0c0..fc0081c7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -111,9 +111,9 @@ checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
[[package]]
name = "cc"
-version = "1.2.31"
+version = "1.2.32"
source = "registry+https://github.com/rust-lang/cr... | 3 | 3 | 0 | [{"id": "G0", "claim": "Add a rustdoc comment to the new `raw` field of X509Certificate describing it as the complete raw ASN.1 DER content (TBS certificate, signature algorithm and signature).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reword... | null |
rusticata__x509-parser__35 | rusticata/x509-parser | 35 | defect | c76779fb3d17e62be6c23a27cdbf97641a187c19 | 5bcb113f895e4693d4e82b3c08b2bbe15fcbf9a0 | Expand the public API slightly | For X509Name, exposes parsing as well as accessing the raw data after parsing.
For parsed certificate extensions, this fixes an unnecessarily short lifetime. | diff --git a/src/x509.rs b/src/x509.rs
index 16d9fb7..49829e0 100644
--- a/src/x509.rs
+++ b/src/x509.rs
@@ -48,7 +48,7 @@ impl<'a> X509Extension<'a> {
}
/// Return the extension type or `None` if the extension is not implemented.
- pub fn parsed_extension(&self) -> &ParsedExtension {
+ pub fn parsed_... | 2 | 1 | 0 | [{"id": "G0", "claim": "The newly public parse_name should be renamed to a better name, parse_x509_name, in a follow-up commit.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The as_raw method should be added to all parsed components, and raw-by... | null |
rusticstuff__simdutf8__56 | rusticstuff/simdutf8 | 56 | defect | 15a3e5726984fc73e24b46c693d14104a2c2b8f3 | a61bf276500f6732436efc15a4061bd4f02cfaca | Adds support for WASM 128-bit SIMD | There are some TODOs (see below), but the implementation and test suite integration has been done.
* Adds feature `wasm32_simd128` consistent with `aarch64_neon` as there is no
auto-detection for SIMD in WASM.
* Updates `README.md` with WASM build instructions.
* Integrates with tests--though the `should_panic`... | diff --git a/.gitignore b/.gitignore
index c787fcc2..1681a684 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/target
Cargo.lock
/.vscode
+/.idea
diff --git a/Cargo.toml b/Cargo.toml
index 2e1e6edc..d2fec9b6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -34,6 +34,9 @@ public_imp = []
# aarch64 NEON SIMD impl... | 9 | 8 | 3 | [{"id": "G0", "claim": "Use `simd128` instead of the `not_used` placeholder in the wasm32 macro invocations and remove the `target_arch=\"wasm32\"` exceptions in algorithm.rs, so the target feature is enabled for all functions generated by the algorithm macros.", "category": "design", "verdict": "supported", "priority"... | null |
rustledger__rustledger__1061 | rustledger/rustledger | 1,061 | defect | 062f93a158a9b20030bc5cf98749454ff97c82ea | be5ba972a589c341a7edf981a0b25e48920c5588 | fix(plugin): match Python implicit_prices on reductions and same-day dedup | ## Summary
Two gaps left over from #1048 caused rledger's `implicit_prices` plugin to over-emit `Price` directives compared to bean-check. Surfaced as the 5 real `count-prices-from-plugin` failures the runtime fingerprint in #1060 left visible (e.g., `fava-portfolio-returns/example_stock.beancount`: py=6 rs=10).
### ... | diff --git a/crates/rustledger-plugin/src/native/plugins/implicit_prices.rs b/crates/rustledger-plugin/src/native/plugins/implicit_prices.rs
index 873ff8c6197..18020ce600f 100644
--- a/crates/rustledger-plugin/src/native/plugins/implicit_prices.rs
+++ b/crates/rustledger-plugin/src/native/plugins/implicit_prices.rs
@@ ... | 3 | 3 | 3 | [{"id": "G0", "claim": "cost_fingerprint builds the lot key from the raw number_per string (and an un-normalized division result), so numerically equal costs written at different scales (\"100\" vs \"100.00\") get different lot keys and a reducing sell can be misclassified as non-REDUCED, reintroducing the phantom pric... | null |
rustledger__rustledger__1077 | rustledger/rustledger | 1,077 | defect | 0a8663bd2e5ce5e19b878646a33da7793728bcfd | 855b6abba2383e65349fb6e458d621ef4f4aeb8e | perf(booking): SmallVec for BookingResult::matched | ## Summary
Refs #1069. Partial fix — `BookingResult::matched` half. See "Deferred" below for the `Inventory::positions` part.
`BookingResult::matched` changes from `Vec<Position>` to a new `MatchedLots` alias (`SmallVec<[Position; 1]>`). STRICT booking — the default booking method — produces exactly one matched lot p... | diff --git a/Cargo.lock b/Cargo.lock
index 10cfd37f255..adb7f1cc5e5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3371,6 +3371,7 @@ dependencies = [
"rustc-hash",
"serde",
"serde_json",
+ "smallvec",
"tempfile",
"thiserror 2.0.18",
]
diff --git a/Cargo.toml b/Cargo.toml
index 3f28a670b86..1cafc64456e 100644
-... | 2 | 2 | 2 | [{"id": "G0", "claim": "Changing the public field `BookingResult::matched` from `Vec<Position>` to `MatchedLots`/`SmallVec` is a breaking change for downstream users relying on Vec-specific APIs, so the PR should keep the public field type as `Vec<Position>` (SmallVec internally), or make `matched` private with a `&[Po... | null |
rustledger__rustledger__1123 | rustledger/rustledger | 1,123 | defect | e86da4629fa73d5e9295cce05d1fa33ebf5ca1ed | 44ade489a248b634514fee2c7aae2e9649d827b6 | test(bench): v0.16.0 baseline harness for process+plugins at scale | ## Summary
Adds `cargo bench --bench v016_baseline`, the perf baseline harness for the v0.16.0 reshape.
Existing `pipeline_bench` tops out at 5k transactions for the full pipeline (10k parse-only). The N×M wrapper-rebuild loop in `loader::run_plugins` — the central bottleneck the v0.16.0 plugin-protocol redesign will... | diff --git a/crates/rustledger/Cargo.toml b/crates/rustledger/Cargo.toml
index 32cb1f0e0a8..c248e6cfe49 100644
--- a/crates/rustledger/Cargo.toml
+++ b/crates/rustledger/Cargo.toml
@@ -66,6 +66,12 @@ insta.workspace = true
name = "pipeline_bench"
harness = false
+# Baseline for the v0.16.0 perf-sensitive paths. Not... | 4 | 3 | 0 | [{"id": "G0", "claim": "The module doc references a benchmark id `process_100k_5plugins` that does not match the Criterion id the harness actually produces (`v016_process/100k_5plugins`), which will confuse anyone filtering by it, so the doc should be updated to the real id.", "category": "documentation", "verdict": "s... | null |
rustledger__rustledger__1128 | rustledger/rustledger | 1,128 | defect | c2e3b522a286efb1ea3247fbad92a1db8569ed0b | 8a6060631d1976c6575ed48931d820bf801078d0 | feat(importer): reshape Importer trait + add ImporterRegistry::with_builtins (wave 2.1) | ## Summary
Wave 2.1 of the v0.16.0 importer-plugin protocol rework — the replacement for original item F.
The `Importer` trait and `ImporterRegistry` have existed since the importer crate was introduced but were **dormant**: only `OfxImporter` implemented the trait, and the CLI bypassed both via `is_ofx_file()` plus ... | diff --git a/crates/rustledger-importer/src/config.rs b/crates/rustledger-importer/src/config.rs
index 533f38131db..78f9c173aca 100644
--- a/crates/rustledger-importer/src/config.rs
+++ b/crates/rustledger-importer/src/config.rs
@@ -21,6 +21,14 @@ pub struct ImporterConfig {
}
/// Type of importer with its specific... | 1 | 1 | 1 | [{"id": "G0", "claim": "The trait-based CSV path ignores the call-time ImporterConfig's common fields: extract_file/parse_row read self.config, so a registry-registered CsvImporter::default() with an empty account and no currency produces postings for an empty account and defaults to USD instead of using the supplied c... | null |
rustledger__rustledger__164 | rustledger/rustledger | 164 | defect | f75aca7c3567e2e1266047d5088ebd945ceecc7f | 9eac1a099728e8b742d7dfd5c6460168c9f91347 | fix: achieve 100% BQL compatibility with Python beancount | ## Summary
This PR achieves **100% compatibility** with Python beancount for both check and BQL queries while maintaining ~13x performance improvement.
### Key Fixes
- **Posting expansion sign bug**: When selling shares matching multiple lots, expanded postings now correctly use negative units
- **Units precision di... | diff --git a/crates/rustledger-booking/Cargo.toml b/crates/rustledger-booking/Cargo.toml
index 35a55a19737..605c312a9b6 100644
--- a/crates/rustledger-booking/Cargo.toml
+++ b/crates/rustledger-booking/Cargo.toml
@@ -15,10 +15,10 @@ readme = "../../README.md"
[dependencies]
rustledger-core.workspace = true
rust_deci... | 4 | 4 | 0 | [{"id": "G0", "claim": "The `unwrap()` in `is_valid_account` could panic on an empty component, so use `if let Some(first) = part.chars().next()` instead to handle edge cases safely.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on ... | null |
rustledger__rustledger__185 | rustledger/rustledger | 185 | defect | 504077ec76b77fcbd466174115da974e903cbaf0 | 449a93d422684cacef35e21576ff461c738cf22e | feat: add infrastructure for validation error line numbers | ## Summary
Add source location tracking infrastructure to enable `file:line` error output:
- Add `file_id: u16` field to `Spanned<T>` for multi-file tracking
- Add `with_file_id()` method to set file ID after creation
- Update loader to set file_id when collecting directives from included files
- Add `span`/`file_id... | diff --git a/Cargo.lock b/Cargo.lock
index 26a394bf871..d2ad682d04a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3081,6 +3081,7 @@ dependencies = [
"rust_decimal_macros",
"rustledger-booking",
"rustledger-core",
+ "rustledger-parser",
"thiserror 2.0.17",
]
diff --git a/crates/rustledger-loader/src/lib.rs b/c... | 2 | 2 | 1 | [{"id": "G0", "claim": "Truncating `usize` to `u16` via `as` in `with_file_id` silently discards high bits for values > 65,535, which could store incorrect file IDs; add a debug assertion (or return a `Result`) to detect out-of-range values.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"... | null |
rustledger__rustledger__208 | rustledger/rustledger | 208 | defect | e406b6bf104e37d7a1d5ba80b02639a060bc626c | 42d4db0f124a01f447c2a37d5dbcb0e9e5133213 | fix(query): support ORDER BY with GROUP BY expressions not in SELECT | ## Summary
- Fixes the error `ORDER BY expression not found in SELECT: account_sortkey` when using queries where ORDER BY references a GROUP BY expression that isn't in SELECT
- Fixes `account_sortkey()` to return the correct format matching Python beancount
## Problem
Queries like this were failing:
```sql
SELECT a... | diff --git a/crates/rustledger-query/src/ast.rs b/crates/rustledger-query/src/ast.rs
index 17c1ab975d6..9f3cda27be8 100644
--- a/crates/rustledger-query/src/ast.rs
+++ b/crates/rustledger-query/src/ast.rs
@@ -5,6 +5,7 @@
use rust_decimal::Decimal;
use rustledger_core::NaiveDate;
+use std::fmt;
/// A complete BQL... | 2 | 2 | 0 | [{"id": "G0", "claim": "The comment lists only 5 account types (Assets through Expenses) while account_type_index() also returns a 6th type (Other=5), so the comment should include 'Other=5' to accurately document all possible return values.", "category": "documentation", "verdict": "supported", "priority": "P2", "scop... | null |
rustledger__rustledger__215 | rustledger/rustledger | 215 | defect | 198f04d38bc6141e7c9be66f1daa1016022d0f22 | 742d9455da297d3d52a8ecfd5a55bc8a0fafa689 | feat(query): support nested aggregate functions for holdings reports | ## Summary
- Enable BQL queries with nested aggregate patterns like `units(sum(position))`, `cost(sum(position))`, and `value(sum(position))` needed for holdings reports
- Fix `is_aggregate_expr` to recursively check function arguments for aggregates
- Fix `evaluate_aggregate_expr` to handle non-aggregate functions wr... | diff --git a/crates/rustledger-query/src/executor/aggregation.rs b/crates/rustledger-query/src/executor/aggregation.rs
index b3748b4c1ba..3a1eee85a04 100644
--- a/crates/rustledger-query/src/executor/aggregation.rs
+++ b/crates/rustledger-query/src/executor/aggregation.rs
@@ -15,10 +15,15 @@ impl<'a> Executor<'a> {
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test name `test_number_on_multi_currency_inventory_returns_null` misleads — it verifies single-currency behavior (AAPL only) and expects a Number, not Null — so the name should be updated to reflect the actual behavior, or the test logic changed to match the name.", "category": "documentatio... | null |
rustledger__rustledger__306 | rustledger/rustledger | 306 | defect | 151b81867dcda6e0d22a7145162578f6dca044f7 | 2d454d970e34e8fcb9828abf637a93250c9117c3 | perf: optimize hash maps, add parallel query execution, improve test coverage | ## Summary
- Replace `std::collections::HashMap` with `FxHashMap` in hot paths (~20% faster hashing)
- Add parallel row evaluation for queries with 1000+ postings using rayon
- Change Executor's regex_cache from `RefCell` to `RwLock` for thread-safety
- Add `release-linux` profile with full LTO for CI builds
- Pre-allo... | diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml
index bc1664162dc..548af215db0 100644
--- a/.github/workflows/release-build.yml
+++ b/.github/workflows/release-build.yml
@@ -225,20 +225,32 @@ jobs:
export RUSTFLAGS="-C link-arg=-Wl,-ld_classic"
fi
+ ... | 5 | 2 | 2 | [{"id": "G0", "claim": "The build step always uses --profile release-linux on Linux, but the packaging step switches back to the release/ directory when matrix.pgo == true, which will break packaging for Linux PGO builds; the profile selection and the packaging directory selection should be aligned.", "category": "corr... | null |
rustledger__rustledger__368 | rustledger/rustledger | 368 | defect | 20160d0c1bc7f74ec5e79ba8d0a593ea2fcd50f6 | 9377fb37fef1b4eca3f3697024fa13f9d0dec888 | feat(loader): support glob patterns in include directives | ## Summary
Add support for glob patterns (`*`, `?`, `[...]`) in `include` directives, matching Python beancount behavior.
**Example:**
```beancount
include "transactions/*.beancount"
include "accounts/202[0-9].beancount"
```
This was reported as a compatibility issue in #365.
## Changes
### rustledger-loader
- Add... | diff --git a/Cargo.lock b/Cargo.lock
index cc5f0ec0c16..66a64cf1a39 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -120,7 +120,7 @@ version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
dependencies = [
- "windows... | 3 | 3 | 3 | [{"id": "G0", "claim": "Glob metacharacters should be detected on the original include_path rather than the joined full_path, because a parent directory name containing '*', '?', or '[' would make a literal include be treated as a glob and potentially raise GlobNoMatch.", "category": "correctness", "verdict": "supporte... | null |
rustledger__rustledger__369 | rustledger/rustledger | 369 | defect | cf4835d7d8e9fdd966ea60966996d9bf1c004b61 | 3bbff0d73dd3234c035c3fa461134d028df508c9 | fix(format): preserve comments, metadata, and blank lines | ## Summary
Fixes #364
The `rledger format` command was stripping comments, metadata, and blank lines from beancount files. This PR fixes all three issues.
### Root Cause
The formatter used `Loader` which discards non-directive content (comments), and the directive formatters didn't output metadata fields.
### Chan... | diff --git a/crates/rustledger-core/src/format/directives.rs b/crates/rustledger-core/src/format/directives.rs
index 36713642305..ee73f4597a3 100644
--- a/crates/rustledger-core/src/format/directives.rs
+++ b/crates/rustledger-core/src/format/directives.rs
@@ -1,9 +1,21 @@
//! Directive formatting for balance, open, c... | 4 | 4 | 4 | [{"id": "G0", "claim": "The blank-line preservation logic always subtracts one newline (treating it as the previous item's terminator), so it drops one leading newline before the first item and files starting with blank lines will not round-trip; asks to special-case prev_end == 0 to preserve all newlines in the leadin... | null |
rustledger__rustledger__404 | rustledger/rustledger | 404 | defect | 8a6a849bcbb12ee679e15f0e765c4e8cb1d71532 | 72a7e1325a1a81202d1e82755d5c125039ceafde | fix(aur): add CFLAGS for ring crate LTO compatibility | ## Summary
- Add `CFLAGS+=' -ffat-lto-objects'` to fix ring crate LTO build issues
- Fix `host-tuple` literal string to dynamically get actual host triple from rustc
- Fix CLI tests to check target/release and skip gracefully when binary not found
## Problem
The AUR build was failing because:
1. The `ring` crate d... | diff --git a/packaging/arch/rustledger/.SRCINFO b/packaging/arch/rustledger/.SRCINFO
index 3061076e3d1..ce307708225 100644
--- a/packaging/arch/rustledger/.SRCINFO
+++ b/packaging/arch/rustledger/.SRCINFO
@@ -1,17 +1,21 @@
pkgbase = rustledger
pkgdesc = Fast, pure Rust implementation of Beancount double-entry accoun... | 5 | 3 | 1 | [{"id": "G0", "claim": "The PR description misrepresents what the change does (it claims lld was removed from makedepends while the diff shows no such change, and alerque calls its account of the contents nonsense) and should be corrected or clarified.", "category": "documentation", "verdict": "uncertain", "priority": ... | null |
rustledger__rustledger__467 | rustledger/rustledger | 467 | defect | 83b535569117bc758adfbda9550b2ad52c84ec11 | 8b373e877f48adcb859e2244f13e3d128972d2c5 | fix(format): preserve all comments in transactions | ## Summary
Enhance the formatter to preserve all comments within transactions:
- Change `Posting.comment: Option<String>` to `comments: Vec<String>` to support multiple comments before a posting
- Add `Posting.trailing_comments: Vec<String>` for end-of-line comments
- Add `Transaction.trailing_comments: Vec<String>` ... | diff --git a/crates/rustledger-core/src/format/directives.rs b/crates/rustledger-core/src/format/directives.rs
index e6fa36a2048..142a180bba3 100644
--- a/crates/rustledger-core/src/format/directives.rs
+++ b/crates/rustledger-core/src/format/directives.rs
@@ -7,14 +7,14 @@ use crate::{
use std::fmt::Write;
/// For... | 4 | 2 | 2 | [{"id": "G0", "claim": "The switch of metadata indentation from config.meta_indent (4-space default) to config.indent (2-space default) is a behavioral change that no test verifies with exact assertions, since the existing tests only use contains() checks; tests asserting the exact indentation of directive and transact... | null |
rustledger__rustledger__469 | rustledger/rustledger | 469 | defect | 83b535569117bc758adfbda9550b2ad52c84ec11 | 0758e13d29702d478569463e2288e1c4550ef25b | feat(loader): enable document discovery from `option "documents"` | ## Summary
- Enables automatic document discovery from directories configured with `option "documents"`
- Files matching the pattern `Account/YYYY-MM-DD.*.ext` are converted to document directives
- The `DocumentDiscoveryPlugin` already existed but was not being invoked
## Changes
- Exports `DocumentDiscoveryPlugin`... | diff --git a/crates/rustledger-loader/src/process.rs b/crates/rustledger-loader/src/process.rs
index 9f121088f4d..65adb0b0afd 100644
--- a/crates/rustledger-loader/src/process.rs
+++ b/crates/rustledger-loader/src/process.rs
@@ -210,11 +210,16 @@ pub fn process(raw: LoadResult, options: &LoadOptions) -> Result<Ledger, ... | 5 | 5 | 3 | [{"id": "G0", "claim": "The test `test_document_discovery_empty_dir` does not actually test an empty documents directory (it tests the case where `option \"documents\"` is not set at all); the reviewer asks to either rename it to reflect that or add a fixture that sets `option \"documents\"` to an empty directory and a... | null |
rustledger__rustledger__533 | rustledger/rustledger | 533 | defect | a84eb0e1cea55515db1dc949fbd8177ccbc58ffa | e4c4e20a1d32bfc3ed5f910099a5107417dc1880 | fix(query): make BQL regex matching case-insensitive | ## Summary
- Use `RegexBuilder` with `case_insensitive(true)` for BQL `~` operator to match Python beancount behavior
- Add integration test verifying case-insensitive matching
- Add regression test file `tests/regressions/issue-532.beancount`
Closes #532
## Test plan
- [x] New integration test `test_regex_case_ins... | diff --git a/crates/rustledger-query/src/executor/mod.rs b/crates/rustledger-query/src/executor/mod.rs
index aa779557071..815dde80303 100644
--- a/crates/rustledger-query/src/executor/mod.rs
+++ b/crates/rustledger-query/src/executor/mod.rs
@@ -16,7 +16,7 @@ use std::sync::RwLock;
use rustc_hash::FxHashMap;
use chr... | 2 | 2 | 0 | [{"id": "G0", "claim": "The regression harness in scripts/test-regressions.sh only runs rledger check, so the ~ operator behavior described in tests/regressions/issue-532.beancount's Expected: text is not exercised by CI; the text should be adjusted to what check validates, or automated coverage that executes the query... | null |
rustledger__rustledger__535 | rustledger/rustledger | 535 | defect | a84eb0e1cea55515db1dc949fbd8177ccbc58ffa | 707b51d5541c02ecff33ba4451862ee9e80ed89a | fix(plugin): coherent_cost should allow cost+price on same posting | ## Summary
The `coherent_cost` plugin was incorrectly flagging commodities as using "both cost and price" when a single posting had both cost and price annotations. This is valid and common for recording capital gains:
```beancount
Assets:Stock -10 HOOL {100 USD} @ 150 USD
```
The fix changes the logic to:
- Track ... | diff --git a/crates/rustledger-plugin/src/native/plugins/coherent_cost.rs b/crates/rustledger-plugin/src/native/plugins/coherent_cost.rs
index 40bda772db6..cf2c992c286 100644
--- a/crates/rustledger-plugin/src/native/plugins/coherent_cost.rs
+++ b/crates/rustledger-plugin/src/native/plugins/coherent_cost.rs
@@ -6,8 +6,... | 2 | 2 | 1 | [{"id": "G0", "claim": "The top-level doc summary still says currencies should use cost OR price consistently \"never both\" while the implementation now allows cost+price on the same posting; reword it (and the plugin description string) so users are not misled.", "category": "documentation", "verdict": "supported", "... | null |
rustledger__rustledger__576 | rustledger/rustledger | 576 | defect | 6a08fc1bbc8c887246dd955cc725040b73dbc152 | 0d699009dff73a9627e3ea8d97dccc0b239cd7a5 | fix: VALUE() function beancount compatibility | ## Summary
Two fixes for VALUE() function to match Python beancount behavior:
1. **Infer target currency from position's cost currency** when not explicitly specified. Previously required explicit currency or errored with "no target currency set".
2. **Use latest available price** for conversion instead of transacti... | diff --git a/crates/rustledger-query/src/executor/functions/position.rs b/crates/rustledger-query/src/executor/functions/position.rs
index 4aeddb014e6..95cf3a0f91e 100644
--- a/crates/rustledger-query/src/executor/functions/position.rs
+++ b/crates/rustledger-query/src/executor/functions/position.rs
@@ -253,6 +253,14 @... | 4 | 4 | 1 | [{"id": "G0", "claim": "The `if let Value::Number(...)` assertion for the second position in `test_value_individual_positions_use_latest_price` has no `else` branch, so a non-Number result would not fail the test; add an explicit failure path so the assertion validates the return type.", "category": "testing", "verdict... | null |
rustledger__rustledger__583 | rustledger/rustledger | 583 | defect | 12e324f15efccee4c699c97b71320cf0c07769ec | e02d4c45c7ebae90f50af1a58984b174dbbba323 | fix(query): support CONVERT function in aggregate context | ## Summary
Fix `convert(sum(position), 'EUR')` failing with "unknown function: convert" error.
**Root Cause**: The `CONVERT` function was implemented in `eval_convert()` which works with expressions, but not in `evaluate_function_on_values()` which handles pre-evaluated `Value` arguments in aggregate context.
**Fix*... | diff --git a/crates/rustledger-query/src/executor/mod.rs b/crates/rustledger-query/src/executor/mod.rs
index 55605737431..382ca84c22f 100644
--- a/crates/rustledger-query/src/executor/mod.rs
+++ b/crates/rustledger-query/src/executor/mod.rs
@@ -924,6 +924,84 @@ impl<'a> Executor<'a> {
)),
... | 2 | 2 | 1 | [{"id": "G0", "claim": "CONVERT is implemented twice (in evaluate_function_on_values() and eval_convert() in executor/functions/util.rs), risking behavior drift; extract a shared helper such as convert_value(val, target_currency, date) and call it from both paths.", "category": "maintainability", "verdict": "supported"... | null |
rustledger__rustledger__584 | rustledger/rustledger | 584 | defect | 12e324f15efccee4c699c97b71320cf0c07769ec | e6d90860c7c5bb1d972e67981e7acf4c8a1f7045 | fix: extract implicit prices from transaction postings for VALUE() | ## Summary
- Fixes issue where `VALUE()` function returns cost basis instead of market value
- Extracts implicit prices from transaction postings with `@ price` annotations
- Also extracts prices from cost specifications when no price annotation exists
- Price annotations take priority over cost specs (matches Python ... | diff --git a/crates/rustledger-query/src/executor/mod.rs b/crates/rustledger-query/src/executor/mod.rs
index 55605737431..e64d276f6ab 100644
--- a/crates/rustledger-query/src/executor/mod.rs
+++ b/crates/rustledger-query/src/executor/mod.rs
@@ -114,12 +114,20 @@ impl<'a> Executor<'a> {
source_map: &SourceMap,
... | 1 | 1 | 1 | [{"id": "G0", "claim": "If a posting has a price annotation whose amount() is None, the code skips both adding a price and falling back to posting.cost, contradicting the intended annotation-takes-priority behavior; consider falling back to cost when the annotation does not yield a concrete amount.", "category": "corre... | null |
rustledger__rustledger__590 | rustledger/rustledger | 590 | defect | 12e324f15efccee4c699c97b71320cf0c07769ec | 6d45d94a5e9cb07d6e62adeeea3ebacf1e2326f5 | fix: implement implicit GROUP BY for aggregate queries (issue #575) | ## Summary
- Implemented implicit GROUP BY when aggregate functions are mixed with non-aggregated columns
- Added `extract_implicit_group_by_exprs()` helper to extract non-aggregate expressions
- Modified `execute_select()` to use implicit grouping when no explicit GROUP BY is provided
## Problem
Query `SELECT sum(n... | diff --git a/crates/rustledger-query/src/executor/aggregation.rs b/crates/rustledger-query/src/executor/aggregation.rs
index d88f84c3829..a2ba8f7645b 100644
--- a/crates/rustledger-query/src/executor/aggregation.rs
+++ b/crates/rustledger-query/src/executor/aggregation.rs
@@ -33,6 +33,30 @@ impl<'a> Executor<'a> {
... | 3 | 3 | 1 | [{"id": "G0", "claim": "The test builds `accounts` with `filter_map`, which silently drops rows if `row[2]` is not a `Value::String`; the reviewer asks to map with an explicit match/panic so the test fails immediately with a clear message if the column type or order is unexpected.", "category": "testing", "verdict": "s... | null |
rustledger__rustledger__598 | rustledger/rustledger | 598 | defect | 12e324f15efccee4c699c97b71320cf0c07769ec | d150f37f518d0eacc3c853f8ebae506c80885172 | feat(bql): support IN operator with set literals | ## Summary
- Add support for tuple/set literals in the `IN` and `NOT IN` operators
- Queries like `SELECT * WHERE currency IN ('EUR', 'USD')` now work
Previously, `IN` only worked with column references that evaluate to `StringSet` (like `tags` or `links`). Now it also accepts set literals with comma-separated string... | diff --git a/crates/rustledger-query/src/ast.rs b/crates/rustledger-query/src/ast.rs
index 49e819c25fd..0239c196380 100644
--- a/crates/rustledger-query/src/ast.rs
+++ b/crates/rustledger-query/src/ast.rs
@@ -187,6 +187,8 @@ pub enum Expr {
/// Upper bound.
high: Box<Self>,
},
+ /// Set litera... | 3 | 2 | 1 | [{"id": "G0", "claim": "The Expr::Set evaluation logic duplicated across execution.rs, aggregation.rs and evaluation.rs should be extracted into a shared set-literal-to-Value::StringSet helper so the three evaluation paths do not drift.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "... | null |
rustledger__rustledger__599 | rustledger/rustledger | 599 | defect | 12e324f15efccee4c699c97b71320cf0c07769ec | 1fd563a23af668dd61d1017004e1f4402055ef05 | fix: handle NULL in CONVERT function for empty sums | ## Summary
- Fix CONVERT function to handle NULL values from empty sums (issue #586)
- Add CONVERT case to `evaluate_function_on_values()` for aggregate context
- Return `0.00` in target currency for NULL/empty inventory inputs
## Problem
When an account has no balance or transactions that net to zero, `sum(position... | diff --git a/crates/rustledger-query/src/executor/functions/util.rs b/crates/rustledger-query/src/executor/functions/util.rs
index 8fcab2c4e83..fc4be81a9da 100644
--- a/crates/rustledger-query/src/executor/functions/util.rs
+++ b/crates/rustledger-query/src/executor/functions/util.rs
@@ -151,6 +151,11 @@ impl Executor<... | 5 | 2 | 1 | [{"id": "G0", "claim": "The argument-count check `args.is_empty() || args.len() > 3` admits a single-argument call, and the code then unconditionally indexes `args[1]`, which will panic; validate `args.len() < 2 || args.len() > 3` (or equivalent) before indexing.", "category": "correctness", "verdict": "uncertain", "pr... | null |
rustledger__rustledger__614 | rustledger/rustledger | 614 | defect | 7863e4154d5e334ca3d232ba1b15502cda72d9ae | 04ae4adc3a4c48317f3c95330460e00617dba925 | fix: remove .abs() from cost() to preserve sign for sells | ## Summary
- Fix BQL `cost()` function returning incorrect values by removing `.abs()` from unit numbers
- Sell transactions now correctly contribute negative costs instead of positive costs
- Add regression tests for issue #593
- **Bonus**: Remove slow clippy/test/doc from pre-push hooks (they took 27 minutes!)
## P... | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 94ef3d9e40c..a3e19b5e085 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -51,7 +51,7 @@ repos:
stages: [commit-msg]
pass_filenames: true
- # === Pre-push hooks (slower, run before push) ===
+ # === P... | 3 | 2 | 2 | [{"id": "G0", "claim": "COST() is also implemented in Executor::evaluate_function_on_values() (crates/rustledger-query/src/executor/mod.rs) and still uses units.number.abs() * cost.number, so calls like cost(SUM(position)) — the pattern in issue #593 — remain incorrect unless the duplicate implementation is updated or ... | null |
rustledger__rustledger__634 | rustledger/rustledger | 634 | defect | 1521cea2303b0c912b4283112ac835e3c40ec4ff | 187803958f79919d4d36a08aa22462e9ec78a781 | fix(query): support beancount-compatible table names without # prefix | ## Summary
- Add support for using system table names without the `#` prefix for Python beancount compatibility
- For example, `SELECT * FROM transactions` now works in addition to `SELECT * FROM #transactions`
- User-created tables with conflicting names take precedence over aliases
## Implementation
The fix normal... | diff --git a/crates/rustledger-query/src/executor/execution.rs b/crates/rustledger-query/src/executor/execution.rs
index c1754636320..25c6e4532d8 100644
--- a/crates/rustledger-query/src/executor/execution.rs
+++ b/crates/rustledger-query/src/executor/execution.rs
@@ -324,14 +324,15 @@ impl Executor<'_> {
) -> Res... | 3 | 2 | 0 | [{"id": "G0", "claim": "get_builtin_table() allocates a new String for non-# table names via format!(\"#{upper}\") on the query execution path; it should instead strip an optional leading '#' and match on the unprefixed name to avoid the extra allocation.", "category": "performance", "verdict": "supported", "priority":... | null |
rustledger__rustledger__646 | rustledger/rustledger | 646 | defect | 38669cafab05228f57304a50880fdbf3641b748e | 808f3871c242d297ffcd4dd2f5126710ca4a798a | fix(query): return value as-is when no target currency for VALUE() | ## Summary
- When `VALUE()` is called without an explicit currency and the position has no cost basis, return the units as-is instead of erroring
- This matches Python beancount's behavior where positions without a conversion path are shown as their original amounts
- Previously this errored with: "no target currency s... | diff --git a/crates/rustledger-query/src/executor/mod.rs b/crates/rustledger-query/src/executor/mod.rs
index 9947fe7330d..89f438264c7 100644
--- a/crates/rustledger-query/src/executor/mod.rs
+++ b/crates/rustledger-query/src/executor/mod.rs
@@ -1119,16 +1119,22 @@ impl<'a> Executor<'a> {
_ => None,
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The rustdoc for convert_to_market_value still says it returns a converted Amount or an error, and should be updated to reflect the new non-error behavior and the possible return types (e.g., Inventory/Null).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
rustledger__rustledger__702 | rustledger/rustledger | 702 | defect | 7e20ace32c30f34e423938e130a77f02c84959da | 18a6547a6e0309118d178a81c886777dd1182eea | fix(query): improve BQL function dispatch for aggregate context | ## Summary
Fix BQL function dispatch so that non-aggregate functions work correctly in aggregate queries. This is a cleaner alternative to #697 — same fix, ~130 lines instead of ~700.
## Problem
Functions like `QUARTER(date)`, `ACCOUNT_DEPTH(account)`, `SUBSTR(narration, ...)` failed with `UnknownFunction` when used... | diff --git a/crates/rustledger-query/src/executor/aggregation.rs b/crates/rustledger-query/src/executor/aggregation.rs
index 77cb6f44e5a..569433fb8af 100644
--- a/crates/rustledger-query/src/executor/aggregation.rs
+++ b/crates/rustledger-query/src/executor/aggregation.rs
@@ -373,13 +373,23 @@ impl<'a> Executor<'a> {
... | 3 | 3 | 3 | [{"id": "G0", "claim": "The aggregate-wrapped SUBSTR/SUBSTRING dispatch does not match eval_substr semantics — a non-integer start silently defaults to 0, a negative start is cast straight to usize (wraparound), and a non-integer len is silently ignored — so wrapped and unwrapped SUBSTR calls can give inconsistent resu... | null |
rustledger__rustledger__703 | rustledger/rustledger | 703 | defect | 9958d9c3fcebb3a57e60de8aaeec92812ea91095 | aa89de60f20490d0d116bc4821bf817f1b154c9d | fix(query): add position column to FROM postings table path | ## Summary
Add the missing `position` column to `build_postings_table()`, fixing 16 conformance test failures for queries using `FROM postings`.
Based on Copilot's work in #698, rebased on current main (which includes #702) and formatted.
## Changes
- `executor/mod.rs`: Add `"position"` to column list, construct `Val... | diff --git a/crates/rustledger-query/src/executor/mod.rs b/crates/rustledger-query/src/executor/mod.rs
index 8b772ec48c2..1eeb435ca95 100644
--- a/crates/rustledger-query/src/executor/mod.rs
+++ b/crates/rustledger-query/src/executor/mod.rs
@@ -2037,6 +2037,7 @@ impl<'a> Executor<'a> {
"payee".to_string(),... | 2 | 2 | 1 | [{"id": "G0", "claim": "build_postings_table()'s doc comment lists the table columns but omits the newly added `position` column, so please update the documented column list.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new table-path positi... | null |
rustledger__rustledger__705 | rustledger/rustledger | 705 | defect | 7f73cce5b2160a35dfe92fae765b414df82b6fb2 | 5d22338aa764abf14312cb3156536c5c69c39fe1 | fix: validate multiple same-currency elision and negative cost | ## Summary
Two beancount v3 validation rules were silently accepted:
1. **Multiple same-currency elision** — Multiple elided postings resolving to the same currency now returns `MultipleMissing` error instead of silently filling extras with zero.
2. **Negative cost** — Negative cost amounts (`number_per` or `number_to... | diff --git a/crates/rustledger-booking/src/interpolate.rs b/crates/rustledger-booking/src/interpolate.rs
index a1fcb606e66..db228fd71ca 100644
--- a/crates/rustledger-booking/src/interpolate.rs
+++ b/crates/rustledger-booking/src/interpolate.rs
@@ -398,6 +398,18 @@ pub fn interpolate(transaction: &Transaction) -> Resul... | 3 | 2 | 0 | [{"id": "G0", "claim": "The `count` field of `InterpolationError::MultipleMissing` is set to `unassigned_missing.len()`, which over-reports relative to the error's documented meaning of 'number of postings missing a single currency' when there are multiple residual currencies; the reviewer suggests computing the duplic... | null |
rustledger__rustledger__710 | rustledger/rustledger | 710 | defect | 7f73cce5b2160a35dfe92fae765b414df82b6fb2 | c9a51f6288b67f290412102a640e6aa36d39a762 | fix(query): allow ORDER BY on expressions not in SELECT | ## Summary
- Generalize the hidden-column mechanism so any ORDER BY expression not in SELECT is added as a hidden column for sorting, then stripped from the final output
- Previously only worked for GROUP BY expressions; now works for all queries (e.g., `ORDER BY account_sortkey(account)` when only `account` is SELECT... | diff --git a/crates/rustledger-query/src/executor/execution.rs b/crates/rustledger-query/src/executor/execution.rs
index c926d93bdf2..b7d912e831b 100644
--- a/crates/rustledger-query/src/executor/execution.rs
+++ b/crates/rustledger-query/src/executor/execution.rs
@@ -207,26 +207,25 @@ impl Executor<'_> {
let ... | 7 | 6 | 2 | [{"id": "G0", "claim": "The test comment states the sort-key ordering as Assets(0) < Expenses(4) < Income(3), which contradicts the prefixes shown (0 < 3 < 4, i.e. Assets < Income < Expenses); please correct the comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"... | null |
rustledger__rustledger__729 | rustledger/rustledger | 729 | defect | 3f7cd9ec86862530d951c50498b5cdb0e8fb1539 | 8c196b56f6713e82544c899594d570b35ebcd6ab | fix(query): add open_date, close_date, open_meta, meta to table path | ## Summary
5 BQL functions worked in the posting context but failed with "no function matches" in the table/subquery path (`FROM #postings`, `FROM #entries`):
| Function | Fix |
|----------|-----|
| `open_date(account)` | Look up account open date via `self.account_info` |
| `close_date(account)` | Look up account cl... | diff --git a/crates/rustledger-query/src/executor/mod.rs b/crates/rustledger-query/src/executor/mod.rs
index c043e303edc..00a6bde7da5 100644
--- a/crates/rustledger-query/src/executor/mod.rs
+++ b/crates/rustledger-query/src/executor/mod.rs
@@ -1228,6 +1228,8 @@ impl<'a> Executor<'a> {
None... | 2 | 2 | 2 | [{"id": "G0", "claim": "In the table/subquery path, META/ENTRY_META/ANY_META/POSTING_META return Null regardless of the argument type, so a non-string key like meta(123) silently yields Null while the posting-context implementation returns a type error; the arm should match on args[0], allowing only Value::String(_)/Va... | null |
rustledger__rustledger__740 | rustledger/rustledger | 740 | defect | d00d0017cc9c8f74e175a5f91f1e25dab557fcb6 | fe350ec88fe4ad7ae9308847ca2a20b22a16a305 | fix(parser): reject unclosed cost specification braces | ## Summary
The cost-spec parser looped looking for a closing `}` without checking for newlines or EOF. When the opening `{` was never closed on the same logical line, it silently consumed the next posting's tokens (and the rest of the transaction if needed) looking for anything brace-shaped — producing a truncated tra... | diff --git a/crates/rustledger-parser/src/winnow_parser.rs b/crates/rustledger-parser/src/winnow_parser.rs
index 870998bd109..bc28f34c7b9 100644
--- a/crates/rustledger-parser/src/winnow_parser.rs
+++ b/crates/rustledger-parser/src/winnow_parser.rs
@@ -497,6 +497,9 @@ fn parse_incomplete_amount(stream: &mut TokenStream... | 2 | 2 | 1 | [{"id": "G0", "claim": "The `stream.is_empty()` early-break after a `parse_entry` failure can suppress real syntax errors at EOF (e.g. an incomplete final directive like `2024-01-01 open` consumes tokens, fails, and exits without emitting any error unless `deferred_error` was set); the reviewer asks that the branch be ... | null |
rustledger__rustledger__745 | rustledger/rustledger | 745 | defect | d00d0017cc9c8f74e175a5f91f1e25dab557fcb6 | ed9217b9496e752a09e2c43bd497c045074d5d3a | fix(booking): detect ambiguous lot match + track per-account methods | ## Summary
Originally a one-line bug: STRICT booking silently accepted wildcard reductions (`-5 AAPL {}`) against inventories holding lots at different costs, instead of raising `AmbiguousMatchError`. Investigation surfaced a second latent bug in the same layer — the `BookingEngine` was using a single engine-wide book... | diff --git a/crates/rustledger-booking/src/book.rs b/crates/rustledger-booking/src/book.rs
index b663adb1225..cc8bf0ad6bc 100644
--- a/crates/rustledger-booking/src/book.rs
+++ b/crates/rustledger-booking/src/book.rs
@@ -159,9 +159,14 @@ impl BookingEngine {
let is_reduction = inv.is_reduced_by(uni... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new `reduce_strict` doc comment should be updated to match the real selection/tie-break behavior — it says the fallback for interchangeable lots is insertion order (FIFO) while `reduce_ordered` sorts by oldest `cost.date` first — and to document the total-match (full liquidation) exception i... | null |
rustledger__rustledger__778 | rustledger/rustledger | 778 | defect | 63baf6a87ca44d8494bff08060f491a7909e4e22 | 725f38711fe80aad47d28e4cb6a3e2c5c2a10e8a | fix: honor file-level booking_method option in process pipeline | ## Summary
- `process::run_booking()` was using `LoadOptions.booking_method` (default: `STRICT`) without reading the file-level `option "booking_method"` from `LedgerOptions`
- Any code path through `process::load()` — `rledger query`, LSP, MCP server, WASM — ignored the file's booking method setting
- Fix: read `raw.... | diff --git a/crates/rustledger-loader/src/process.rs b/crates/rustledger-loader/src/process.rs
index c2cb82c1821..a82a4b4a745 100644
--- a/crates/rustledger-loader/src/process.rs
+++ b/crates/rustledger-loader/src/process.rs
@@ -203,9 +203,26 @@ pub fn process(raw: LoadResult, options: &LoadOptions) -> Result<Ledger, P... | 2 | 2 | 1 | [{"id": "G0", "claim": "The check `raw.options.booking_method.is_empty()` is never true because `Options::new()` defaults `booking_method` to \"STRICT\", so `effective_method` always comes from the file-level option, ignoring `LoadOptions.booking_method` overrides even when the file does not set `option \"booking_metho... | null |
rustledger__rustledger__796 | rustledger/rustledger | 796 | defect | d2da86ce5c95343960e2a1816b7655f5d5bfda18 | bdff9b5fd26066086d709aadc5da1c9d59e5b275 | test: add integration tests for process.rs plugin execution path | ## Summary
- Add 4 integration tests verifying plugins execute through the `process::process()` pipeline
- Add 3 test fixture beancount files for plugin scenarios
- Tests cover: plugin execution, booking+plugin interaction, unknown plugins, directive round-trip
## Tests
| Test | Verifies |
|------|----------|
| `tes... | diff --git a/crates/rustledger-loader/tests/fixtures/auto_accounts_plugin.beancount b/crates/rustledger-loader/tests/fixtures/auto_accounts_plugin.beancount
new file mode 100644
index 00000000000..0dcbb2659af
--- /dev/null
+++ b/crates/rustledger-loader/tests/fixtures/auto_accounts_plugin.beancount
@@ -0,0 +1,12 @@
+; ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The test and its doc comment claim unknown plugin names produce errors in Ledger.errors, but the test only asserts the ledger loaded and has directives, contradicting the current run_plugins() behavior of silently skipping unknown plugins — update the test name/docs to reflect that behavior, or ... | null |
rustledger__rustledger__800 | rustledger/rustledger | 800 | defect | d2da86ce5c95343960e2a1816b7655f5d5bfda18 | 86923fd3673d6c8454e54dfa6daedf6d712d4973 | test: add insta snapshot tests for CLI output formatting | ## Summary
- Add 6 `insta` snapshot tests capturing exact CLI output for `rledger check` and `rledger query`
- Add 3 test fixture beancount files (parse errors, validation errors, query data)
- File paths normalized to `<fixtures>` for snapshot portability across machines
## Snapshots
| Snapshot | What it captures |... | diff --git a/Cargo.lock b/Cargo.lock
index 282508221df..a5c01de9ec7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3126,6 +3126,7 @@ dependencies = [
"edit",
"format_num_pattern",
"glob",
+ "insta",
"miette",
"rayon",
"rust_decimal",
diff --git a/crates/rustledger/Cargo.toml b/crates/rustledger/Cargo.toml
ind... | 5 | 3 | 2 | [{"id": "G0", "claim": "normalize_output (and normalize_json_paths) only replaces the fixture directory prefix, so on Windows the remaining backslash separators would produce `<fixtures>\\\\file.beancount` which will not match the committed snapshots using `/`; the reviewer suggests also normalizing path separators to ... | null |
rustledger__rustledger__813 | rustledger/rustledger | 813 | defect | 01eb5098339de370e17f3290f05701c8b3ff6862 | 6f1827a7ff089b6c194a2585391de80f345248ee | perf: parallel file loading for multi-file ledgers | ## Summary
Parallelize reading and parsing of sibling include files using rayon. When a beancount file includes multiple files (e.g., `include "2024/*.beancount"`), they are now loaded concurrently instead of sequentially.
## How It Works
```
Sequential (before):
parse root → read+parse child1 → read+parse child2 ... | diff --git a/Cargo.lock b/Cargo.lock
index 94011b0bff8..1bda919eb06 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3220,6 +3220,7 @@ version = "0.12.0"
dependencies = [
"chrono",
"glob",
+ "rayon",
"rkyv 0.8.15",
"rust_decimal",
"rust_decimal_macros",
diff --git a/crates/rustledger-loader/Cargo.toml b/crates/r... | 6 | 6 | 5 | [{"id": "G0", "claim": "merge_parsed_file duplicates a large portion of load_recursive (options/plugins/include traversal/directive merging), risking drift between the sequential and parallel paths; factor the shared apply-parsed-result logic into a single helper used by both paths, with only the read+parse step differ... | null |
rustledger__rustledger__817 | rustledger/rustledger | 817 | defect | aec5b9029db6395a68303808b6dc3a9dcba00c91 | fdd58a5a8c69173f3a5d9f7d7330ee0671c7e3f0 | fix: support full Unicode in account names (Cyrillic, CJK, Arabic, etc.) | ## Summary
Allow account name components to start with any Unicode uppercase letter or CJK ideograph, not just ASCII `[A-Z]`.
## Before / After
```beancount
; BEFORE: parse error
option "name_equity" "Капитал"
2024-01-01 open Капитал:Retained-Earnings ; ❌ "Invalid account"
; AFTER: works
option "name_equity" "Капи... | diff --git a/crates/rustledger-parser/src/logos_lexer.rs b/crates/rustledger-parser/src/logos_lexer.rs
index 3440ef6e9af..1afb48492c0 100644
--- a/crates/rustledger-parser/src/logos_lexer.rs
+++ b/crates/rustledger-parser/src/logos_lexer.rs
@@ -55,23 +55,23 @@ pub enum Token<'src> {
#[regex(r#""([^"\\]|\\.)*""#)]
... | 4 | 3 | 3 | [{"id": "G0", "claim": "The validator's is_valid_start accepts any non-ASCII character that is not lowercase, unintentionally allowing emoji, punctuation and symbols as valid component starts, which contradicts the lexer's intent/tests; it should be tightened to accept only letters (e.g. alphabetic and not lowercase) p... | null |
rustledger__rustledger__900 | rustledger/rustledger | 900 | defect | d9231db8f90560eb80fb04377f4eb7029abc699f | 67511da768c72b879449a1486403aa82d5e414f2 | fix: add STRICT_WITH_SIZE to parser valid booking methods | ## Summary
- Fix #891: Parser now accepts `STRICT_WITH_SIZE` as a valid booking method
- The booking method was already implemented in `rustledger-core` and `rustledger-booking`, but the parser's `VALID_BOOKING_METHODS` list was missing it
- Update error message to include `STRICT_WITH_SIZE` in the list of valid option... | diff --git a/Cargo.lock b/Cargo.lock
index 84ca6c24f49..eb20d02109a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3535,6 +3535,7 @@ dependencies = [
"rustledger-booking",
"rustledger-core",
"rustledger-parser",
+ "tempfile",
"thiserror 2.0.18",
]
diff --git a/crates/rustledger-loader/src/process.rs b/crates/r... | 10 | 5 | 3 | [{"id": "G0", "claim": "Relative `option \"documents\"` directories are passed unresolved into validation on the loader paths (LSP build_validation_options_from_loader and the loader's run_validation), so validation resolves relative document paths against the process CWD instead of the ledger's directory, inconsistent... | null |
rustledger__rustledger__903 | rustledger/rustledger | 903 | defect | 19604484ff86d34c85ed556f6d5f9e4f64887d78 | 7bc4c1f8a03f2d1673360b40f5f308c951696027 | fix: accept date as VALUE() second argument (closes #892) | ## Summary
Fixes #892. Python beancount's `value(position, DATE)` returns the market value using the most recent price on or before `DATE`; rustledger was rejecting the date argument outright with `VALUE second argument must be a currency string`.
## Changes
- `eval_value` (and the aggregate-context `evaluate_function... | diff --git a/crates/rustledger-query/src/executor/functions/position.rs b/crates/rustledger-query/src/executor/functions/position.rs
index 5db093baed9..fadd040fb2e 100644
--- a/crates/rustledger-query/src/executor/functions/position.rs
+++ b/crates/rustledger-query/src/executor/functions/position.rs
@@ -261,13 +261,19 ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The function-level doc comment of convert_to_market_value still says it always uses the latest price and does not document the new at_date parameter or how it changes price lookup (latest vs on-or-before).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
rustledger__rustledger__904 | rustledger/rustledger | 904 | defect | df30832161af75ce9f0d4dd0540be7fba6d4a06b | 659c95b17865b8d5141d4f2e490b0ed9b65bd908 | fix(validate): attribute plugin-synthesized directives in errors (closes #896) | ## Summary
Fixes the error-attribution half of #896. When a plugin synthesizes a directive whose account name the parser would reject (e.g. `Equity:Currency:FSS_AUSFIX`), validation still (correctly) fires E1005 — but now the error tells the user where it came from instead of looking like a ghost account.
Before:
```
... | diff --git a/crates/rustledger-loader/src/process.rs b/crates/rustledger-loader/src/process.rs
index d3f4b9cce39..8b7bd69bd92 100644
--- a/crates/rustledger-loader/src/process.rs
+++ b/crates/rustledger-loader/src/process.rs
@@ -657,7 +657,9 @@ pub fn run_plugins(
let directive = wrapper_to_directive(wrapper)
... | 2 | 2 | 2 | [{"id": "G0", "claim": "A real source file can legitimately receive file_id u16::MAX if enough files are loaded, colliding with the SYNTHESIZED_FILE_ID sentinel and mis-attributing errors; cap real IDs below the sentinel (e.g. in Spanned::with_file_id/SourceMap::add_file) or use a different representation like Option<u... | null |
rustledger__rustledger__940 | rustledger/rustledger | 940 | defect | 3fe60bd850f3971e8a8803e37a2997a85d66c3c3 | 8cd50cc7f1c25cbf9e03aec2f323dde116a68055 | fix(query): make `balance` a cumulative WHERE-filtered total (closes #929) | ## Summary
The `balance` column was returning the per-account running balance — bank-statement-style — but bean-query's `balance` is a single cumulative Inventory across all WHERE-filtered postings in iteration order. As a result, the canonical "portfolio value over time" query
```sql
SELECT year, month, convert(last... | diff --git a/crates/rustledger-query/src/completions.rs b/crates/rustledger-query/src/completions.rs
index 499050ca01c..b55d8107a07 100644
--- a/crates/rustledger-query/src/completions.rs
+++ b/crates/rustledger-query/src/completions.rs
@@ -490,7 +490,11 @@ fn column_completions() -> Vec<Completion> {
column("... | 3 | 3 | 1 | [{"id": "G0", "claim": "Running balance accumulators use Position::simple(units) which drops lot cost information, making account_balance/balance inconsistent with the position column and other cost-aware balance paths; use the same cost resolution logic (and for the cumulative update).", "category": "correctness", "ve... | null |
rustledger__rustledger__944 | rustledger/rustledger | 944 | defect | 785ed8e808d3dea1c7f6976b6ea93964c99652e6 | bb33858349a6fdd0a2726bd748b4967c6367f3c5 | fix(query): parse whole-number literals as Integer (closes #938) | ## Summary
Fixes issue #938 — `ROOT(account, n)` always failed with `type error: ROOT second arg must be integer`.
The root cause runs deeper than ROOT: the BQL parser produced `Literal::Number(Decimal)` for **every** numeric literal, leaving `Literal::Integer` as a dead variant. Any function whose type check strictl... | diff --git a/crates/rustledger-query/src/executor/functions/position.rs b/crates/rustledger-query/src/executor/functions/position.rs
index f0b70a1a372..2ab99b60e89 100644
--- a/crates/rustledger-query/src/executor/functions/position.rs
+++ b/crates/rustledger-query/src/executor/functions/position.rs
@@ -126,6 +126,11 @... | 3 | 3 | 1 | [{"id": "G0", "claim": "In test_number_literal the panic message still says \"Expected number literal\" even though the test now expects Literal::Integer; update it (e.g. to \"Expected integer literal\") so future failures are less confusing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "s... | null |
rustledger__rustledger__945 | rustledger/rustledger | 945 | defect | 0690357820a23345f4aed990adceaaa44c4b2192 | 40def2631d696262c08f679859847b61993db3a4 | fix(cache): hide cache file as dotfile and honor beancount env vars (closes #939) | ## Summary
Fixes issue #939 — `rledger check main.beancount` created a visible `main.beancount.cache` next to the source, which surprised users and cluttered `ls` / `git status` output.
The deeper question — *should* the cache live next to the source at all? — is already answered by Python beancount, which has been u... | diff --git a/crates/rustledger-loader/src/cache.rs b/crates/rustledger-loader/src/cache.rs
index c51d6f41a6d..5201790c803 100644
--- a/crates/rustledger-loader/src/cache.rs
+++ b/crates/rustledger-loader/src/cache.rs
@@ -13,8 +13,17 @@
//!
//! # Cache location
//!
-//! Cache files are stored alongside the main ledge... | 4 | 4 | 3 | [{"id": "G0", "claim": "With BEANCOUNT_LOAD_CACHE_FILENAME set to a path whose parent directory does not exist, File::create in save_cache_entry fails and caching is silently disabled; create cache_file's parent directory with create_dir_all before creating the file, when a parent exists.", "category": "correctness", "... | null |
rustledger__rustledger__983 | rustledger/rustledger | 983 | defect | 0baaa902935184b63ec8910538283017e73f0f41 | daa011f357e2dad5f1c5f17b6a26f93b6f2e1b4f | feat(price): --date as-of + harness source-resolution diff (refs #967) | ## Summary
Two follow-ups from issue #967's punch list. Stacked on top of #982 (the bean-price audit bundle).
### Item 4 from #967: `--date` as-of for the active-commodity filter
Before this change, `rledger price -f file.beancount --date 2020-01-01` parsed the date and passed it to source requests, but the active f... | diff --git a/crates/rustledger/src/cmd/price/discovery.rs b/crates/rustledger/src/cmd/price/discovery.rs
index 2e3765525d6..c7f0bb7bb0a 100644
--- a/crates/rustledger/src/cmd/price/discovery.rs
+++ b/crates/rustledger/src/cmd/price/discovery.rs
@@ -34,7 +34,7 @@
use crate::config::{CommodityMapping, DetailedMapping,... | 5 | 3 | 3 | [{"id": "G0", "claim": "The two new dry-run comparison tests only use simple single-source `price:` fixtures and never exercise fallback chains or any precedence boundary between metadata/config/CLI overrides, so the audit items called out in the PR description would still regress without failing this harness.", "categ... | null |
rustls__ktls__36 | rustls/ktls | 36 | defect | e0f03846c665f0082b7d3bf2bb7df8fa687d41de | 7bfed88ab09803da49e8c3290b114d937451e105 | feat: Properly handle critical alerts | Currently, there is no check on alerts received from recvmsg, even those that require to close session as per the rfc.
This commit adds alerts case handling when session termination is necessary. | diff --git a/src/ktls_stream.rs b/src/ktls_stream.rs
index 34aa22d..a9c8d65 100644
--- a/src/ktls_stream.rs
+++ b/src/ktls_stream.rs
@@ -142,7 +142,33 @@ where
}
// alert
21 => {
- panic!("received TLS ... | 3 | 2 | 2 | [{"id": "G0", "claim": "When the received alert is a close_notify, the stream should not send a close_notify back to the peer.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new alert-handling change should be covered by an integration test.", "... | null |
rustls__rcgen__118 | rustls/rcgen | 118 | defect | 14dfa20ed86b78348ce9ddd4d88cc1dc04e702bd | 937a1c0521e340e0c1e92acab0838619f48cabd3 | Use line endings appropriate for current platform | PR in reference to https://github.com/est31/rcgen/issues/115
Adds platform checking to decide what line endings to use when serializing to PEM.
I tried activating Github Actions for Windows to test correctness for that platform too, but unfortunately it seems the dev-dependency `openssl` does not work: https://gi... | diff --git a/src/lib.rs b/src/lib.rs
index afcf5c15..ba507e98 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -148,6 +148,12 @@ const OID_NAME_CONSTRAINTS :&[u64] = &[2, 5, 29, 30];
// https://www.iana.org/assignments/smi-numbers/smi-numbers.xhtml#smi-numbers-1.3.6.1.5.5.7.1
const OID_PE_ACME :&[u64] = &[1, 3, 6, 1, 5, 5... | 4 | 4 | 3 | [{"id": "G0", "claim": "The PR adds Windows platform specific tests, so Windows CI should be added too (e.g. installing openssl via vcpkg) so the code can be tested on Windows.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Instead of repeating a pem::E... | null |
rustls__rcgen__12 | rustls/rcgen | 12 | defect | 9a434a02ebf036ed71041fa12bf1c9af0a026652 | 04b34bc00cff6ec1049e3b700d676b2c9098e6ab | Support external ca-certificates | This is an early, untested state not meant to be merged right now!
Supporting external ca-certificates by allowing the user to generate `CertificateParms` from a certificate in DER or PEM format. Extracting of data from user certificate is restricted to the bare minimum (distinguished names, signature algorithm, key... | diff --git a/Cargo.toml b/Cargo.toml
index 029f743b..909a709e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,6 +23,7 @@ ring = "0.14"
untrusted = "0.6"
pem = { version = "0.6", optional = true }
chrono = "0.4.6"
+x509-parser = { version = "0.4.1", optional = true }
[features]
default = ["pem"]
diff --git a/src/... | 11 | 11 | 2 | [{"id": "G0", "claim": "Move the change adding the new DnType variants (LocalityName, StateOrProvinceName, OrganizationalUnitName, StreetName) into a separate pull request.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Implement DnType::from_oid as a ma... | null |
rustls__rcgen__128 | rustls/rcgen | 128 | defect | 645b77e11d0ae338f7e77ed31023ee4e754f996d | 497e65d0e76d24dfea67bc61da72492abe9a9142 | Certificate Revocation List (CRL) generation support. | ## Description
This branch implements support for generating RFC 5280 Certificate Revocation Lists (CRLs) using rcgen.
My primary motivation for this work is to offer the ecosystem a pure-Rust method for generating CRLs that will work with [Rustls ](https://github.com/rustls/rustls) as part of in-progress suppor... | diff --git a/src/lib.rs b/src/lib.rs
index 1bbf84a1..c748ad06 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -59,7 +59,6 @@ pub struct Certificate {
key_pair :KeyPair,
}
-
/**
KISS function to generate a self signed certificate
@@ -148,6 +147,18 @@ const OID_NAME_CONSTRAINTS :&[u64] = &[2, 5, 29, 30];
// https:/... | 4 | 2 | 1 | [{"id": "G0", "claim": "The x509-parser CRL tests might be better placed in a dedicated x509-parser.rs test file instead of tests/generic.rs.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test leaves the CRL number unasserted (a TODO) until t... | null |
rustls__rcgen__133 | rustls/rcgen | 133 | defect | dde0e476ececc05ee72653623dae9c5c911c8f9b | 707c6b839c770aa99d1339d5946edc19b0eac430 | switch to rustls/webpki, add test coverage for CRL parsing. | ## Description
This is a small follow-up to https://github.com/est31/rcgen/pull/128 now that `rustls/webpki` v0.101.0 has been released. Resolves https://github.com/est31/rcgen/issues/129
### deps: switch to rustls webpki v0.101.0.
The [original webpki](https://github.com/briansmith/webpki) crate is under-mainta... | diff --git a/Cargo.lock b/Cargo.lock
index c1fd3a2b..83b5e4f2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -503,8 +503,8 @@ dependencies = [
"rand",
"ring",
"rsa",
+ "rustls-webpki",
"time",
- "webpki",
"x509-parser",
"yasna",
"zeroize",
@@ -556,6 +556,16 @@ dependencies = [
"nom",
]
+[[package]]
+nam... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test that when one tries to use a revoked cert, it is actually refused.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
rustls__rcgen__136 | rustls/rcgen | 136 | defect | 83e548a06848d923eada1ac66d1a912735b67e79 | 9e5f117105153c258bbbef12ccacb63356c5574b | lib: add cert and CRL distribution point extension support. | ## Description
This branch adds support for certificate CRL distribution points extensions, and the corresponding CRL issuing distribution point extension.
Initially I opened this PR with just the former, but the latter is so closely related it felt more appropriate to make one branch with two commits.
Test c... | diff --git a/src/lib.rs b/src/lib.rs
index 0813ff3c..81de47ba 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -140,9 +140,13 @@ const OID_AUTHORITY_KEY_IDENTIFIER :&[u64] = &[2, 5, 29, 35];
const OID_EXT_KEY_USAGE :&[u64] = &[2, 5, 29, 37];
// id-ce-nameConstraints in
-/// https://tools.ietf.org/html/rfc5280#section-4.... | 1 | 1 | 1 | [{"id": "G0", "claim": "The x509-parser cert test is not correct: it parses the cert CRL distribution point extension but not the CRL issuing distribution point extension, and the author will rework the test coverage.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
rustls__rcgen__166 | rustls/rcgen | 166 | defect | 471943bec6348a7ecfab1c17c72e3fdefbeaa52b | a2d126eae67d2ae91c5b52aef87367117e331dd2 | Upgrade to `ring` `0.17` | Reboot of https://github.com/rustls/rcgen/pull/98.
This PR is a breaking change because the `RcgenError::RingKeyRejected` variant is changed AND because `ring` is part of the public API via the `From` impl for `RcgenError`. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 697c35f1..a4fd52a8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,20 @@
# Changes
+## Unreleased
+
+- Remove `PartialEq` and `Eq` from `RcGenError`.
+ Errors are usually not comparable.
+ Use `matches!` instead.
+- Remove `TryFrom<[u8]>` and `TryFrom<Vec<u8... | 6 | 5 | 3 | [{"id": "G0", "claim": "The required `rng: &dyn SecureRandom` parameter added to KeyPair's public methods unnecessarily complicates the API for most use cases; keep the original method signatures, have them use a reasonable default RNG, and provide an alternate method where the RNG can be provided.", "category": "desig... | null |
rustls__rcgen__176 | rustls/rcgen | 176 | defect | eb3c2612dd73db71d71b5e04dc6644901c6d94bb | 9eea9f405df49f7ddb8c21b24036bcc6d9824040 | Add cli workspace crate | Names are provisional, please suggest better ones. `rcgen`'s `main.rs` is being used as a provisional `main.rs` in the new crate, but will be replaced and moved to top level examples later.
* Include some workspace configuration to confirm expectations
* move `src/main.rs` to `myca/src/main.rs`
* addresses #... | diff --git a/Cargo.lock b/Cargo.lock
index 32e5d254..842e214c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -280,6 +280,14 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
+[[package]]
+name = "myca"
+ve... | 2 | 2 | 0 | [{"id": "G0", "claim": "djc would prefer a workspace-only top-level Cargo.toml with the two crates living in separate directories, and suggests renaming the myca crate to rustls-cert-gen as too generic a name.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G6", "claim"... | null |
rustls__rcgen__182 | rustls/rcgen | 182 | defect | 20ee1f6fd5b4117cbb17d54790e78a1cb79ec342 | 8891a8c6b57f1b947ca9a6d629932469809b1d13 | basic Ia5String support for DistinguishedName values | This branch adds basic support emitting and parsing distinguished name values that are Ia5Strings. For example, email address attributes in a certificate subject distinguished name.
Note that because of #181 this code will panic when emitting invalid Ia5String values. This problem is general to rcgen's handling of A... | diff --git a/Cargo.toml b/Cargo.toml
index 8bce873b..9471ec26 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,3 +13,9 @@ version = "0.11.3"
description = "Rust X.509 certificate generator"
repository = "https://github.com/rustls/rcgen"
keywords = ["mkcert", "ca", "certificate"]
+
+# This greatly speeds up rsa key ge... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment added above the profile override should read \"only applies to the dev-dependency of rcgen because cargo ...\" instead of \"only applies to the dev-dependency because cargo ...\", since the profile block sits at the workspace root.", "category": "documentation", "verdict": "supported... | null |
rustls__rcgen__183 | rustls/rcgen | 183 | defect | 20ee1f6fd5b4117cbb17d54790e78a1cb79ec342 | 405827f5cd4d62d0df32313c8a10a50bf1e7f161 | Add external types CI check + config | Having types from dependent crates appear in rcgen's public API makes taking semver incompatible updates to those dependencies tricky: we need to treat it as a semver incompatible change to rcgen itself. To make sure whenever this type leak happens that it was done because of a deliberate choice this branch adds [cargo... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6109c236..9c7840c6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -61,6 +61,24 @@ jobs:
env:
RUSTDOCFLAGS: ${{ matrix.rust_channel == 'nightly' && '-Dwarnings --cfg=docsrs' || '-Dwarnings' }}
+ check-e... | 9 | 3 | 1 | [{"id": "G0", "claim": "Proactively bump the version to 0.12.0 because these changes are semver-incompatible, so a semver-compatible release is not published by accident.", "category": "process", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Merge the separate RingKeyRejected ... | null |
rustls__rcgen__191 | rustls/rcgen | 191 | defect | 0318d2f0a4bb9e65c84d284acff8587bd418d837 | 2f80793fe850fca8a28a16d130602ad4c939de3a | Ensure CI covers examples and unit tests, fix clippy findings | While reviewing https://github.com/rustls/rcgen/pull/188 I wanted to confirm that example code was being built in CI. It turns out that it wasn't. Similarly we haven't been running `clippy` against test code, and so there was a number of findings to address.
This branch updates CI to:
* Remove `--all`. This is a... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6109c236..af1e93e4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -57,7 +57,7 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
- name: cargo doc (all features)
- run: cargo doc --all --all-... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `--workspace` flag on the cargo doc invocation is redundant because it is already the default in a directory that contains a workspace, so it should be left out and these CI invocations cleaned up.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
rustls__rcgen__20 | rustls/rcgen | 20 | defect | 3f6d19ed59551ebd94d35b0b41ae576f5fe9e711 | bf4cb5d9a31c054170b7c5f88123773dda5ea10d | Expose KeyPair interface | Offering an interface to obtain a `KeyPair`'s public key in DER and PEM and access `is_compatible()`
Avoiding code duplication by moving public key serialization into `KeyPair`.
Addresses https://github.com/est31/rcgen/issues/15 and https://github.com/est31/rcgen/issues/18 | diff --git a/src/lib.rs b/src/lib.rs
index 5e12635a..42322bff 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -455,11 +455,7 @@ impl Certificate {
}
});
// Write subjectPublicKeyInfo
- writer.next().write_sequence(|writer| {
- self.params.alg.write_oids_sign_alg(writer.next());
- let pk = self.key_pair... | 2 | 2 | 0 | [{"id": "G0", "claim": "The doc comments for serialize_der and serialize_pem should state explicitly that the serialized PKCS#8 output includes the private key, instead of the ambiguous 'the key'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
rustls__rcgen__209 | rustls/rcgen | 209 | defect | 28ec9fa01c4472112bda70f9ebd5ea3f512fd3f7 | bff7da98e70223f6c1e352b3bd500743b3897fd7 | Add basic support for Subject Alternative Name OtherName | Add basic support for `OtherName` in the Subject Alternative Name extension.
`OtherName` is used by smart card certificates and also, for instance, to identify nodes in a peer-to-peer network.
`OtherName` is defined like this in the [RFC 5280§4.2.1.6](https://datatracker.ietf.org/doc/html/rfc5280#page-38):
```
... | diff --git a/rcgen/src/lib.rs b/rcgen/src/lib.rs
index 217d01aa..8277a0e2 100644
--- a/rcgen/src/lib.rs
+++ b/rcgen/src/lib.rs
@@ -151,6 +151,7 @@ const ENCODE_CONFIG: pem::EncodeConfig = {
#[non_exhaustive]
/// The type of subject alt name
pub enum SanType {
+ OtherName((Vec<u64>, OtherNameValue)),
/// Also known... | 7 | 4 | 0 | [{"id": "G0", "claim": "est31 asks whether OtherName should instead take binary-encoded ASN.1 plus a custom OID, since OpenSSL allows general ASN.1 while the PR restricts the value to string types.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "cpu thinks ... | null |
rustls__rcgen__213 | rustls/rcgen | 213 | defect | 30489d74833e8230bb1bc1d9412d17b776ce05bd | 777eefa9b215eda5e4ba0554ab6c3bd5da285bb9 | External keys | As an alternative to #212, this goes further in the direction of #205, removing `alg` and `key_pair` from `CertificateParams` and requiring the caller to pass in a reference to them when signing. This seems to have a number of nice properties:
* `alg` is derived from the passed in `KeyPair`, so key algorithm mismatc... | diff --git a/rcgen/examples/rsa-irc-openssl.rs b/rcgen/examples/rsa-irc-openssl.rs
index 38a22de3..a2f143b0 100644
--- a/rcgen/examples/rsa-irc-openssl.rs
+++ b/rcgen/examples/rsa-irc-openssl.rs
@@ -1,5 +1,3 @@
-use rcgen::CertifiedKey;
-
fn main() -> Result<(), Box<dyn std::error::Error>> {
use rcgen::{date_time_ym... | 5 | 5 | 2 | [{"id": "G0", "claim": "The rustdoc on CertificateParams::from_ca_cert_der still describes the pre-change API (a returned Certificate and a passed-through KeyPair) and should be reworded to match the new signature, e.g. by saying that the constructed CertificateParams together with the KeyPair associated with the exist... | null |
rustls__rcgen__214 | rustls/rcgen | 214 | defect | 62f796ad8c24ee518df04ac0fc9cd6de1dd9c9d4 | d40d218a5891f9981ca83de515f82c02046abdf1 | Tighten up string type representations to prevent illegal values | Fix https://github.com/rustls/rcgen/issues/181
Mainly inspired by the [der](https://docs.rs/der/0.7.8/der/asn1/index.html) and the [asn1_rs](https://github.com/rusticata/asn1-rs/tree/d05f860d07998b4e7f152005ec9a923bb284a708) crates. | diff --git a/rcgen/examples/sign-leaf-with-ca.rs b/rcgen/examples/sign-leaf-with-ca.rs
index d1f4b250..b786adeb 100644
--- a/rcgen/examples/sign-leaf-with-ca.rs
+++ b/rcgen/examples/sign-leaf-with-ca.rs
@@ -20,9 +20,10 @@ fn new_ca() -> CertifiedKey {
let mut params = CertificateParams::new(Vec::default());
let (ye... | 12 | 9 | 1 | [{"id": "G0", "claim": "The TryFrom impls should be for String instead of &str, so that an owned type is required and callers can move a value rather than effectively cloning it.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The BmpString match arm in w... | null |
rustls__rcgen__223 | rustls/rcgen | 223 | defect | 747b5d8e72d1caadedff415445487320d899570a | 4e3028a57a53ae98f4f9bb39aebf42f9e4068481 | Use pki_types to improve the interoperability with the rustls ecosystem | Use [`pki_types`] to improve the interoperability with the `rustls` ecosystem and make types pretty clear, as suggested by https://github.com/rustls/rcgen/pull/170#issuecomment-1849565550.
To fully get rid of the `pem` dependency (by replacing it by `rustls_pemfile`), I think those further actions will be needed:
... | diff --git a/Cargo.lock b/Cargo.lock
index 0b734ca2..65d4567e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1005,14 +1005,15 @@ dependencies = [
"rand",
"rcgen",
"ring 0.17.7",
+ "rustls-pki-types",
"x509-parser",
]
[[package]]
name = "rustls-pki-types"
-version = "1.1.0"
+version = "1.2.0"
source = "regis... | 16 | 16 | 5 | [{"id": "G0", "claim": "The pull request should be a smaller increment that preserves the pem crate for parsing and uses pki-types only for DER-containing types in the public API.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The cargo-check-external-types... | null |
rustls__rcgen__240 | rustls/rcgen | 240 | defect | bbb9ed9b6f1a9574a629f8cc3d49d69fbf1e6991 | 88bb2ae285743d219bb49d0ea2bc1217d5049a73 | Serialize CRL parameters into CertificateRevocationList | Updates the CRL creation flow along the lines of #205. | diff --git a/rcgen/src/certificate.rs b/rcgen/src/certificate.rs
index d829f2f9..d043b803 100644
--- a/rcgen/src/certificate.rs
+++ b/rcgen/src/certificate.rs
@@ -8,7 +8,7 @@ use yasna::models::ObjectIdentifier;
use yasna::{DERWriter, Tag};
use crate::crl::CrlDistributionPoint;
-use crate::csr::CertificateSigningRe... | 3 | 2 | 0 | [{"id": "G0", "claim": "The CRL serialization docstring should not say the CRL is serialized \"in binary DER format\" — internally the format is DER but the method returns a wrapper around the DER (suggested rewording: \"Serializes the certificate revocation list (CRL), signed with\").", "category": "documentation", "v... | null |
rustls__rcgen__242 | rustls/rcgen | 242 | defect | f1f89ae27a17f56a00f6e4cbd907482f5ccb8413 | 3cd796183eeed5d62fdac040bd546b1247360980 | Support more private key formats when using aws_lc_rs feature | I hope this change is okay. I am not sure if I need to add tests for this? Also should I rename the function in ring-like? | diff --git a/rcgen/src/ring_like.rs b/rcgen/src/ring_like.rs
index a9059e52..b24e0794 100644
--- a/rcgen/src/ring_like.rs
+++ b/rcgen/src/ring_like.rs
@@ -22,7 +22,7 @@ pub(crate) fn ecdsa_from_pkcs8(
#[cfg(all(not(feature = "ring"), feature = "aws_lc_rs"))]
{
- Ok(signature::EcdsaKeyPair::from_pkcs8(alg, pkcs8)... | 3 | 3 | 2 | [{"id": "G0", "claim": "Changing ecdsa_from_pkcs8 to call from_private_key_der makes it accept key formats beyond the PKCS#8 its callers document, and the PR should instead be explicit about the supported key format in the public API (adding API for the specific format, e.g. SEC1).", "category": "design", "verdict": "s... | null |
rustls__rcgen__246 | rustls/rcgen | 246 | defect | 02de0323a3eec7cfcda7db211003283aa63f0744 | 36ab5573e59a13fb6ec133626567680899a8d47b | Follow-up from pki-types conversion | Some minor cleanup after #223. In particular, this converts the CRL generation code to also generate `CertificateRevocationListDer` and tries to clarify the documented conversions between `&[u8]` and the PKI types.
cc @Tudyx | diff --git a/rcgen/Cargo.toml b/rcgen/Cargo.toml
index 6e8993d3..1b3a0501 100644
--- a/rcgen/Cargo.toml
+++ b/rcgen/Cargo.toml
@@ -50,7 +50,7 @@ features = ["x509-parser"]
allowed_external_types = [
"time::offset_date_time::OffsetDateTime",
"zeroize::Zeroize",
- "rustls_pki_types::*"
+ "rustls_pki_type... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new doc comments misspell \"already\" as \"alread\", a typo copy-pasted into the CertificateParams, CertificateSigningRequestParams, KeyPair::from_der_and_sign_algo and KeyPair::from_raw docs; fix it to \"already have a byte slice containing DER\".", "category": "documentation", "verdict": "... | null |
rustls__rcgen__264 | rustls/rcgen | 264 | defect | 6432225c47f5bcdadb74105df89ce0a7c83cb7e6 | fc3235f78fd4c535761673e0aa1f429123ae52aa | Pass extended key usage parameters when importing CertificateSigningRequestParams | This pull requests adds parsing of most of the extended key usage parameters, except for Other. | diff --git a/rcgen/src/csr.rs b/rcgen/src/csr.rs
index d4f0023c..a3c4b07b 100644
--- a/rcgen/src/csr.rs
+++ b/rcgen/src/csr.rs
@@ -115,6 +115,78 @@ impl CertificateSigningRequestParams {
.push(SanType::try_from_general(name)?);
}
},
+ x509_parser::extensions::ParsedExtension::ExtendedKeyUsage(... | 4 | 4 | 2 | [{"id": "G0", "claim": "The EKU mapping in the CSR parser is verbose; extract the contains()/push() pattern into a private CertificateParams::insert_extended_key_usage helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR's EKU handling ... | null |
rustls__rcgen__287 | rustls/rcgen | 287 | defect | 178ee6bd70c323c5e8e263088a1b5ed6eb896814 | ec36e6991ba31cbb46f8c2745d145c34c313bf2f | Add KeyUsage support to CSR generation | I've added KeyUsage support to CSR generation, as well as a number of improvements to the parsing and writing of DER-encoded key usages.
These commits can be reviewed in order!
(Coming from https://github.com/rustls/rcgen/issues/285) | diff --git a/rcgen/src/lib.rs b/rcgen/src/lib.rs
index 912e9d91..d22611ae 100644
--- a/rcgen/src/lib.rs
+++ b/rcgen/src/lib.rs
@@ -435,6 +435,25 @@ pub enum KeyUsagePurpose {
DecipherOnly,
}
+/// Encode a key usage as the value of a BIT STRING as defined by RFC 5280.
+/// [`u16`] is sufficient to encode the larges... | 2 | 1 | 1 | [{"id": "G0", "claim": "The `From<&KeyUsagePurpose> for u16` impl instantly becomes public API with no motivation to expose it, so make the conversion a private inherent `to_u16()` method instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The build ... | null |
rustls__rcgen__296 | rustls/rcgen | 296 | defect | 86ab4b15853cd9baf1689719feea0b8511987e0a | c6d907b3fa69dce5d9b10f33c0a8c01306235b3e | Add PKCS#10 attributes to CSR serializer | Coming from https://github.com/rustls/rcgen/issues/285, this PR adds PKCS#10 attributes to rcgen's CSR serialization logic.
Of course, rcgen has already implicitly supported at most one attribute in the form of PKCS#9's extensionRequest[^1], but this allows you to add others.
I haven't split up the commits yet in a... | diff --git a/rcgen/src/certificate.rs b/rcgen/src/certificate.rs
index 68ec0f67..0328969f 100644
--- a/rcgen/src/certificate.rs
+++ b/rcgen/src/certificate.rs
@@ -81,6 +81,11 @@ pub struct CertificateParams {
/// [^1]: <https://www.rfc-editor.org/rfc/rfc5280#section-4.2.1.13>
pub crl_distribution_points: Vec<CrlDis... | 11 | 9 | 2 | [{"id": "G0", "claim": "Custom PKCS#10 CSR attributes should be passed to a new CertificateParams::serialize_request_with_attributes() method rather than stored as a field on CertificateParams.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The fix that ... | null |
rustls__rcgen__356 | rustls/rcgen | 356 | defect | dc0f7886aaa6c6d85a1d029ff859981016c3231f | 52057f0c91cf796878ffd07e7ebbc1336f98ca69 | Use Issuer directly in the public API | `Issuer`s can be parsed directly from DER or PEM, so that it should become more obvious how to sign from an existing CA certificate.
I think this might be enough to get 0.14 out the door? | diff --git a/rcgen/examples/sign-leaf-with-ca.rs b/rcgen/examples/sign-leaf-with-ca.rs
index 1130b608..23be6771 100644
--- a/rcgen/examples/sign-leaf-with-ca.rs
+++ b/rcgen/examples/sign-leaf-with-ca.rs
@@ -1,13 +1,13 @@
use rcgen::{
BasicConstraints, Certificate, CertificateParams, DnType, DnValue::PrintableString,... | 2 | 2 | 0 | [{"id": "G0", "claim": "The Deref impl for MaybeOwned should have a newline between the associated `type Target = T;` and the `fn deref` item, as is typical.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The doc comments of the CA-parsing funct... | null |
rustls__rcgen__408 | rustls/rcgen | 408 | defect | 851c56c2a69316a4e73f12b01b3351e03760197d | 4349b2804ee1040b6cb3faceb8fd64a2a958e830 | Add P521-SHA256 and P521-SHA384 signing algorithms | Would like to use these for webpki testing (aws-lc-rs only). | diff --git a/Cargo.lock b/Cargo.lock
index 1ea24f0a..c4eb5d9a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -727,7 +727,7 @@ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
[[package]]
name = "rcgen"
-version = "0.14.6"
+version = "0.14.7"
dependencies = [
"aws-lc-rs",
"openssl",
di... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add some warning to the PKCS_ECDSA_P521_SHA256 doc comment noting the algorithm is poor/rubbish and not supported in TLS 1.3.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
rustls__rcgen__41 | rustls/rcgen | 41 | defect | ef63ca7235eb64ddc28243ec3b23e5eff0353756 | 1b921c616d71cb0c08bdbf39a6f971a7aa1380cd | Add support for creating certificates from CSRs | Depends on https://github.com/rusticata/x509-parser/pull/58 and (transitively) https://github.com/rusticata/oid-registry/pull/1, but if you have any early feedback that would be great! | diff --git a/Cargo.lock b/Cargo.lock
index 28d6d99f..b7b1dbf0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -39,6 +39,18 @@ version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
+[[package]]
+name = "bitvec"
+ve... | 8 | 7 | 2 | [{"id": "G0", "claim": "est31 is not sure the `from_name` function and the `TryFrom` impl should be added, because they make rcgen's public API use types from the x509-parser crate, so semver-breaking x509-parser updates would force breaking releases of rcgen.", "category": "design", "verdict": "supported", "priority":... | null |
rustls__rcgen__5 | rustls/rcgen | 5 | defect | 14a24531142b9431baa6bb8b7aa88da2409fe352 | 4ec80d9113de8daf652fdb83acfb7ac546d58b6f | Add support for writing certificate signing requests | Hey, would you be interested in merging something like this? Seems like a feature that mostly fits, at least, although it maybe widens the scope a bit.
On the other hand, I'm not sure how best to test this for now (although I suppose the openssl library exposes API to actually handle CSRs). So far this is based on j... | diff --git a/src/lib.rs b/src/lib.rs
index 27e9d432..e1a6bfcd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -94,6 +94,9 @@ pub fn generate_simple_self_signed(subject_alt_names :impl Into<Vec<String>>) ->
// Example certs usable as reference:
// Uses ECDSA: https://crt.sh/?asn1=607203242
+/// pkcs-9-at-extensionReques... | 4 | 2 | 1 | [{"id": "G0", "claim": "The new CSR generation should be tested, e.g. by creating an X509Req and calling its openssl verify function.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR's naming is now odd because a Certificate object no longer always... | null |
rustls__rcgen__57 | rustls/rcgen | 57 | defect | 281636454a03a293a92704f5eb091e8ff1233e45 | 4764cc99c7b1f135cb06a6e6b43205b35cf064a9 | Implement `KeyPair::from_remote` | Implements X.509 certificate generation from a remote private key.
Fixes #56. | diff --git a/src/lib.rs b/src/lib.rs
index 57088ad0..53893853 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1215,11 +1215,15 @@ impl Certificate {
Ok(pem::encode(&p))
}
/// Serializes the private key in PKCS#8 format
+ ///
+ /// Panics if called with on a remote key pair.
pub fn serialize_private_key_der(&self)... | 5 | 4 | 0 | [{"id": "G0", "claim": "The panic doc comments added to serialize_private_key_der, serialize_private_key_pem and serialize_der read \"Panics if called with on a remote key pair\" and should read \"Panics if called on a remote key pair\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": ... | null |
rustls__rcgen__71 | rustls/rcgen | 71 | defect | bb494ee689ce67b6541fa94f13a94ade2aff2adf | ab9628d73ed7ae575beabc7d0b7a62d0203653ee | feat: support non utf8 strings | fixes #59
Allows non UTF-8 values to be used for distinguished name entries | diff --git a/src/lib.rs b/src/lib.rs
index c62be435..da5d4173 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -50,6 +50,7 @@ use ring::signature::KeyPair as RingKeyPair;
use ring::signature::{self, EcdsaSigningAlgorithm, EdDSAParameters};
use yasna::DERWriter;
use yasna::models::{GeneralizedTime, UTCTime};
+use yasna::t... | 7 | 6 | 3 | [{"id": "G0", "claim": "The new public enum DnValue should be marked #[non_exhaustive] to be on the safe side.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The DnValue variant doc comments are unhelpful one-liners and should describe what the strings a... | null |
rustls__rustls-platform-verifier__133 | rustls/rustls-platform-verifier | 133 | defect | f6d492b95f251be1b3140688867076666dc741ac | 1bb8c1c0551bea10af23400029e9d0f4dfd14178 | Add new with extra roots on macos/ios | Add support of extra roots for the moment on *macos* and *ios*. I plan to add *windows* and *android* but I believe this is already ready for initial feedback.
The work is mostly based on @complexspaces branch https://github.com/rustls/rustls-platform-verifier/tree/shared/extra-roots-additions.
I've changed the sig... | diff --git a/rustls-platform-verifier/src/tests/verification_mock/mod.rs b/rustls-platform-verifier/src/tests/verification_mock/mod.rs
index 9509bcf2..8d487440 100644
--- a/rustls-platform-verifier/src/tests/verification_mock/mod.rs
+++ b/rustls-platform-verifier/src/tests/verification_mock/mod.rs
@@ -221,7 +221,7 @@ m... | 10 | 9 | 2 | [{"id": "G0", "claim": "The RFC 5280 AIA link fix is unrelated to this PR's topic and should be made up-front in its own commit.", "category": "process", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In new_with_extra_roots on Apple, the closure `map(|root| root.into())` could... | null |
rustls__rustls-platform-verifier__149 | rustls/rustls-platform-verifier | 149 | defect | 8befd1d573cd66061af13423180edc7412f0f20d | ccebe7ac084b1fd571ac07720fbfc2cc7b26a9b8 | Run tests on iOS using Mac Catalyst and expand Apple platforms | This PR accomplishes two things:
- Compiling and running all of the tests on an iOS target, by utilizing Catalyst targets as pointed out in [today's 1.82.0 release notes](https://blog.rust-lang.org/2024/10/17/Rust-1.82.0.html).
- This is not quite as complete as if we ran these tests in a full simulator, but the... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3620a462..2703b5ef 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -33,6 +33,16 @@ jobs:
rustup component add rust-src --toolchain nightly-aarch64-apple-darwin
cargo +nightly clippy -Zbuild-std --target ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The commit order feels wrong: the PR should first replace the Apple `target_os` attributes with `target_vendor = \"apple\"` and then add the specific iOS (Catalyst) stuff on top, rather than a first commit that adds `target_os = \"ios\"` only for a later commit to replace those Apple `target_os`... | null |
rustls__rustls-platform-verifier__159 | rustls/rustls-platform-verifier | 159 | defect | d0834c8047b49c60ebab5d637c39847a7d9743c0 | 1530f5eb16c87eb1b52768c8f655781d58ed493e | Refactor Android init methods for more flexibility | After integrating `rustls-platform-verifier` into a codebase that uses Android, I wrote this PR to propose a more flexible initialization API. Specifically, it would be nice to, rather than passing in a context `JObject` that isn't `Copy`/`Clone`, to instead allow people to pass in a `GlobalRef` directly, which is what... | diff --git a/rustls-platform-verifier/src/android.rs b/rustls-platform-verifier/src/android.rs
index f50db6c8..79086b62 100644
--- a/rustls-platform-verifier/src/android.rs
+++ b/rustls-platform-verifier/src/android.rs
@@ -68,33 +68,35 @@ fn global() -> &'static Global {
.expect("Expect rustls-platform-verifie... | 6 | 5 | 1 | [{"id": "G0", "claim": "Split the pull request into three separate commits: one for each rename and one for the new API.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "Reconsider forcing downstream users through a deprecation for a cosmetic rename;... | null |
rustls__rustls-platform-verifier__162 | rustls/rustls-platform-verifier | 162 | defect | 9ac0577af77bed385803839131d9f371f6bd14f2 | 850f268985afa84c9afa3ff22ac82bf6531b9b53 | Fix audit | This is technically semver-incompatible because it removes the `paste` feature. I think we can ignore this because it's only used for testing and so it seems unlikely that someone in the wild depends on it. | diff --git a/Cargo.lock b/Cargo.lock
index 30bcc81a..e79cf7b1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -13,9 +13,9 @@ dependencies = [
[[package]]
name = "android_log-sys"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5ecc8056bf6ab9892dcd5321... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Cargo.lock change that bumps rustls-platform-verifier's windows-sys entry from 0.52.0 to 0.59.0 needs to be reverted, or CI will not get coverage over both 0.52 and 0.59 to match the semver range specified in the manifest.", "category": "testing", "verdict": "supported", "priority": "P1", "s... | null |
rustls__rustls-platform-verifier__28 | rustls/rustls-platform-verifier | 28 | defect | 0d9aa7d7c67260e77ac699344d61d0bc56caf0a5 | bd4668b7e915dbc9ba20ae4b5bc8e9fe9fa67d41 | verification: enable ip subj. validation on android. | While the Android verifier defers to the platform verifier for most certificate validation options, it relies on `webpki` for ensuring that a certificate is valid for a given subject name. Since Webpki v0.100.x it's been possible to use `webpki` to validate IP address subject names, and so we want this capability to be... | diff --git a/src/tests/verification_mock/mod.rs b/src/tests/verification_mock/mod.rs
index a6aa5136..ddcfe3fb 100644
--- a/src/tests/verification_mock/mod.rs
+++ b/src/tests/verification_mock/mod.rs
@@ -72,15 +72,35 @@ macro_rules! no_error {
const ROOT1: &[u8] = include_bytes!("root1.crt");
const ROOT1_INT1: &[u8] =... | 3 | 3 | 0 | [{"id": "G0", "claim": "The method could be made private and just take a `&str`, with the conversion to string done in `ServerCertVerifier::verify_server_cert()` instead, which would avoid the `unreachable!()` shenanigans.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
rustls__rustls-platform-verifier__82 | rustls/rustls-platform-verifier | 82 | defect | 50e2b02529a094254c726991279c94ea144988df | 2e7513726be9ce7ab58cde3c0e7f465d87fd2d87 | Vet docs in CI | Quick follow-up to https://github.com/rustls/rustls-platform-verifier/pull/80
It looks like this repo wasn't building documentation in CI. This branch adds a step for that, forbidding warnings. Additionally fixes a warning in test-only rustdoc that is raised when using `--document-private-items`. | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9ba1f2ba..ca281dff 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -229,3 +229,20 @@ jobs:
- name: Verify release artifact
run: ./ci/verify_android_release.sh
+
+ docs:
+ name: Check for documentat... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new docs CI job installs the nightly toolchain while most of CI uses stable, and the reviewer asks whether that choice is intentional.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rustls__rustls__1046 | rustls/rustls | 1,046 | defect | 4fc3a3af8cadd4d414560f79b3428c6c93aa11eb | 53134e4d024246818b3e8104f29f2da5599a819d | impl Default for Acceptor | `Acceptor::new()` returns an error only when `max_fragment_size` is invalid, which never happens. To avoid a breaking change, offer another way to construct an `Acceptor` via `Default`.
To make that possible, also implement `Default` for `MessageFragmenter`, replacing `MessageFragmenter::new()`. Previously there wer... | diff --git a/fuzz/fuzzers/fragment.rs b/fuzz/fuzzers/fragment.rs
index 7015d0dc6ac..b43729b266c 100644
--- a/fuzz/fuzzers/fragment.rs
+++ b/fuzz/fuzzers/fragment.rs
@@ -21,12 +21,11 @@ fuzz_target!(|data: &[u8]| {
Err(_) => return,
};
- let frg = fragmenter::MessageFragmenter::new(Some(32)).unwrap();... | 5 | 5 | 2 | [{"id": "G0", "claim": "Drop the newtype, which does not carry its weight, and instead have a setter on MessageFragmenter that becomes the single way to set the fragment size.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Fix the strange formatting left... | null |
rustls__rustls__1062 | rustls/rustls | 1,062 | defect | a748239220151d05dda571447e4a0956f1cd3e60 | b3d7d03cd03c411637b388fd9ceb3e5e68e3f88d | Export DigitallySignedStruct in stable API | This was exposed as part of the public API via ServerCertVerifier,
ClientCertVerifier, and structs that implement those two traits.
Transitively, this should expose PayloadU16 as part of the stable API, since
DigitallySignedStruct's `sig` field has type PayloadU16. However, PayloadU16
exposes unnecessary implemen... | diff --git a/rustls/src/lib.rs b/rustls/src/lib.rs
index 3dc17b13a41..c84d8f8931f 100644
--- a/rustls/src/lib.rs
+++ b/rustls/src/lib.rs
@@ -371,7 +371,7 @@ pub use crate::key::{Certificate, PrivateKey};
pub use crate::key_log::{KeyLog, NoKeyLog};
pub use crate::key_log_file::KeyLogFile;
pub use crate::kx::{Supporte... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new DigitallySignedStruct accessor should be named `signature()` rather than `sig()`, since the API guidelines usually avoid abbreviations.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rustls__rustls__1063 | rustls/rustls | 1,063 | defect | a748239220151d05dda571447e4a0956f1cd3e60 | 4400e2ad9c359d216546c44552efa3e5e7479fef | Deprecate Acceptor::wants_read | This method always returns true.
Fixes #1045 | diff --git a/rustls/src/server/server_conn.rs b/rustls/src/server/server_conn.rs
index 96589bdf886..e73a878d484 100644
--- a/rustls/src/server/server_conn.rs
+++ b/rustls/src/server/server_conn.rs
@@ -485,11 +485,12 @@ impl Acceptor {
Ok(Self::default())
}
- /// Returns true if the caller should call... | 1 | 1 | 0 | [{"id": "G0", "claim": "Keep the single self-contained doc-comment line that summarizes what Acceptor::wants_read does.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
rustls__rustls__1189 | rustls/rustls | 1,189 | defect | 411a65d7367bed6e5c90ed4bfa000334536e68ae | 9eb417b7b35c5b03665d88c6161ce023b3875bbc | Harmonize certificate verifiers construction API | Closes #1106
This turned out less elegant than first expected. The issue is that `ClientCertVerifier` is only reachable with the `dangerous_configuration` feature enabled.
Usually, the compiler is smart enough to do the coercion automatically. However, there are a few cases where you might need to coerce it in ad... | diff --git a/examples/src/bin/tlsserver-mio.rs b/examples/src/bin/tlsserver-mio.rs
index b74458a5ea6..1c6d6b9df51 100644
--- a/examples/src/bin/tlsserver-mio.rs
+++ b/examples/src/bin/tlsserver-mio.rs
@@ -559,12 +559,12 @@ fn make_config(args: &Args) -> Arc<rustls::ServerConfig> {
client_auth_roots.add(&ro... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new NoClientAuth doc comment is written in the third person while the other two new doc comments use the imperative mood, and djc asked to bring this one in line with the others.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl... | null |
rustls__rustls__1192 | rustls/rustls | 1,192 | defect | 411a65d7367bed6e5c90ed4bfa000334536e68ae | 3a3e203d51f08463719513f0bd6cb5f7716631cb | improve & test ServerName debug output - workaround | **hopefully** resolves #1177
**before:**
result from `format!("{:?}", rustls::ServerName::try_from("a.com"))`:
Ok(DnsName(DnsName(DnsName(\"a.com\"))))
**after:**
result from `format!("{:?}", rustls::ServerName::try_from("a.com"))`:
Ok(DnsName(\"a.com\"))
**also tested:**
`rustls::Server... | diff --git a/rustls/src/verify.rs b/rustls/src/verify.rs
index cf05fca9afe..33f53e002ba 100644
--- a/rustls/src/verify.rs
+++ b/rustls/src/verify.rs
@@ -202,7 +202,7 @@ impl fmt::Debug for dyn ServerCertVerifier {
}
/// A type which encapsulates a string that is a syntactically valid DNS name.
-#[derive(Clone, Debu... | 2 | 2 | 0 | [{"id": "G0", "claim": "Fix the typo in the comment added in verify.rs: \"workaroud\" should be \"workaround\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the new test, unwrap the ServerName::try_from(\"a.com\") result so the assertion comp... | null |
rustls__rustls__1374 | rustls/rustls | 1,374 | defect | 304116b4765a562f1d063c453286d2ca6ebba519 | 66ea8689632c0931bc69615d91e78a8695fd38c6 | Echo `session_id` in HRR | On the server, we should've been echoing the `session_id` in HelloRetryRequest messages (we already did for ServerHellos).
On the client, there's a requirement that we detect this and fail the connection with an `illegal_parameter` alert.
fixes #1373 | diff --git a/rustls/Cargo.toml b/rustls/Cargo.toml
index 6e99f676a4b..d8fa4d51151 100644
--- a/rustls/Cargo.toml
+++ b/rustls/Cargo.toml
@@ -19,7 +19,7 @@ rustversion = { version = "1.0.6", optional = true }
log = { version = "0.4.4", optional = true }
ring = "0.16.20"
subtle = "2.5.0"
-webpki = { package = "rustls-... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add links to the RFC 8446 spec sections quoted in the new HRR session_id comment in client/hs.rs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Pass SessionId by value to emit_hello_retry_request instead of by reference, s... | null |
rustls__rustls__1766 | rustls/rustls | 1,766 | defect | d8b918c74dd2a8ad11534c9ffd508dc03662900b | 71d8047ecad3736790b266cf6ffca98e49d1fd35 | Introduce concept of "process default" provider | One can be installed with `CryptoProvider::install_as_process_default`. First call wins.
The current value can be retrieved with `CryptoProvider::process_default()`.
This can be set from the crate features, if any only if they are unambigious, using `CryptoProvider::install_process_default_from_crate_features`.
... | diff --git a/Cargo.lock b/Cargo.lock
index f9364e6f48a..335dd1b66fc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2024,6 +2024,7 @@ dependencies = [
"bencher",
"env_logger",
"log",
+ "once_cell",
"ring",
"rustls-pemfile 2.0.0",
"rustls-pki-types",
diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock
index ccfb275a... | 10 | 9 | 1 | [{"id": "G0", "claim": "The install method could yield an `Installed` newtype token which libraries could then take.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The client `builder_with_protocol_versions` panic doc dropped a word: 'if a `CryptoProvide... | null |
rustls__rustls__1784 | rustls/rustls | 1,784 | defect | 8e4afc6d141ba4e0df0f32e9079b2ac1c011d7b9 | 8f6cbedb5b0535f1d2a1de70866f0ab08e809e2a | Correct kx group selection | See https://datatracker.ietf.org/doc/draft-davidben-tls-key-share-prediction/ for background.
The first three commits are "the friends we made along the way".
fixes #1512 | diff --git a/rustls/src/client/hs.rs b/rustls/src/client/hs.rs
index 361fbd03980..d3ce6562809 100644
--- a/rustls/src/client/hs.rs
+++ b/rustls/src/client/hs.rs
@@ -867,8 +867,7 @@ impl ExpectServerHelloOrHelloRetryRequest {
}
};
- skxg.start()
- ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new NoKxGroupsInCommon branch in server/tls13.rs has no test coverage because the same condition is already detected earlier in server/hs.rs, leaving that branch unreachable.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Cli... | null |
rustls__rustls__1785 | rustls/rustls | 1,785 | defect | 8e4afc6d141ba4e0df0f32e9079b2ac1c011d7b9 | 851f999c835c36d2513a8f14f9aab160e8e15a76 | Support for X25519Kyber768Draft00 post-quantum key exchange | I think I like the idea of releasing this as a separate crate for now, because:
- it's pre-standardisation, so might have a short lifetime and different release cadence.
- it implies enabling the `unstable` feature on `aws-lc-rs`, I don't want to do this for the main crate (or add a new feature).
Once those two ... | diff --git a/Cargo.lock b/Cargo.lock
index 9dc52d62d25..cee63af6afe 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2244,6 +2244,16 @@ version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a716eb65e3158e90e17cd93d855216e27bde02745ab842f2cab4a39dba1bacf"
+[[package]]
+name = "r... | 10 | 9 | 1 | [{"id": "G0", "claim": "Add a comment caveat to the Cargo.toml dev-dependency pin explaining why the upgrade (env_logger 0.11) is avoided.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default start_and_complete implementation should build th... | null |
rustls__rustls__1811 | rustls/rustls | 1,811 | defect | a31c5da2e50d04898a4573ff95250268560cf51a | 96679d206608a5175f3670aa8c4182102cbdce1b | server: allow acceptor to send alerts after error | Fixes #1792.
* `Acceptor`'s `accept` and `into_connection` fns now return both an `Error` and an `AcceptedAlert` in the error case. The `AcceptedAlert` can be used to write any TLS alerts produced during processing.
* Test coverage is updated to include:
* Tests for a junk handshake being rejected in `accept` w... | diff --git a/rustls/src/server/server_conn.rs b/rustls/src/server/server_conn.rs
index 79f7d2b22bf..a1fba142ca0 100644
--- a/rustls/src/server/server_conn.rs
+++ b/rustls/src/server/server_conn.rs
@@ -730,25 +730,36 @@ impl Acceptor {
/// Returns `Ok(Some(accepted))` if the connection has been accepted. Call
... | 4 | 4 | 2 | [{"id": "G0", "claim": "The PR should add at least two test cases for alert sending: one where the ClientHello is junk (accept() fails and sends e.g. decode_error) and one where the handshake is impossible (into_connection() fails and sends e.g. handshake_failure).", "category": "testing", "verdict": "supported", "prio... | null |
rustls__rustls__1899 | rustls/rustls | 1,899 | defect | fa605bfff02d7c2b7b31cca01ea2f5faf003fc3d | 9780da3f90a3122c47cf86d4b791164a44377582 | Expose connection resumption details | My goal with this is to support implementation of [`SSL_session_reused`](https://www.openssl.org/docs/man1.1.1/man3/SSL_session_reused.html) but this should also fix #705.
I'm hoping what and how this works is relatively uncontroversial, but I'm not 100% pleased with the naming. | diff --git a/rustls/src/client/hs.rs b/rustls/src/client/hs.rs
index b1accd5df65..be6e826da0b 100644
--- a/rustls/src/client/hs.rs
+++ b/rustls/src/client/hs.rs
@@ -16,7 +16,7 @@ use crate::check::inappropriate_handshake_message;
use crate::client::client_conn::ClientConnectionData;
use crate::client::common::ClientH... | 5 | 4 | 0 | [{"id": "G0", "claim": "The new public enum `HandshakeDetails` is too generic/vague a name and should be renamed (e.g. to `HandshakeKind`, reusing spec-like vocabulary if available).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on the `... | null |
rustls__rustls__1955 | rustls/rustls | 1,955 | defect | 06dc1d540cc0a28941790430a37788fd04db956e | 4619a2020af3f65fad2318fd0a4cee50fbceb312 | Avoid sending multiple close notifies | This PR also fixes #1950 which caused a desynchronisation after a close notify.
After this PR, tokio-rustls test suite breakage caused in 0.23.6 (see https://github.com/rustls/tokio-rustls/actions/runs/9123001981/job/25084713982) is fixed
# 0.23.7 draft release notes
- `send_close_notify` is now idempotent, i... | diff --git a/Cargo.lock b/Cargo.lock
index 11a28e26b5b..05369325f2c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2172,7 +2172,7 @@ dependencies = [
[[package]]
name = "rustls"
-version = "0.23.6"
+version = "0.23.7"
dependencies = [
"aws-lc-rs",
"base64 0.22.1",
@@ -2206,7 +2206,7 @@ dependencies = [
"fxhash... | 1 | 1 | 0 | [{"id": "G0", "claim": "The guard added in send_close_notify should use an inverted condition with an early return instead of wrapping the body in an if block.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
rustls__rustls__1993 | rustls/rustls | 1,993 | defect | dd5de6b8aa181e2903f5bf311a9f380c8761b6fd | 591580033ebad0c964cb7e6854b42dfa5e12c826 | Disable x25519 key exchange in fips mode | This was an oversight during the FIPS work. This PR enables the bogo FIPS compliance tests, which act as a regression test for this change:
```
FAILED (Compliance-fips-202205-TLS-Client-X25519)
unexpected success: local error 'none', child error 'none', stdout:
(...)
FAILED (Compliance-fips-202205-TLS-Server-X25... | diff --git a/rustls/src/crypto/ring/kx.rs b/rustls/src/crypto/ring/kx.rs
index db8734d9817..010736cfde9 100644
--- a/rustls/src/crypto/ring/kx.rs
+++ b/rustls/src/crypto/ring/kx.rs
@@ -20,6 +20,9 @@ struct KxGroup {
/// The corresponding ring agreement::Algorithm
agreement_algorithm: &'static agreement::Alg... | 2 | 1 | 0 | [{"id": "G0", "claim": "The `can_be_fips_approved` field's name and one-line docstring don't make clear that `fips()` combines an algorithm being allowed by FIPS with the implementation being FIPS-validated; make this explicit in the docstring, and the reviewer questions why it isn't simply named `fips_approved`.", "ca... | null |
rustls__rustls__2022 | rustls/rustls | 2,022 | defect | 185cc7184a73f6a75fc33930386217e33696d1ad | 15935dcf10d6a5f479adb757c2abfa75fb8ff1cb | Tighten up ticketer decryption | These changes aim to make it harder to mount any theoretical attack against AEAD decryption due to the AEADs we use being not key-committing. The best current attacks against this aren't better than brute force, so there is no security issue here.
The last commit is a little unrelated, but is along for the ride afte... | diff --git a/rustls/src/crypto/ring/ticketer.rs b/rustls/src/crypto/ring/ticketer.rs
index fbcaaef6a0d..dd6b7ad5a53 100644
--- a/rustls/src/crypto/ring/ticketer.rs
+++ b/rustls/src/crypto/ring/ticketer.rs
@@ -5,6 +5,7 @@ use alloc::sync::Arc;
use alloc::vec::Vec;
use core::fmt;
use core::fmt::{Debug, Formatter};
+us... | 3 | 3 | 0 | [{"id": "G0", "claim": "The doc comment on `maximum_ciphertext_len` should briefly explain why a peer might send too-long ciphertexts, e.g. motivating the control as avoiding a partitioning oracle.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
rustls__rustls__2092 | rustls/rustls | 2,092 | defect | b0f9a2bd5f6afa8f17d014a6eb2091ec51510125 | 646246f37a739cac79b797d8cc8db9fc58d121bd | Remove FFDHE constants from programs that don't use FFDHE | The constants in `rustls::ffdhe_groups` are kinda large, and aren't used unless someone specifically builds a FFDHE key exchange group and includes it in their crypto provider. But the linker doesn't know that, and so the whole lot are included in people's final binary:
```
$ cargo bloat --bin limitedclient
File ... | diff --git a/openssl-tests/src/ffdhe.rs b/openssl-tests/src/ffdhe.rs
index c45f5199128..0671272d1c0 100644
--- a/openssl-tests/src/ffdhe.rs
+++ b/openssl-tests/src/ffdhe.rs
@@ -11,7 +11,7 @@ pub static TLS_DHE_RSA_WITH_AES_128_GCM_SHA256: SupportedCipherSuite =
SupportedCipherSuite::Tls12(&TLS12_DHE_RSA_WITH_AES_1... | 4 | 3 | 2 | [{"id": "G0", "claim": "The new `ffdhe_group()` methods (notably on `ActiveKeyExchange`) have no test coverage, so tests should exercise them to close the coverage gap.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Shipping this in a 0.23.x release rat... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.