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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rust-random__rand__567 | rust-random/rand | 567 | defect | 686ba1469b7ab00e406227b4e21d55ae4a00a49e | fd2730f20bb2eb7dc149847ab93cf08325279cea | Implement sampling from the unit sphere and circle | This uses a method by Marsaglia (1972), which was found to be the fastest of the methods given by [MathWorld]. (See [my benchmarks](https://github.com/vks/sample-sphere).)
[MathWorld]: http://mathworld.wolfram.com/SpherePointPicking.html
There are some open questions:
* Technically this is a uniform distribution... | diff --git a/src/distributions/mod.rs b/src/distributions/mod.rs
index 03d2d58e7bc..1e7d53cce87 100644
--- a/src/distributions/mod.rs
+++ b/src/distributions/mod.rs
@@ -100,6 +100,7 @@
//! - [`FisherF`] distribution
//! - Multivariate probability distributions
//! - [`Dirichlet`] distribution
+//! - [`UnitSphe... | 5 | 4 | 0 | [{"id": "G0", "claim": "In UnitSphere::sample the individual squares x1_sq and x2_sq are never used separately, so a single sum-of-squares expression would do.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sample function could pre-multiply... | null |
rust-random__rand__664 | rust-random/rand | 664 | defect | 19d3baf2c454d728bfbe36967fcb1111596bd355 | d084a8951173a1c0b10023311b35ab472d667f94 | Move `rustc_version` dep to `autocfg` | The `rustc_version` dependency is weighty and suffers from
Kimundi/rustc-version-rs#11 which makes it more difficult to change
rustc over time. | diff --git a/Cargo.toml b/Cargo.toml
index 5f95c3762c8..f1ac382ea81 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -70,7 +70,7 @@ wasm-bindgen = { version = "0.2.12", optional = true }
average = "0.9.2"
[build-dependencies]
-rustc_version = "0.2"
+version_check = "0.1"
[package.metadata.docs.rs]
all-features = tru... | 2 | 1 | 0 | [{"id": "G0", "claim": "build.rs could be simpler by calling version_check::is_min_version again for the later version checks instead of manually splitting and parsing the version string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Using auto... | null |
rust-random__rand__696 | rust-random/rand | 696 | defect | 4336232dda03323634b10ec72ddf27914aebc3a2 | 86f2185ed9116cfe08e08c2930bf035483e69f5c | Add minimal wasm-bindgen test crate | This adds a simple test of wasm-bindgen support. It uses wasm-pack to compile the test to wasm, and run it in nodejs. | diff --git a/.travis.yml b/.travis.yml
index b41e68172f7..8706fc459d0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -139,6 +139,7 @@ matrix:
- ./utils/ci/install_cargo_web.sh
- cargo web prepare-emscripten
- cargo web -V
+ - cargo install wasm-pack
addons:
chrome: stabl... | 3 | 3 | 1 | [{"id": "G0", "claim": "Installing wasm-pack with plain `cargo install` will not work on the next build because the `.cargo` directory is cached; dhardy suggests installing via `cargo-update` instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
rust-random__rand__798 | rust-random/rand | 798 | defect | 4ef40b69e42cb8c848d40221a95e979ada63e039 | 0b966ebff823322d94adaeb2cbafbdf2db2b4ed4 | Implement unit ball sampling and rename UnitSphereSurface -> UnitSphere | Fixes #797. | diff --git a/Cargo.toml b/Cargo.toml
index 280d39d148f..46a2759c822 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -65,8 +65,6 @@ features = ["into_bits"]
libc = { version = "0.2.22", default-features = false }
[dev-dependencies]
-# This has a histogram implementation used for testing uniformity.
-average = "0.9.2"
#... | 4 | 4 | 3 | [{"id": "G0", "claim": "The UnitBall doc comment wrongly says it samples from the surface of the unit sphere instead of from the unit ball.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment's 'Implemented via a rejection sampling' sho... | null |
rust-random__rand__800 | rust-random/rand | 800 | defect | c0b872292963ad4994c027f111b42f743a3a1f02 | a4e5f019f76175dfc42e9cdd4e8f3feb6ae2df71 | Revise rand_core::Error (alt #771) | This is an alternative to #771.
This does not currently make any attempt to reduce the size of `Error`; we could use a second `Box` around internals for `std` (or even `alloc`) mode and omit the `msg` in `no_std` mode. If this does offer performance improvements, I expect these will only be in isolated cases, theref... | diff --git a/rand_core/Cargo.toml b/rand_core/Cargo.toml
index 98e47ddf899..8c39865486a 100644
--- a/rand_core/Cargo.toml
+++ b/rand_core/Cargo.toml
@@ -18,10 +18,11 @@ travis-ci = { repository = "rust-random/rand" }
appveyor = { repository = "rust-random/rand" }
[features]
-std = ["alloc"] # use std library; sh... | 5 | 3 | 3 | [{"id": "G0", "claim": "The std feature should not unconditionally enable and couple to the getrandom dependency (support std without getrandom, or justify why it cannot be done).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The S1 error implementation... | null |
rust-rocksdb__rust-rocksdb__1002 | rust-rocksdb/rust-rocksdb | 1,002 | defect | 63e0cb2a3441e19a155a58e66620134c161ab96c | c22b30afd8df33d3d27c148ab7cb3e70b864029c | Implement WriteBatchIteratorCf trait and update related methods for compatibility | By the way, when using the WriteBatchIterator, remove the dynamic trait (dyn) and switch to static dispatch. | diff --git a/src/lib.rs b/src/lib.rs
index 57337ac5e..615aefd48 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -141,7 +141,9 @@ pub use crate::{
OptimisticTransactionDB, OptimisticTransactionOptions, Transaction, TransactionDB,
TransactionDBOptions, TransactionOptions,
},
- write_batch::{WriteBat... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new WriteBatchIteratorCf public trait is missing a description/doc comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rust-rocksdb__rust-rocksdb__1065 | rust-rocksdb/rust-rocksdb | 1,065 | defect | 31e819d49951ced0c901ddcbb50c45eba3c2d09d | 7191e46465d427da958e8da8611dd2e90add7162 | Add timestamp() to DBRawIterator to retrieve user defined timestamps | This change exposes the user defined timestamp accessor from the DBRawIteratorWithThreadMode. | diff --git a/src/db_iterator.rs b/src/db_iterator.rs
index 0fdb5986b..fc1ee5cab 100644
--- a/src/db_iterator.rs
+++ b/src/db_iterator.rs
@@ -342,6 +342,15 @@ impl<'a, D: DBAccess> DBRawIteratorWithThreadMode<'a, D> {
}
}
+ /// Returns a slice of the current timestamp.
+ pub fn timestamp(&self) -> ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The doc comment saying timestamp() returns \"the current timestamp\" is wrong — it returns the timestamp at which the entry the iterator points to was written (and that timestamp can also be user-supplied).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
rust-rocksdb__rust-rocksdb__1074 | rust-rocksdb/rust-rocksdb | 1,074 | defect | fc78567731bc62d9811a30b7687b2da642ce617f | fc87a215b653fe54fd5c9464c0013c837ce7f34e | Add Iterator::Refresh() bindings | Expose rocksdb_iter_refresh (already present in the RocksDB 10.7.5 C API) through safe Rust wrappers on both DBRawIteratorWithThreadMode and DBIteratorWithThreadMode. | diff --git a/src/db_iterator.rs b/src/db_iterator.rs
index 0fdb5986b..0df7ada2f 100644
--- a/src/db_iterator.rs
+++ b/src/db_iterator.rs
@@ -139,6 +139,18 @@ impl<'a, D: DBAccess> DBRawIteratorWithThreadMode<'a, D> {
Ok(())
}
+ /// Renews the iterator to represent the latest state of the DB. After
+ ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The docstring on `DBRawIteratorWithThreadMode::refresh` saying that if the iterator was created with a snapshot \"the snapshot is released\" is misleading and should be reworded to say the iterator stops using the snapshot, without implying the caller's `SnapshotWithThreadMode` handle is release... | null |
rust-rocksdb__rust-rocksdb__518 | rust-rocksdb/rust-rocksdb | 518 | defect | 7dd6258b07861b9332f827b416e50e5aee69aea1 | dfeda6ebc6fc82718e46e39cf7e37ada790dd30a | Add 'key_may_exist' functions family | Closes #439. | diff --git a/src/db.rs b/src/db.rs
index ae7f5956e..a785de328 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -844,6 +844,62 @@ impl<T: ThreadMode> DBWithThreadMode<T> {
Ok(convert_values(values, values_sizes))
}
+ /// Returns `false` if the given key definitely doesn't exist in the database, otherwise ret... | 2 | 1 | 1 | [{"id": "G0", "claim": "The doc comments on the new key_may_exist methods say 'otherwise returns `false`' where they should say 'otherwise returns `true`'.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new tests only demonstrate the false cas... | null |
rust-rocksdb__rust-rocksdb__589 | rust-rocksdb/rust-rocksdb | 589 | defect | 8bf9faddb3b51bd1f1267efbc2037b323b4ba0a4 | fb617856b05e6658d650ce0d8a23f1eb197c07ba | Add constants for all supported properties | I want to query several properties and noticed there aren't equivalent constants as there are in the RocksDB repo.
This was a copy/paste with some regex'ing to make it adhere to Rust syntax. I figured including the comments inline is nice, but I could also see argument of not including them and instead referring rea... | diff --git a/src/lib.rs b/src/lib.rs
index c84f83444..4e9ec4bcd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -87,6 +87,7 @@ mod db_options;
mod db_pinnable_slice;
pub mod merge_operator;
pub mod perf;
+pub mod properties;
mod slice_transform;
mod snapshot;
mod sst_file_writer;
diff --git a/src/properties.rs b/src/... | 3 | 3 | 0 | [{"id": "G0", "claim": "Remove the license header from src/properties.rs since the Apache license does not require a per-file header and other files already lack one.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the ROCKSDB_PREFIX! mac... | null |
rust-rocksdb__rust-rocksdb__604 | rust-rocksdb/rust-rocksdb | 604 | defect | 871c461580ea81cd92afd6819fd5b5ee2ea59641 | 99dd05d11d290624088a3b86bf49e67a0ef65178 | Add open_cf_descriptor methods for Seoncdary and ReadOnly AccessType | I saw there is already `open_cf_with_opts_for_read_only()`; however, I also saw the existence of `open_cf_descriptors_with_ttl()` so I thought adding `open_cf_descriptors_read_only()` was fair game; there is no alternative to open CF's as a secondary with non-default options so `open_cf_descriptors_as_secondary()` seem... | diff --git a/src/db.rs b/src/db.rs
index 4fdf8093a..3b3997ff7 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -403,6 +403,28 @@ impl<T: ThreadMode> DBWithThreadMode<T> {
)
}
+ /// Opens a database for ready only with the given database options and
+ /// column family descriptors.
+ pub fn open_cf_des... | 3 | 3 | 1 | [{"id": "G0", "claim": "It would be good to add tests for the new open_cf_descriptor methods (Secondary and ReadOnly).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tests clone the cfs vector unnecessarily when calling DB::open_cf; pass &cfs instea... | null |
rust-rocksdb__rust-rocksdb__626 | rust-rocksdb/rust-rocksdb | 626 | defect | 3a46074c36a3f1f1f066ca0c9be1a2efc91563e2 | 60ae08c864d6ae3d5a5eb2321af2bb9701c9043f | Upgrade to rocksdb v7 | This updates all sources files & the sys package so it compiles. Does not add any new features | diff --git a/Cargo.toml b/Cargo.toml
index 5b203c04b..4422d9ed2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -34,7 +34,7 @@ serde1 = ["serde"]
[dependencies]
libc = "0.2"
-librocksdb-sys = { path = "librocksdb-sys", version = "0.6.1" }
+librocksdb-sys = { path = "librocksdb-sys", version = "0.7.0" }
serde = { versi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The creation of the additional win_sources vector in build_rocksdb is redundant and lib_sources.extend should be used instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rust-rocksdb__rust-rocksdb__641 | rust-rocksdb/rust-rocksdb | 641 | defect | ef8724679857139ede30672a8c478b6ade5ef0a4 | fafeee1e6f48b0f246485577057ed4c487c36e33 | Allow passing &CStr arguments | Methods such as property_value take `&str` name as argument. However,
since they interact with C functions, such string arguments need to be
converted into a `&CStr`. Because the argument is `&str` this must be
done via `CString::new` which needs to allocate memory and verify that
the value does not have embedded... | diff --git a/src/db.rs b/src/db.rs
index 86b61defe..ab740929f 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -19,7 +19,7 @@ use crate::{
column_family::UnboundColumnFamily,
db_options::OptionsMustOutliveDB,
ffi,
- ffi_util::{from_cstr, opt_bytes_to_ptr, raw_data, to_cpath},
+ ffi_util::{from_cstr, opt_b... | 2 | 1 | 0 | [{"id": "G0", "claim": "create_inner_cf_handle should preserve the internal error (like other places) instead of discarding it with map_err(|_|).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It may make sense to add From<&str> and From<&String> fo... | null |
rust-rocksdb__rust-rocksdb__648 | rust-rocksdb/rust-rocksdb | 648 | defect | 908049d9e7d130cfeee31d144591e77b69b461d3 | d6555a92a00d1ea727f7e11ccf3691b99592c415 | Change iterators to return Result | Currently, Iterator implementation for DBIteratorWithThreadMode
produce (key, value) pairs on iteration. When it stops (i.e. next
method returns None) the user is expected to call status method to see
if the iteration finished normally or due to an error. This is, dare
I say, not very idiomatic.
Consider for e... | diff --git a/src/db_iterator.rs b/src/db_iterator.rs
index fa988e669..a259e9803 100644
--- a/src/db_iterator.rs
+++ b/src/db_iterator.rs
@@ -372,22 +372,26 @@ pub type DBIterator<'a> = DBIteratorWithThreadMode<'a, DB>;
/// {
/// let db = DB::open_default(path).unwrap();
/// let mut iter = db.iterator(Iterato... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment '// Chock that set_mode resets the iterator' in tests/test_iterator.rs misspells 'Check' and should read '// Check that set_mode resets the iterator'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
rust-rocksdb__rust-rocksdb__793 | rust-rocksdb/rust-rocksdb | 793 | defect | e0dab6a098716bf7d237b038049269d7d75145ba | 388e9a7e4338d92b9d9fbe488ab7be213b2eb9dd | Expose flush_cfs_opt to flush multiple column families | which is critically important for atomic flush use case
Fix https://github.com/rust-rocksdb/rust-rocksdb/issues/792 | diff --git a/src/db.rs b/src/db.rs
index ac3ce107e..7c0345c48 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -915,6 +915,28 @@ impl<T: ThreadMode, D: DBInner> DBCommon<T, D> {
Ok(())
}
+ /// Flushes multiple column families.
+ ///
+ /// If atomic flush is not enabled, it is equivalent to calling flu... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a simple test for the newly exposed flush_cfs_opt method.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
rust-rocksdb__rust-rocksdb__837 | rust-rocksdb/rust-rocksdb | 837 | defect | 4b8a2ce57e9c4b745784fa3d023c8e3b4ab3a83c | 2eed18be966f6e8011e95d0de9db8a30c4c1b51c | Expose LRU cache options | This PR exposes the following two DB options related to BlobDB caching:
https://github.com/facebook/rocksdb/blob/f6fd4b9dbd15dba36f7e5ad23de407b5c26b1460/include/rocksdb/advanced_options.h#L1129-L1148 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0d9154197..966227d25 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@
* Bump MSRV to 1.63.0 (mina86)
* Convert properties to `&PropName` which can be converted at no cost to `&CStr`
and `&str` (mina86)
+* Expose blob cache options
+* Expose LRU cache optio... | 3 | 2 | 1 | [{"id": "G0", "claim": "Dropping the LruCacheOptions after constructing a cache with new_lru_cache_opts may leave the cache holding a pointer to freed memory (use-after-free).", "category": "correctness", "verdict": "opposed", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Tests should be added coveri... | null |
rust-rocksdb__rust-rocksdb__853 | rust-rocksdb/rust-rocksdb | 853 | defect | 8fccdf5473e3e75a5ce0f42e5ff5e89c2012305b | 1678156b1cfd34d84f071809b28897f178e00475 | Expose rocksdb cumulative statistics and histograms | This exposes rocksdb statistics (tickers and histograms) to allow rust-rocksdb users to introspect individual metrics. Additionally, this PR also adds `set_statistics_level(StatsLevel)` to `Options` for fine-grain control over which stats are collected.
Tickers and histograms are available in `rocksdb::statistics::{... | diff --git a/src/db_options.rs b/src/db_options.rs
index e4f70576f..3fd7a40cf 100644
--- a/src/db_options.rs
+++ b/src/db_options.rs
@@ -20,6 +20,7 @@ use std::sync::Arc;
use libc::{self, c_char, c_double, c_int, c_uchar, c_uint, c_void, size_t};
+use crate::statistics::{Histogram, HistogramData, StatsLevel};
use... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add descriptions/doc comments to the newly added public methods on Options (e.g. get_ticker_count, get_histogram_data), which were merged without any.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer questions wh... | null |
rust-rocksdb__rust-rocksdb__901 | rust-rocksdb/rust-rocksdb | 901 | defect | 9e24ed82920b5ccdc24cc0c446ec86f8b5778479 | cb316e440ff7ec0e75e98b9537aa9fe6922ca5a6 | support user defined timestamp in rust bindings | This PR introduce support for operations with timestamp, including
- put / get / delete with timestamp in DB operations
- put / delete with timestamp in sst_file_writer
- a predefined comparator with timestamp implementation
- other relevant options with timestamp in ReadOptions and CompactOptions | diff --git a/src/comparator.rs b/src/comparator.rs
index 9cfc89549..1b1003f42 100644
--- a/src/comparator.rs
+++ b/src/comparator.rs
@@ -13,13 +13,38 @@
// limitations under the License.
//
-use libc::{c_char, c_int, c_void, size_t};
+use libc::{c_char, c_int, c_uchar, c_void, size_t};
use std::cmp::Ordering;
+use... | 6 | 6 | 1 | [{"id": "G0", "claim": "A comment should be added explaining why the `ptr` passed to `decode_timestamp` is guaranteed to have at least 8 elements.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added functions/methods should not all be p... | null |
rust-rosetta__rust-rosetta__220 | rust-rosetta/rust-rosetta | 220 | defect | eb7cbc324357625628e5b2d71815bf6d5660431a | b2ec12a2fcc65820c0a2eb580f0c816255dd3459 | fix build | fixes:
- warning , line with more than 100 chars on align_columns.rs
- changed syntax on subslice match on 24_game_solve.rs (see pull 17054 on rust-lang/rust)
- uint overflow on luhn_test.rs
| diff --git a/src/24_game_solve.rs b/src/24_game_solve.rs
index aa54eb901..11b8e2370 100644
--- a/src/24_game_solve.rs
+++ b/src/24_game_solve.rs
@@ -42,7 +42,7 @@ fn compute_all_operations(l: &[Rational]) -> Vec<(Rational, String)> {
match l {
[] => vec![],
[x] => vec![(x, (format!("{}... | 2 | 2 | 0 | [{"id": "G0", "claim": "The long string in main should be expressible without the runtime allocation the format! call performs.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A single static TEST_STR at the top of the file should replace the duplica... | null |
rust-rosetta__rust-rosetta__328 | rust-rosetta/rust-rosetta | 328 | defect | c1709e13f40a11df0e4ea18e777175f954dc1d24 | 921412e514778c49baf343bed1d7662689ea02fc | Alternative Webserver fix | The issues mentioned in #206 can alternatively be solved by sending a `ContentLength` header to the client instead of closing the write stream.
I had someone ask me about all the additional `drop`s and `close`s in this example, and I feel getting rid of them and solving it via appropriate HTTP headers may be less conf... | diff --git a/Cargo.lock b/Cargo.lock
index 72717a67c..b5dbb5bd1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,8 +2,8 @@
name = "rust-rosetta"
version = "0.0.1"
dependencies = [
- "num 0.0.6 (git+https://github.com/rust-lang/num)",
- "time 0.1.2 (git+https://github.com/rust-lang/time)",
+ "num 0.1.0 (git+https://g... | 2 | 1 | 1 | [{"id": "G0", "claim": "The PR's rewrite of handle_client drops the close_write() call on the response stream, so http.rs's test fails with 'connection reset by peer'; the reviewer asks to restore the close_write (and explicit write) lines there.", "category": "correctness", "verdict": "supported", "priority": "P0", "s... | null |
rust-rosetta__rust-rosetta__329 | rust-rosetta/rust-rosetta | 329 | defect | 3876ff3580d2bbcdd27aa87a38e37799f6f5873c | c5029838b50a79e03d7b62513a1609e5ee64d7e4 | Threads and collections | Some more breakages and deprecations.
- spawn -> Thread::spawn
- some collections now live in collect-rs
- Regex is transitioning to crates.io
- some tasks can use bare functions instead of closures (cleaner code and no issues returning closures)
| diff --git a/Cargo.lock b/Cargo.lock
index b5b4fce9..4e871062 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,25 +2,54 @@
name = "rust-rosetta"
version = "0.0.1"
dependencies = [
+ "collect 0.0.6 (git+https://github.com/Gankro/collect-rs)",
"num 0.1.0 (git+https://github.com/rust-lang/num)",
+ "regex 0.1.3 (registr... | 3 | 2 | 0 | [{"id": "G0", "claim": "The dependency sections in Cargo.toml should be listed in alphabetical order.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The unusual extra spaces around parentheses and commas in src/luhn_test.rs should be removed.", ... | null |
rust-rosetta__rust-rosetta__750 | rust-rosetta/rust-rosetta | 750 | defect | 5155648d96ed057b9fa6bfeace864614c3e0a779 | d3ed0398294798c11c2059d6f23fea6e34093fc9 | Miscellaneous fixes | * coverage: FIx error for tasks which are with 0 revisions: some of the tasks are coming back from the API with 0 revision, which caused panic while running coverage
* Ignore .vscode folder
* Fix outdated links: Some of the links have been updated/renamed and coverage cannot follow redirects coming from rosettacode
... | diff --git a/.gitignore b/.gitignore
index 4475ddcf..98fdf017 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ target/
.idea/
*.rs.bk
*.iml
+.vscode/
\ No newline at end of file
diff --git a/Cargo.lock b/Cargo.lock
index 041b10d3..5bd1222e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -783,6 +783,7 @@ version ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The empty-revisions guard in parse_tasks should be restructured as an if/else expression instead of a mutable variable assigned in an if block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment's expected error m... | null |
rust-secure-code__cargo-auditable__123 | rust-secure-code/cargo-auditable | 123 | defect | 311f9932128667b8b18113becdea276b3d98aace | d15caf9434e88763f49499ebb101c0975be068f9 | add commit hashes to git sources | This would close the issue #122 . The suggested approach to serialization of git sources might seem over-engineered but my hope while working on it was to keep it all backwards compatible and to establish a good way of adding more of similar source parameters if needed.
At this very moment I am somewhat sleep depriv... | diff --git a/Cargo.lock b/Cargo.lock
index 74e7910..98d2264 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -282,9 +282,9 @@ checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09"
[[package]]
name = "schemars"
-version = "0.8.10"
+version = "0.8.12"
source = "registry+https://github.com/rust-lan... | 4 | 1 | 0 | [{"id": "G0", "claim": "The committed cargo-auditable.schema.json should be re-generated because it is out of sync with the schema the code generates; the mismatch between the documentation and the generated schema is a bug, though it need not be fixed in this PR.", "category": "documentation", "verdict": "supported", ... | null |
rust-secure-code__cargo-auditable__213 | rust-secure-code/cargo-auditable | 213 | defect | 4edf5c707ddacd961a781ea8b23bc626025ba244 | 3634e9499e0ee3b1cf9c45fd6984c2492a8b2372 | Use cargo SBOM precursor files, if available | If cargo sbom function is enabled, cargo-auditable will read the SBOM precursor file and use it to generate dependency information rather than trying to use the `cargo metadata` command.
Closes #192
Slightly interestingly, cargo didn't include build dependencies for the test fixtures unless I added a build.rs ... | diff --git a/Cargo.lock b/Cargo.lock
index fcc0578..1985780 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -114,6 +114,7 @@ version = "0.6.7"
dependencies = [
"auditable-info",
"auditable-serde",
+ "cargo-util-schemas",
"cargo_metadata",
"miniz_oxide",
"object",
@@ -133,6 +134,22 @@ dependencies = [
"serde",
... | 7 | 4 | 1 | [{"id": "G0", "claim": "Cargo's SBOM support looks buggy (build dependencies missing for test fixtures without a build.rs), and a bug like that should not be shipped with.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "It shouldn't matter which SBOM... | null |
rust-skia__rust-skia__894 | rust-skia/rust-skia | 894 | defect | 03ef1ef138b5870c26b8c38d8c356d90cbecde39 | b85250644b47c4b3bbd9ebb70be6e662c9ce80db | Change winapi,wio to windows-rs | closes #893
I changed winapi and wio with windows-rs which Microsoft maintains, unlike winapi and wio.
I could create d3d example with Microsoft's (https://github.com/microsoft/windows-rs/blob/master/crates/samples/windows/direct3d12/src/main.rs)
| diff --git a/skia-safe/Cargo.toml b/skia-safe/Cargo.toml
index 8bb96b5de3..e4ea0a8959 100644
--- a/skia-safe/Cargo.toml
+++ b/skia-safe/Cargo.toml
@@ -9,7 +9,13 @@ readme = "README.md"
# 5 max
keywords = ["skia", "rust-bindings", "vulkan", "opengl", "pdf"]
# 6 max
-categories = ["api-bindings", "graphics", "multimed... | 3 | 3 | 2 | [{"id": "G0", "claim": "Remove d3d from skia-safe's default features, which this pull request added.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's CI/CD checks fail (reproducible with `cargo build --all-targets`) and the errors need t... | null |
rust-syndication__atom__43 | rust-syndication/atom | 43 | defect | cccea3937c084d537c4ef6acdeb1f636244f4c69 | 3839deb5475ee5c74792662508a56e31b67257af | Add common attributes "base" and "lang" to content element | Closes #42 | diff --git a/src/content.rs b/src/content.rs
index 22f8186..546feef 100644
--- a/src/content.rs
+++ b/src/content.rs
@@ -17,6 +17,10 @@ use crate::util::atom_any_text;
#[cfg_attr(feature = "builders", derive(Builder))]
#[cfg_attr(feature = "builders", builder(setter(into), default))]
pub struct Content {
+ /// Ba... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `base` attribute on the content element comes from the Atom namespace, which is incorrect: per the reviewer's reading of the Atom spec it should be `xml:base` from the XML namespace, so `base` should be changed to `xml:base` and `<?xml version=\"1.0\">` added at the start of the test documen... | null |
rust-syndication__rss__110 | rust-syndication/rss | 110 | defect | 0d9ab48098b8b717e3f091188f701ce28e841692 | f28d3428d50c6d2586e65f4a14c82431c2535f3b | implement Atom extension | Closes #30 | diff --git a/Cargo.toml b/Cargo.toml
index 54e05b3c2a..188d8ed2c8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,8 +16,10 @@ all-features = false
[features]
default = ["builders"]
-builders = ["derive_builder"]
+builders = ["derive_builder", "atom_syndication/builders"]
validation = ["chrono", "url", "mime"]
+wit... | 2 | 1 | 1 | [{"id": "G0", "claim": "The AtomExtension supports only one link, but feeds can contain many atom:link elements, so it should support multiple links.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "kushaldas would like to see the rel=\"self\" atom:li... | null |
rust-syndication__rss__91 | rust-syndication/rss | 91 | defect | 0bf443c0fbbcecd6e651d08b838a4b5d32b85613 | 5646f857992d5e54735d5d3ee4209bef58fde602 | migrate to github actions | * create initial github action: build-test, coverage, code check, doc publish
* add 3 OS: Windows, MacOs, Linux
* add 3 compiler version: stable, beta, nightly
* make code reformat
* fixe tests which were depended on OS specific new line character.
* remove travis configuration | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000000..341576a42a
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,37 @@
+name: Build
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request cannot be merged until the repository's code is reformatted, since the newly added cargo fmt --check workflow will fail on the existing unformatted code.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
rust-windowing__gl-rs__191 | rust-windowing/gl-rs | 191 | defect | feed7be39546edb7e8781e3fbe5892caa41a5383 | fd10275a140c9a2a5a2269d57cb6aacf8aab9a8e | Improve generate_gl_bindings! plugin syntax | The new syntax looks like:
``` rust
generate_gl_bindings! {
api: "gl",
profile: "core",
version: "4.5",
generator: "global",
extensions: [
"GL_EXT_texture_filter_anisotropic",
],
}
```
The updated README and doc comment should supply you with more information.
| diff --git a/README.md b/README.md
index d5533775..6a9e1e1d 100644
--- a/README.md
+++ b/README.md
@@ -64,7 +64,7 @@ if gl::Viewport::is_loaded() {
## Using gl_generator
-If you need a specific version of OpenGL, if you need a different API
+If you need a specific version of OpenGL, or you need a different API
(O... | 2 | 1 | 1 | [{"id": "G0", "claim": "Error messages use `field_span` when they should use the value's span; add a helper like `get_span_from_tts()` and use it (handling the `TTDelim` case recursively) for the error span in each match arm.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
rust-windowing__raw-window-handle__184 | rust-windowing/raw-window-handle | 184 | defect | aa1ca633d0009d284aaf63c352aa5b2d31886597 | 4f94eaaba9927814f4d0eec08d9b206e4a2f0139 | breaking: Remove wasm-bindgen from public API | This commit replaces the `JsValue` in the public API
with the underlying index, as per earlier discussion.
Ref: #177
| diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f4f5ee4..d2e75ee 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -47,11 +47,6 @@ jobs:
rust-version: ${{ matrix.rust_version }}
- run: rustup target add wasm32-unknown-unknown
- - name: Pin deps that ... | 4 | 4 | 4 | [{"id": "G0", "claim": "The web handle types must remain !Send + !Sync.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The handle's index should be a usize instead of a u32, since wasm64 supports tables with 64-bit addresses and a usize fits either ... | null |
rust-windowing__winit__2834 | rust-windowing/winit | 2,834 | defect | 4ac2006cbc5a09a736bef2d23577430aadf88098 | 5a32b41b14b680b1f2c1aab1269d2ce6d7e33437 | On Web, implement `Send` and `Sync` where appropriate | This implements `Send` and `Sync` for `Window` and `Send` for `EventLoopProxy` on Wasm to make them implement the same traits on all platforms.
I took some inspiration from [`MainThreadSafe` on macOS](https://github.com/rust-windowing/winit/blob/77f8e511e965354a4b827cfb1ca197e9e51e6ded/src/platform_impl/macos/util/asy... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 91d23a3841a..efd75b32acc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -57,6 +57,8 @@ And please only add new entries to the top of this list, right below the `# Unre
- On Web: fix position of touch events to be relative to the canvas.
- On Web, fix `Window:::set_fulls... | 1 | 1 | 1 | [{"id": "G0", "claim": "The change of `WindowExtWebSys::canvas()` to return an `Option` is a breaking change and should be noted as such in the changelog.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
rust-windowing__winit__3449 | rust-windowing/winit | 3,449 | defect | 4d4d6e5052877d9578bac73f52eaf323e9089998 | d17b20800933fbcf45787e9926794cf03e22dc20 | Make `EventLoopProxy` `Sync` | Fixes https://github.com/rust-windowing/winit/issues/3448.
- [x] Tested on all platforms changed
- [x] Added an entry to `CHANGELOG.md` if knowledge of this change could be valuable to users
- [x] Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
- [x] Created... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a9d8e4f6ef4..6b89fb1fea7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@ Unreleased` header.
# Unreleased
+- Make `EventLoopProxy<T: Send>` be `Sync`.
- On X11, fix swapped instance and general class names.
- **Breaking:** Removed unnecessary generic ... | 4 | 2 | 0 | [{"id": "G0", "claim": "Consider pushing the `Waker` PR forward instead of this change, since `Waker` should be `Send` + `Sync`.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test in tests/sync_object.rs should just use `needs_sync` directly (with... | null |
rust-windowing__winit__929 | rust-windowing/winit | 929 | defect | f879bca21c7032cec64bf2c7b12bc866707be2d6 | 1ec43e06e0ecd8b824896ad69df2aae4ad8bcfa5 | Fix warnings | As mentioned on https://github.com/rust-windowing/winit/pull/922#issuecomment-502852085. This should probably not be merged as-is. | diff --git a/src/lib.rs b/src/lib.rs
index 94bac120b8f..d90869202f8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -86,8 +86,6 @@ extern crate log;
#[macro_use]
extern crate serde;
#[macro_use]
-extern crate derivative;
-#[macro_use]
#[cfg(target_os = "windows")]
extern crate bitflags;
#[cfg(any(target_os = "macos",... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `extern crate derivative;` declaration should be brought back `cfg`-ed to Windows rather than removed outright.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
rust3ds__ctru-rs__181 | rust3ds/ctru-rs | 181 | defect | 0cddff4cd1b4ca9a7b548ba01a5813fd879bdf26 | 5c81deab2d4c42b31f50e9c09b32d21163375669 | Generate layout tests using real `sizeof`/`alignof` | Similar to the tests generated by `bindgen`, but using our actual toolchain to spit out the expected values instead of what libclang generates (bindgen's default behavior).
The full generated test can be downloaded from Actions: https://github.com/rust3ds/ctru-rs/actions/runs/9072691412/artifacts/1499437252
Here'... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2db5b645..32aa7156 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -43,15 +43,11 @@ jobs:
- name: Check formatting
run: cargo fmt --all --verbose -- --check
- # We always run the next two steps, so that... | 3 | 3 | 0 | [{"id": "G0", "claim": "The pinned minimum libc version in the workspace dependencies is more than two years behind, and the PR's libc/bindgen/cpp interface might want to catch up to the small structural changes in newer libc releases (explicitly not blocking).", "category": "maintainability", "verdict": "supported", "... | null |
rustcoreutils__posixutils-rs__100 | rustcoreutils/posixutils-rs | 100 | defect | f3c2263d9c3a992a2c93d31974ec23aadb39de12 | e0d543ea8e7a9c41483d8a24e06edabda1f5583a | feat: implement "compress" and lzw writer | at this point the "compress" utility works as required(except for the force flag), integration test is missing, which needs to be added and few code cleanups i guess :) | diff --git a/xform/Cargo.toml b/xform/Cargo.toml
index 629287e5a..d86f5d951 100644
--- a/xform/Cargo.toml
+++ b/xform/Cargo.toml
@@ -21,6 +21,10 @@ path = "src/cksum.rs"
name = "uncompress"
path = "src/uncompress.rs"
+[[bin]]
+name = "compress"
+path = "src/compress.rs"
+
[[bin]]
name = "uudecode"
path = "src/uu... | 2 | 1 | 0 | [{"id": "G0", "claim": "The overwrite prompt should follow the prompt example used elsewhere in posixutils (tree/src/cp.rs).", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request adds several new compile warnings, which is unwanted because posi... | null |
rustcoreutils__posixutils-rs__303 | rustcoreutils/posixutils-rs | 303 | defect | 9f64d397f26cf1e0ec02618732861994456556a4 | e651d416aa857c27c33994ab5e0418f6e1053abc | paste: fix multiple bugs | - Implement handling of "\0" delimiter
- Process data in bytes to allow handling of non-UTF-8 data
- Forbid unescaped trailing backslash delimiter
- Fix handling of repeated input files
- In "-s" mode, reset delimiters iterator after each file | diff --git a/file/tests/od/mod.rs b/file/tests/od/mod.rs
index 3f648e06f..a5b1cd07b 100644
--- a/file/tests/od/mod.rs
+++ b/file/tests/od/mod.rs
@@ -278,8 +278,8 @@ fn test_od_22() {
// Given that most other implementations of `od` print one or more leading spaces, for compatibility, one
// leading space will be prin... | 2 | 2 | 0 | [{"id": "G0", "claim": "If a TODO entry's item is fixed, delete the TODO entry entirely instead of annotating it with '-- Fixed', since the history is already recorded in git.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The long option should b... | null |
rustcoreutils__posixutils-rs__339 | rustcoreutils/posixutils-rs | 339 | defect | 5e7f5c4143bf1d1848271bc0d3cd0509a9511b92 | 27d771ec70f8a861fdfe3ef343a6eb5e2dc007db | Add "needless_borrow" lint | Add result of auto-fixing with:
"cargo clippy --fix -- --allow 'clippy::all' --deny 'clippy::needless_borrow'" | diff --git a/Cargo.toml b/Cargo.toml
index 8697a0a2f..357c27104 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,3 +43,5 @@ errno = "0.3"
[workspace.lints]
+[workspace.lints.clippy]
+needless_borrow = "deny"
diff --git a/file/file.rs b/file/file.rs
index ddc0f3a92..b9a7a3b07 100644
--- a/file/file.rs
+++ b/file/fil... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request should not include the Cargo.toml update that adds the needless_borrow workspace lint.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rustcoreutils__posixutils-rs__463 | rustcoreutils/posixutils-rs | 463 | defect | eba0585acd74a9a34dfc7968366635b8067ad2e9 | fee60dcf76a8ddcd7e83518b7b14c324598cabae | Fix from_str_radix accepting leading signs in non-decimal radixes | ## Summary
Fixed security vulnerabilities caused by misuse of `from_str_radix` in Rust, which accepts leading `+` or `-` signs even for non-decimal radixes. This could allow parsing of malformed inputs like `"+0x+55"` (double sign) as valid hexadecimal.
## Changes Made
### User Input Parsing (Critical Security Fixes... | diff --git a/display/printf.rs b/display/printf.rs
index c93585120..205439297 100644
--- a/display/printf.rs
+++ b/display/printf.rs
@@ -840,6 +840,10 @@ fn parse_integer_arg(arg: &[u8]) -> Result<(i64, bool), String> {
.or_else(|| num_str.strip_prefix("0X"))
{
// Hexadecimal
+ // Reject i... | 3 | 2 | 2 | [{"id": "G0", "claim": "Remove the safe_parse.rs file and its APIs entirely; the maintainer does not want the module and will re-review only after it is gone.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request fails CI because the code lacks... | null |
rustcoreutils__posixutils-rs__469 | rustcoreutils/posixutils-rs | 469 | defect | 41d01142d0cb1ea79b5b7cd5e30ab0a0fdf654dc | d62916d44054329d71a3b7e6b577f052a7b1bc55 | Audit asa utility for POSIX.2024 compliance | ## ASA Utility POSIX Compliance Audit - COMPLETE ✅
### Analysis Phase
- [x] Review current asa.rs implementation
- [x] Review current test coverage in tests/asa/mod.rs
- [x] Run existing tests to verify baseline
- [x] Analyze POSIX.2024 specification requirements
- [x] Identify gaps in implementation
- [x] Identify ga... | diff --git a/text/ASA_AUDIT_REPORT.md b/text/ASA_AUDIT_REPORT.md
new file mode 100644
index 000000000..2a344a122
--- /dev/null
+++ b/text/ASA_AUDIT_REPORT.md
@@ -0,0 +1,285 @@
+# ASA Utility - POSIX Compliance Audit Report
+
+**Date:** 2025-12-16
+**Audited By:** posixutils-rs development team
+**Standard:** POSIX.... | 2 | 2 | 1 | [{"id": "G0", "claim": "Remove the audit report (text/ASA_AUDIT_REPORT.md) from the pull request.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code misses the cargo fmt requirement documented in CONTRIBUTING.md and this broke CI/CD, so run cargo fm... | null |
rustcoreutils__posixutils-rs__471 | rustcoreutils/posixutils-rs | 471 | defect | a804ba4a5a87ebfbc41993860975ce2f9658294e | 79824f7cea7cd179cd1ad6a34b27ba5ec0cd30f6 | Enforce -I mode argument size limits for xargs | POSIX requires xargs to enforce size limits on constructed arguments in insert mode (-I). Current implementation lacks this validation.
## Changes
### Insert Mode Argument Size Limits
- Added `INSERT_ARG_MAX` constant (4096 bytes, exceeds POSIX minimum of 255)
- Validates constructed arguments in `exec_insert_mode()`... | diff --git a/process/tests/xargs/mod.rs b/process/tests/xargs/mod.rs
index 6c7f6e3f8..2b571cdbd 100644
--- a/process/tests/xargs/mod.rs
+++ b/process/tests/xargs/mod.rs
@@ -7,7 +7,7 @@
// SPDX-License-Identifier: MIT
//
-use plib::testing::{run_test, TestPlan};
+use plib::testing::{run_test, run_test_with_checker, ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Remove the code >= 128 signal-termination handling from all three locations (the macro and the two manual handlers), while keeping the INSERT_ARG_MAX constant, its validation, and all the tests.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
rustcoreutils__posixutils-rs__485 | rustcoreutils/posixutils-rs | 485 | defect | fc4ad9f4f490bc282cab491669dfd76b4e77951a | 38cae7c3a12ca16f2086f393b54846739908eb2f | Audit who utility: fix -t option, add test coverage, enhance output format | ## Audit Summary for `who` Utility - COMPLETE ✅
### ✅ All Tasks Completed
#### Implementation Improvements
- [x] **Fixed -t/--time option**: Now properly filters and displays OLD_TIME and NEW_TIME entries from utmpx
- [x] **Enhanced output format**: Added id field as comment (e.g., "id=tyS0") for LOGIN, INIT, and oth... | diff --git a/m4/tests/integration_test.rs b/m4/tests/integration_test.rs
index 3f0874afc..6711b1181 100644
--- a/m4/tests/integration_test.rs
+++ b/m4/tests/integration_test.rs
@@ -10,9 +10,6 @@ use std::os::unix::ffi::OsStrExt;
use std::os::unix::process::ExitStatusExt;
use std::path::Path;
use std::process::ExitSt... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the unrelated change to m4/tests/integration_test.rs from this pull request.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rustcoreutils__posixutils-rs__498 | rustcoreutils/posixutils-rs | 498 | defect | 02a2dd4920256cdc79e402dfac8aa92c3c6a1f99 | 3b9f373e626069d71ce838c5d936cb04400370b5 | [cc] Fix alignment, regalloc, and SSA lowering bugs | - codegen: Use natural ABI alignment for globals instead of forced 16-byte minimum for arrays (fixes assembler rejection of 65536 alignment values)
- regalloc: Add spill_args_across_constraints() to spill function arguments in registers that would be clobbered by constraint points (e.g., Rcx used for variable shifts)
... | diff --git a/cc/arch/codegen.rs b/cc/arch/codegen.rs
index 864841167..097c963d9 100644
--- a/cc/arch/codegen.rs
+++ b/cc/arch/codegen.rs
@@ -209,7 +209,7 @@ impl<I: LirInst + EmitAsm> CodeGenBase<I> {
// Check storage class - skip .globl for static
let is_static = types.get(*typ).modifiers.contains(Ty... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new sequentialize_copies function has no tests covering its critical behaviour; tests should be added for simple cycles, complex cycles involving multiple pseudos, and cases needing temporaries to break cycles.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "intr... | null |
rustcoreutils__posixutils-rs__507 | rustcoreutils/posixutils-rs | 507 | defect | 791d9f9130cf389fe1597e021caed749f32b0ea5 | 1e9a4f9021e2e62d9545b431ab89cb962708b1f6 | lex: Fix escaped quotes inside quoted strings | Fix translate_ere() to properly handle escape sequences inside quoted strings. Previously, \" inside quotes was incorrectly treated as "backslash literal followed by end-quote" instead of "escaped quote character".
This caused patterns like "\"\"\"" (triple double-quote) to be incorrectly parsed, breaking Python le... | diff --git a/dev/lex/codegen.rs b/dev/lex/codegen.rs
index 35a5cc27e..57f23b8db 100644
--- a/dev/lex/codegen.rs
+++ b/dev/lex/codegen.rs
@@ -1159,7 +1159,7 @@ fn write_yylex_function<W: Write>(
}
writeln!(
output,
- " for (yy_cp = yy_buffer_pos; yy_cp < yy_last_accepting_cpo... | 2 | 2 | 2 | [{"id": "G0", "claim": "When a backslash is the last character of a quoted string (i + 1 >= chars.len()), it falls through to the match's catch-all and is pushed into the regex literally without escaping, inconsistently with the explicit \\x5c escaping of backslash elsewhere.", "category": "correctness", "verdict": "su... | null |
rustcoreutils__posixutils-rs__555 | rustcoreutils/posixutils-rs | 555 | defect | 3c882ba07a4114f12bf47bf7bb32686fdced8ca0 | e1b6f6279dab6180650b240d6e6104ed0683d101 | Fix vi to wrap long lines instead of truncating | ## Summary
Fixed vi to properly wrap long lines across multiple display rows instead of truncating them, as required by POSIX.
## Changes Made
- [x] Investigate the issue and understand the problem
- [x] Identify that `refresh_screen()` uses `expand_line()` which truncates instead of wraps
- [x] Identify that `updat... | diff --git a/editors/tests/pty/mod.rs b/editors/tests/pty/mod.rs
index 6ea9c48d0..0c4927573 100644
--- a/editors/tests/pty/mod.rs
+++ b/editors/tests/pty/mod.rs
@@ -212,3 +212,40 @@ fn test_pty_vi_set_number() {
let contents = std::fs::read_to_string(&file_path).unwrap();
assert_eq!(contents, "line1\nline2\nl... | 1 | 1 | 1 | [{"id": "G0", "claim": "CI fails because the code is not formatted; the author must run `cargo fmt`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
rustcoreutils__posixutils-rs__559 | rustcoreutils/posixutils-rs | 559 | defect | 3c882ba07a4114f12bf47bf7bb32686fdced8ca0 | 8a13cff3d2481c03119d7e6dd16118e74711ab37 | make: Fix intermittent dash_r_with_file test failure and inference ru… | …le handling
Separate inference rules from regular rules to prevent CWD scanning from picking up files created by parallel tests. Add two-pass makefile classification so .SUFFIXES is available during inference rule detection. Add run_for_target() to compute input/output from target name directly.
Fix test isolati... | diff --git a/make/src/lib.rs b/make/src/lib.rs
index 74abb027c..5ea37219b 100644
--- a/make/src/lib.rs
+++ b/make/src/lib.rs
@@ -39,7 +39,12 @@ const DEFAULT_SHELL: &str = "/bin/sh";
/// The only way to create a Make is from a Makefile and a Config.
pub struct Make {
macros: Vec<VariableDefinition>,
+ /// Tar... | 3 | 1 | 1 | [{"id": "G0", "claim": "run_for_target() falls back to running the rule with empty input/output paths when the rule is not an inference rule or the target name does not match the rule's `to` suffix, which can execute recipes with $</$* substituted as empty strings (potentially running cp/rm against unintended paths) in... | null |
rustcoreutils__posixutils-rs__561 | rustcoreutils/posixutils-rs | 561 | defect | 31618a06cfa187ae947ace0035422eaafb563b94 | 60f44d6fa042437a1ca549f5395ed9b81b98509c | date: Use libc strftime for proper %Z timezone abbreviation and local… | …e support
Fixes #551. Replace chrono format() with libc strftime() for display formatting so %Z outputs timezone names (CET, UTC, EST) instead of numeric offsets (+01:00), and locale is respected for %a, %b, etc. | diff --git a/datetime/date.rs b/datetime/date.rs
index 5ea597de9..3f398c1b3 100644
--- a/datetime/date.rs
+++ b/datetime/date.rs
@@ -6,14 +6,13 @@
// file in the root directory of this project.
// SPDX-License-Identifier: MIT
//
-// TODO:
-// - add tests (how?)
-// - double-check that Rust stftime() is POSIX complia... | 3 | 2 | 1 | [{"id": "G0", "claim": "Check the libc::time() error return of -1 before passing the value to gmtime_r or localtime_r, exiting with an error message.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment explaining the strftime limitation (re... | null |
rustedpy__result__122 | rustedpy/result | 122 | defect | 6e216f9fc2e34e7a14180112d1d13987edb15e3b | ae4fc9f9ef7108e79475fa10f1229ee5465527c2 | fix: remove overloaded '__init__' methods on 'Ok' | Closes #119
Force callers to specify an initial value.
`fp-ts` in the TypeScript world have an `Either` type, which requires explicit values, even if it's `undefined` or `null` (equivalent to Python's `None`). I think we can do the same here. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 834a161..99f73a6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,10 @@ Possible log types:
- `[security]` to invite users to upgrade in case of vulnerabilities.
+## Unreleased
+
+- `[changed]` `Ok` now requires an explicit value during instantiation
+
## [0... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test_no_arg_ok test case should be removed or changed to expect a raise, now that the no-argument case of `Ok` has been removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
rustedpy__result__148 | rustedpy/result | 148 | defect | 8f072dc10362e5718477770f11b491db3647b799 | 82fbc41bf87b12e134d5d04eef3e5b126e66a2df | and_then_async | Add async version of and_then combinator.
Tested with named functions only because AFAIK async lambdas don't exist. | diff --git a/src/result/result.py b/src/result/result.py
index 4d5963a..0273fd7 100644
--- a/src/result/result.py
+++ b/src/result/result.py
@@ -172,6 +172,15 @@ def and_then(self, op: Callable[[T], Result[U, E]]) -> Result[U, E]:
"""
return op(self._value)
+ async def and_then_async(
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The CHANGELOG.md should be updated with a new line in the [Unreleased] section for this PR's change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rustedpy__result__150 | rustedpy/result | 150 | defect | 35d6a5c1b5952c12f3a50cc71659168f7a65b914 | 78aa88312b3428bcc7bbea42dd4dcfbfa28609c1 | [Issue #149] add generator-based do notation | Proposal for implementaiton using generators to simulate <- notation as in Rust (or Haskell).
| diff --git a/.gitignore b/.gitignore
index c3302ed..407098f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,5 @@ build/
.mypy_cache/
venv/
/.tox/
+.vscode
+pyrightconfig.json
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 839a8f7..f6d2c4e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,8 @@ Possible ... | 11 | 11 | 2 | [{"id": "G0", "claim": "Add an easy-to-understand example of how to use the new do notation to the README.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Look into how async functions fit into this decorator-based approach, and add test cases and ... | null |
rustedpy__result__19 | rustedpy/result | 19 | defect | 34b18b228619d2ae3783235083f98efe83a29ce5 | ee855129e978098850e4c2a17a2446ec8e747ef9 | Implement `map`, `map_or` and `map_or_else` | Implements `map`, `map_or` and `map_or_else` according to the rust specs. | diff --git a/README.rst b/README.rst
index b3340c9..6f8ae92 100644
--- a/README.rst
+++ b/README.rst
@@ -164,6 +164,26 @@ A default value can be returned instead by using ``unwrap_or``::
>>> res2.unwrap_or('default')
'default'
+Values and errors can be mapped using `map`, `map_or`, `map_or_else`
+and `map_e... | 3 | 3 | 1 | [{"id": "G0", "claim": "The `map_err` method was removed because the author mistook the `Option` docs for the `Result` docs; he asks whether it should be left for another PR or added back in this one.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The RE... | null |
rustedpy__result__58 | rustedpy/result | 58 | defect | 762472352893d76387e3329da26116722e0905c2 | 4408b283055fbab2e609bae38cc0076f46abf477 | Define __slots__ to save memory on Ok and Result | Using `__slots__` saves a dict creation for each instance, reducing memory
footprint. This can become especially relevant when collecting many
Result instances.
Note that `UnwrapError` does not get the same treatment: it is pointless
since would only work if the complete inheritance hierarchy has slots,
but the ... | diff --git a/result/result.py b/result/result.py
index 2445d91..9c5ebdd 100644
--- a/result/result.py
+++ b/result/result.py
@@ -12,6 +12,7 @@ class Ok(Generic[T]):
"""
__match_args__ = ("value",)
+ __slots__ = ("_value",)
@overload
def __init__(self) -> None:
@@ -129,6 +130,7 @@ class Err(Ge... | 1 | 1 | 0 | [{"id": "G0", "claim": "The README should gain a line (in the FAQ area) saying that if you get an AttributeError, it may be because you tried to assign a new property/attribute to the Result object.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rustedpy__result__65 | rustedpy/result | 65 | defect | 71afad2db1983d6d44b57a05c05cffb1a201fcf9 | d7da7371ab730f73dc56f3bca841a85177181f85 | Modernize testing/linting configuration | This simplifies and modernizes the configuration for various testing and
linting tools. Use pyproject.toml as the central location for all
configuration as much as possible.
Details:
- Move pytest config to pyproject.toml (modern location)
- Move mypy config to pyproject.toml (modern location)
- Move unit tes... | diff --git a/.coveragerc b/.coveragerc
deleted file mode 100644
index 5f410e8..0000000
--- a/.coveragerc
+++ /dev/null
@@ -1,24 +0,0 @@
-[run]
-source =
- result
-omit =
- setup.py
- venv/*
-
-[report]
-# Regexes for lines to exclude from consideration
-exclude_lines =
- # Don't complain about missing debug... | 4 | 4 | 0 | [{"id": "G0", "claim": "The yamllint disable comment on the `on:` line should be removed since no YAML linting is configured in the repository.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pip install command (and other commands below) sho... | null |
rustedpy__result__71 | rustedpy/result | 71 | defect | 71afad2db1983d6d44b57a05c05cffb1a201fcf9 | 4faa4867891ab3e61e809d44c1f000ed4d34d4b9 | Add decorator to turn regular functions in Result returning ones | Add decorator to turn regular functions in Result returning ones
Add a as_result() helper to make a decorator to turn a function into one
that returns a Result: Regular return values are turned into
Ok(return_value). Raised exceptions of the specified exception type(s)
are turned into Err(exc).
The decorator i... | diff --git a/result/__init__.py b/result/__init__.py
index 7c2c0ec..cfaa989 100644
--- a/result/__init__.py
+++ b/result/__init__.py
@@ -1,4 +1,4 @@
-from .result import Err, Ok, OkErr, Result, UnwrapError
+from .result import Err, Ok, OkErr, Result, UnwrapError, as_result
__all__ = [
"Err",
@@ -6,5 +6,6 @@
... | 5 | 2 | 1 | [{"id": "G0", "claim": "The pull request still needs a changelog entry (and README documentation) for the new as_result() decorator before it can go into 0.7.0.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The library should remain usable for Py... | null |
rusteomics__mzcore__51 | rusteomics/mzcore | 51 | defect | d32c547e8b7e74b583d2ce1963aa7fea7597a1be | 898f6d6b6165e7c2b0227077eb5eceaa036905c5 | Implemented Cascadia support | With this update [.ssl files](https://skyline.ms/wiki/home/software/BiblioSpec/page.view?name=BiblioSpec%20input%20and%20output%20file%20formats) are now also supported. There were a few more extra optional columns that I could also add, but I didn't see the relevance. But if you want me to add them let me know. The co... | diff --git a/rustyms/src/identification/cascadia.rs b/rustyms/src/identification/cascadia.rs
new file mode 100644
index 00000000..9510e509
--- /dev/null
+++ b/rustyms/src/identification/cascadia.rs
@@ -0,0 +1,92 @@
+use crate::{
+ error::CustomError,
+ identification::{
+ common_parser::OptionalColumn, Ide... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Cascadia parser should be made a generic format represented in naming and parsing (like mzTab), taking up every column described in the format, with hard-to-parse columns accepted as strings and the ion mobility ones as floating points.", "category": "design", "verdict": "supported", "priori... | null |
rusteomics__mzcore__79 | rusteomics/mzcore | 79 | defect | f69d834c2a88b7bfbb4bc43b66d9da0e3ed069bb | bca3b597cf9bbf2ed3977681ee99429b98f4bcd5 | Added msfragger implementation | Added the pKa fix and an implementation for msfragger data specifically | diff --git a/rustyms/src/identification/file_format.rs b/rustyms/src/identification/file_format.rs
index 244e78d2..e8d7cb9f 100644
--- a/rustyms/src/identification/file_format.rs
+++ b/rustyms/src/identification/file_format.rs
@@ -24,6 +24,7 @@ pub enum KnownFileFormat {
PLink(PLinkVersion),
PowerNovo(PowerNo... | 5 | 3 | 0 | [{"id": "G0", "claim": "The modification-parsing error messages say \"FragPipe\" in the MSFragger parser and should be changed to say MSFragger so readers are not sent off the rails.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Do not store th... | null |
rusteomics__mzcore__83 | rusteomics/mzcore | 83 | defect | f69a463072c01cbf410d1dd8e1b5af3c81f666b8 | 01acd4cb6bf31aac4d4987d64cffb314dc02cd1f | Update formats | There were a few tools I wanted to add and with this MR the following tools+versions would be added:
* InstaNovo 1.1.4
* InstaNovoPlus 1.1.4
* AdaNovo 1.0.0
* pi-HelixNovo 1.1
* pi-PrimeNovo 0.1
* Corrected NovoB from txt to tsv, see below
The new version of Casanovo (v5) has also been released so I co... | diff --git a/clippy.toml b/clippy.toml
index 55a6424a..fbd9e0d3 100644
--- a/clippy.toml
+++ b/clippy.toml
@@ -8,6 +8,7 @@ doc-valid-idents = [
"FragPipe",
"GNOme",
"InstaNovo",
+ "InstaNovoPlus",
"MaxNovo",
"MaxQuant",
"MSFragger",
@@ -17,6 +18,7 @@ doc-valid-idents = [
"PepNet",
... | 5 | 5 | 4 | [{"id": "G0", "claim": "An example for Casanovo 5.0, which now outputs ProForma peptides in its mzTab file, should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "InstaNovo 1.0 and 1.1.4 have identical columns and cannot be told apart, so the s... | null |
rusterlium__rustler__252 | rusterlium/rustler | 252 | defect | f7d1219955f1e43876294c5d4b38ab7493aafa5a | 3a2ac61fb9ace65dd5d9d9a990cf627a8a6c4cda | Added Error::Term for returning `{:error, <term>}` | Hi! I added a variant to return any encoder as an error. I think could help ergonomics and help return more meaningful errors from our native Rustler interfaces to Elixir.
Feedback is appreciated. :) | diff --git a/rustler/src/error.rs b/rustler/src/error.rs
index 5e616bfc4..f410b8b16 100644
--- a/rustler/src/error.rs
+++ b/rustler/src/error.rs
@@ -12,6 +12,9 @@ pub enum Error {
Atom(&'static str),
RaiseAtom(&'static str),
RaiseTerm(Box<dyn Encoder>),
+ /// Encodes an arbitrary Boxed Encoder and ret... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new ReturnTerm error variant should not return an arbitrary term to indicate an error; instead the PR should add an Error::Term(X) variant that returns a well-formed {:error, X} error tuple.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
rusterlium__rustler__261 | rusterlium/rustler | 261 | defect | 7a9e37fa80da8215d21182fe9cb2b4c5a6d1fa51 | 08c366864bf9cab86b0b42dca25225abe018c18f | Fix Binary Compilation | This PR picks up from where #256 left off and adds some tests ~and tweaks the workspace configuration~.
~@evnu do the changes to the workspaces make sense?~ | diff --git a/.gitignore b/.gitignore
index 5536d6a6d..3677a7f8f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,15 +24,12 @@ Session.vim
# Generated by Cargo
**/target/*
-/rustler/target/
-/rustler_tests/target/
-/rustler_tests/_build
-/rustler_tests/deps
+**/native/*
+**/_build
+**/deps
/rustler_tests/mix.lock
C... | 3 | 3 | 2 | [{"id": "G0", "claim": "Do not drop \"rustler_tests/native/rustler_test\" from the root workspace members, so that running `cargo check` in the root also checks the test crates.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The added empty `[worksp... | null |
rusterlium__rustler__300 | rusterlium/rustler | 300 | defect | 44ee0f3d589e394ff3048e8d24b097885bc288a6 | 162a57a3a464b50e8a4fba33ae23d12d0f6664f3 | Speed up generated decoder compilation times | This pull request speeds up compilation by extracting common code from field assignments into helper functions, and by preferring local variables for initial assignment instead of assigning struct fields directly. See #299 for the corresponding issue.
Fix #299. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3e204cd9..c79839b9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -34,6 +34,11 @@ rustler::atoms! {
}
```
+### Fixed
+
+* Compilation time of generated decoders has been reduced significantly.
+
+
## [0.21.0] - 2019-09-07
### Added
diff --git a/rustler_codegen/src... | 1 | 1 | 1 | [{"id": "G0", "claim": "The generated code should use a number index (or otherwise a more robust scheme) as the variable name instead of the field's identifier, so the generated let bindings are more robust.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
rusterlium__rustler__383 | rusterlium/rustler | 383 | defect | c37d1013ccc30586c4540b5b673ed74531135ec9 | 01fc5c8f3206ec596022f093010ba807fdf3826a | Add NifException macro | I was trying to map and Rust struct to a Elixir exception. After some trial and error I found out that elixir adds an __exception__ field to a struct with the value true. When you add this in Rust it maps correctly to the exception module. I thought it would be handy to have this feature in Rustler.
Ps: I dont hav... | diff --git a/rustler/src/lib.rs b/rustler/src/lib.rs
index da8c2fcf..2483a5da 100644
--- a/rustler/src/lib.rs
+++ b/rustler/src/lib.rs
@@ -72,5 +72,5 @@ pub type NifResult<T> = Result<T, Error>;
#[cfg(feature = "derive")]
pub use rustler_codegen::{
- init, nif, NifMap, NifRecord, NifStruct, NifTuple, NifUnitEnum... | 4 | 3 | 1 | [{"id": "G0", "claim": "The pull request should add a `CHANGELOG.md` entry.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Creating the atoms should be refactored to avoid duplicating the `rustler::atoms!` block, e.g. by quoting the exception atom... | null |
rusterlium__rustler__574 | rusterlium/rustler | 574 | defect | 7cbfdd23acf4577f79f8047accafcf6f2e0461a8 | e35d771173f8dd18d8ae2d2797d2019d15ff2f83 | Add support for generic types | Closes #424. Allows generic type parameters in the derive macros:
```rust
#[derive(NifStruct)]
#[module = "GenericStruct"]
pub struct GenericStruct<T> {
t: T
}
``` | diff --git a/rustler_codegen/src/encode_decode_templates.rs b/rustler_codegen/src/encode_decode_templates.rs
index 3a59037d..7e26e5ef 100644
--- a/rustler_codegen/src/encode_decode_templates.rs
+++ b/rustler_codegen/src/encode_decode_templates.rs
@@ -1,5 +1,6 @@
use proc_macro2::{Span, TokenStream};
use quote::quote;... | 4 | 4 | 0 | [{"id": "G0", "claim": "Delete the commented-out dead code lines the empty suggestion blocks anchor on (`// path: syn::Ident::new(\"Decoder\", Span::call_site()).into(),` and `// bounded_ty: syn::Type::Verbatim(type_parameter.ident.to_token_stream()),`).", "category": "maintainability", "verdict": "supported", "priorit... | null |
rusterlium__rustler__581 | rusterlium/rustler | 581 | defect | 6249dde971252dd3777d48b94f07e3837bec1c42 | 6c54025529d52b5225707de5ebb1ffab3d3d43fe | Fix Term's "get_type()" implementation | It was not returning the correct type for integers, probably due to a "garbage" arriving because of the wrong type.
This affects the latest v0.30. | diff --git a/rustler/src/dynamic.rs b/rustler/src/dynamic.rs
index ad73f888..41e92817 100644
--- a/rustler/src/dynamic.rs
+++ b/rustler/src/dynamic.rs
@@ -42,10 +42,14 @@ impl From<ErlNifTermType> for TermType {
}
}
+#[cfg(feature = "nif_version_2_15")]
+pub fn get_type(term: Term) -> TermType {
+ term.get_e... | 4 | 1 | 1 | [{"id": "G0", "claim": "The new enif_term_type-based get_type code path does not work on Windows (it returns \"unknown\" for any term, apparently because of the rustler_sys bindings); since it cannot easily be made to work there, the feature should be dropped for that OS with the behaviour documented.", "category": "co... | null |
rusterlium__rustler__593 | rusterlium/rustler | 593 | defect | 2ae8765d4c892c99291b2d8279613b6cbb92b1c0 | 08c556d6b6fcccf1a948188b8990bacae667abcf | Allow arbitrary function names | Allow arbitrary ASCII strings as NIF names. Follow-up of #505. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 34a89324..cdb89d49 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,10 @@ versions.
### Changed
+- Adjust C char types to use the proper FFI type (#592)
+- Allow arbitrary (ASCII) NIF function names (#593, idea and initial
+ implementation by @KoviRobi)
+
#... | 1 | 1 | 1 | [{"id": "G0", "claim": "Control characters in the custom NIF function name could pass validation and end up in the generated function name, so they should be rejected.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
rusterlium__rustler__60 | rusterlium/rustler | 60 | defect | f6af420a6d2c73ce10988408a2e9fe023a933a5a | 50ed0ea5975e0d4dfb17cd6bf77f04e9be26e72b | `NifPid` and `env.send(pid, message)` | The first commit adds our own `NifPid` wrapper type (like `NifTerm` and `NifEnv`) and stops exporting `ErlNifPid`.
The second commit adds an `env.send()` method. | diff --git a/Cargo.toml b/Cargo.toml
index 9127cf32f..7fde8f5ba 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,5 +7,5 @@ authors = ["Hansihe <me@hansihe.com>"]
license = "MIT/Apache-2.0"
[dependencies]
-erlang_nif-sys = ">=0.5"
+erlang_nif-sys = ">=0.5.4"
lazy_static = "0.1.*"
diff --git a/src/env.rs b/src/env.rs
... | 2 | 1 | 1 | [{"id": "G0", "claim": "hansihe is hesitant about the constant overhead the thread-local enforcement adds to every small NIF call and proposes temporarily putting it under a cargo feature flag, to be removed if the question is settled with the Erlang team.", "category": "performance", "verdict": "opposed", "priority": ... | null |
rusterlium__rustler__613 | rusterlium/rustler | 613 | defect | 3d7eb937a55211b6919e490fe41c326f5522d1c5 | 352af03a27ad350481331f63a5eee0c5a45c7ad6 | Discover NIFs at startup | This is a proof-of-concept for a mechanism that does away with the need to list all NIF functions in the `rustler::init!` invocation. A similar mechanism will be required and implemented for resource type registrations.
- Convert `Nif` to a `struct`
- Use `inventory` to register the `Nif` instances
- In `rustler::... | diff --git a/rustler/Cargo.toml b/rustler/Cargo.toml
index d1ba767b..4401f23a 100644
--- a/rustler/Cargo.toml
+++ b/rustler/Cargo.toml
@@ -22,6 +22,7 @@ nif_version_2_17 = ["nif_version_2_16", "rustler_sys/nif_version_2_17"]
serde = ["dep:serde"]
[dependencies]
+inventory = "0.3"
rustler_codegen = { path = "../rus... | 2 | 2 | 1 | [{"id": "G0", "claim": "The TODO at rustler_codegen/src/init.rs:19 should be resolved now by generating a deprecation warning for the legacy NIF-list argument of `rustler::init!`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There is no test f... | null |
rusterlium__rustler__676 | rusterlium/rustler | 676 | defect | 6101dae30bc073f6af6971ac5565f24b6f814e74 | 8101d06671b018b86e63a26fd9e16188223e5afb | Fix Nif* macros requiring an encoder | This was probably a left-over from a refactoring. If the encoder was not requested, the macros compiled to code with a dangling `#[allow(...)]` which leads to a parser error.
Fixes #675. | diff --git a/rustler_codegen/src/ex_struct.rs b/rustler_codegen/src/ex_struct.rs
index e051c494d..71cff834b 100644
--- a/rustler_codegen/src/ex_struct.rs
+++ b/rustler_codegen/src/ex_struct.rs
@@ -59,7 +59,6 @@ pub fn transcoder_decorator(ast: &syn::DeriveInput, add_exception: bool) -> Toke
#decoder
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The encode/decode test for AddRecord further up in the file should reference the new `mod check_if_only_decode_is_enough` (or otherwise connect to it).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rusterlium__rustler__715 | rusterlium/rustler | 715 | defect | e594828c595b491d99d20c4d905cfaf193ea0614 | eb845565b0e9ba0c13103f086729dd6d5affff1c | Fix iolist inspect | In `Binary::io_list`, we incorrectly attach the original `term` to the `Binary` object. This leads to subsequent calls failing or doing unexpected things.
Now, instead, we create a new `Term` for the `ErlNifBinary` and put it in `Binary`. Sadly, our test for this was also wrong :/. I fixed it and added additional te... | diff --git a/rustler/src/types/binary.rs b/rustler/src/types/binary.rs
index de6b35a5..8975f8e3 100644
--- a/rustler/src/types/binary.rs
+++ b/rustler/src/types/binary.rs
@@ -346,19 +346,20 @@ impl<'a> Binary<'a> {
/// If `term` is not an `iolist`, an error will be returned.
#[inline]
pub fn from_iolist(... | 2 | 1 | 0 | [{"id": "G0", "claim": "If the ErlNifBinary came from an existing binary term, the new enif_make_binary call may not copy, so the reviewer questions whether the newly created term actually owns the data.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim":... | null |
rustfs__rustfs__1364 | rustfs/rustfs | 1,364 | defect | 666c0a9a38636eb6653dff7d9c98ff7122601ce2 | c2b834a76d094c47b57013ef3243da00a56bc1cc | fix:allow NotResource-only policies in statement validation | <!--
Pull Request Template for RustFS
-->
## Type of Change
- [ ] New Feature
- [x] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [ ] Test/CI
- [ ] Refactor
- [ ] Other:
## Related Issues
<!-- List related Issue numbers, e.g. #123 -->
FIX #1355
## Summary of Changes
<!-- Briefly describ... | diff --git a/crates/policy/src/policy.rs b/crates/policy/src/policy.rs
index 0a034a8654..f732595f00 100644
--- a/crates/policy/src/policy.rs
+++ b/crates/policy/src/policy.rs
@@ -51,6 +51,9 @@ pub enum Error {
#[error("'Resource' is empty")]
NonResource,
+ #[error("'Resource' and 'NotResource' cannot bot... | 4 | 4 | 1 | [{"id": "G0", "claim": "Tests should be added to policy_is_allowed.rs verifying that a NotResource-only policy is valid and correctly allows access outside and denies access inside the NotResource set.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
rustfs__rustfs__1627 | rustfs/rustfs | 1,627 | defect | 8edb1affc0af265064b2e220330b7bc861ae25d3 | abefac7901a44dc4565727f22b77bab24c566413 | fix:use RFC1123 format for last-modified header in 304 responses | <!--
Pull Request Template for RustFS
-->
## Type of Change
- [ ] New Feature
- [x] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [ ] Test/CI
- [ ] Refactor
- [ ] Other:
## Related Issues
<!-- List related Issue numbers, e.g. #123 -->
FIX #1595
RELATE #1668
## Summary of Changes
<!-- ... | diff --git a/rustfs/src/storage/ecfs_extend.rs b/rustfs/src/storage/ecfs_extend.rs
index f521e32cb6..3839f1101f 100644
--- a/rustfs/src/storage/ecfs_extend.rs
+++ b/rustfs/src/storage/ecfs_extend.rs
@@ -47,10 +47,14 @@ use std::collections::HashMap;
use std::ops::Add;
use std::sync::Arc;
use time::OffsetDateTime;
-u... | 2 | 1 | 0 | [{"id": "G0", "claim": "The RFC1123 format descriptions use [day], which will produce single-digit days (e.g. '5') although RFC1123/HTTP-date requires two-digit zero-padded days; both the production constant and the test copy should use [day padding:zero].", "category": "correctness", "verdict": "uncertain", "priority"... | null |
rustfs__rustfs__2311 | rustfs/rustfs | 2,311 | defect | 5e21c398f571228e7be7ad30d82dbb0f7e3e5a1d | f68e501bcd73b57f49d0caa887b6a7782d683cbd | feat(admin): align heal compatibility routes | ## Type of Change
- [x] New Feature
- [ ] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [ ] Test/CI
- [ ] Refactor
- [ ] Other:
## Related Issues
- rustfs/backlog#605
## Summary of Changes
- add the root heal compatibility route at `POST /v3/heal/`
- complete `POST /v3/background-heal/status` to return ... | diff --git a/rustfs/src/admin/handlers/heal.rs b/rustfs/src/admin/handlers/heal.rs
index aa7a43c843..97e71c1394 100644
--- a/rustfs/src/admin/handlers/heal.rs
+++ b/rustfs/src/admin/handlers/heal.rs
@@ -12,8 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the Lice... | 3 | 3 | 2 | [{"id": "G0", "claim": "The newly added root heal route maps to HealHandler, and a root target yields an empty bucket so starting a heal through it will never succeed; the PR should implement explicit semantics for the root route (e.g. heal all buckets/disks) or return a clear InvalidRequest for a start without a bucke... | null |
rustfs__rustfs__2313 | rustfs/rustfs | 2,313 | defect | c20f2555eb0c93ff5e697f957b2e7da35451a927 | b55c832f50dce3ed7a35c39d2c4974b3491aeaec | test(s3): complete snowball auto-extract coverage | ## Type of Change
- [ ] New Feature
- [ ] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [x] Test/CI
- [ ] Refactor
- [ ] Other:
## Related Issues
- rustfs/backlog#602
## Summary of Changes
- add MinIO-compatible Snowball header constants for auto-extract compatibility
- extend put-object extract handlin... | diff --git a/crates/e2e_test/src/lib.rs b/crates/e2e_test/src/lib.rs
index b1266a8a30..97dd2461d2 100644
--- a/crates/e2e_test/src/lib.rs
+++ b/crates/e2e_test/src/lib.rs
@@ -104,3 +104,6 @@ mod object_lambda_test;
// Replication extension end-to-end regression tests
#[cfg(test)]
mod replication_extension_test;
+
+#... | 4 | 4 | 2 | [{"id": "G0", "claim": "The renamed test no longer exercises the vendor-suffix header fallback, so either use a non-preferred x-amz-meta-*-snowball-* header name in it or rename it to match what it now validates.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
rustfs__rustfs__2390 | rustfs/rustfs | 2,390 | defect | d2901fd78ce481dfebbf5364043bb54ad79989a8 | a7bc8763bd2c6f47b192bd7a1f6fb329bccdbd79 | test(admin): cover audit target validation gaps | ## Summary
This PR adds focused regression coverage for the admin audit target APIs added on `origin/main`.
The user-visible risk was that the new audit target surface had helper branches and MinIO-compatible alias paths without direct tests. That makes it easy for follow-up changes to silently loosen request validati... | diff --git a/rustfs/src/admin/handlers/audit.rs b/rustfs/src/admin/handlers/audit.rs
index c8b91fed8f..4b5c3bc459 100644
--- a/rustfs/src/admin/handlers/audit.rs
+++ b/rustfs/src/admin/handlers/audit.rs
@@ -634,6 +634,7 @@ impl Operation for RemoveAuditTarget {
#[cfg(test)]
mod tests {
use super::*;
+ use mat... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new test `audit_target_mutation_block_reason_allows_runtime_only_target` only unsets `RUSTFS_AUDIT_WEBHOOK_ENDPOINT_PRIMARY`, while `collect_env_endpoint_keys()` treats any valid audit env key (including `..._ENABLE_PRIMARY`) as making the target env-managed, so the test can fail or become f... | null |
rustfs__rustfs__2413 | rustfs/rustfs | 2,413 | defect | 751bc3d73749b05d3feffa79084bab9aadc053d8 | e03cec7e45959c25e7b2d84d1ea18ecb384c06e3 | feat(mqtt): migrate client and harden TLS config | ## Type of Change
- [x] New Feature
- [x] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [ ] Test/CI
- [x] Refactor
- [ ] Other:
## Related Issues
## Summary of Changes
Migrates RustFS MQTT targets to `rumqttc-next = 0.29.0` and introduces stricter, TLS-aware broker URL + TLS configuration validation t... | diff --git a/Cargo.lock b/Cargo.lock
index 456df56fba..ffcd09ac18 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -600,6 +600,26 @@ dependencies = [
"syn 2.0.117",
]
+[[package]]
+name = "async-tungstenite"
+version = "0.34.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eb26fbd2a9330... | 4 | 4 | 1 | [{"id": "G0", "claim": "In the admin MQTT probe handlers, configuration failures of check_mqtt_broker_available_with_tls (invalid broker URL/TLS settings, unreadable or invalid TLS cert/key files while building MQTT options) are surfaced as \"MQTT Broker unavailable\"; the reviewers ask that configuration errors be cla... | null |
rustfs__rustfs__2415 | rustfs/rustfs | 2,415 | defect | d6158c0481af5651641c862718d3e9d8390f2324 | 2784688d01cda9373a56edf76958744f91e7b8e2 | fix(download): preserve archive download integrity | ## Type of Change
- [ ] New Feature
- [x] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [ ] Test/CI
- [x] Refactor
- [ ] Other:
## Related Issues
## Summary of Changes
Correct the HTTP compression middleware order, hard-exclude archive responses from response compression, reject archive uploads with C... | diff --git a/Cargo.lock b/Cargo.lock
index ffcd09ac18..3b52ae633f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3235,6 +3235,7 @@ dependencies = [
"urlencoding",
"uuid",
"walkdir",
+ "zip",
"zstd",
]
diff --git a/crates/e2e_test/Cargo.toml b/crates/e2e_test/Cargo.toml
index cea060a54f..1546d2f3d8 100644
--- a... | 1 | 1 | 1 | [{"id": "G0", "claim": "STANDARD_EXCLUDE_COMPRESS_CONTENT_TYPES does not include some common archive MIME types such as application/x-tar and application/gzip, so .tar/.tar.gz downloads can still be HTTP-compressed if the whitelist matches, undermining the stated goal of hard-excluding archive responses; consider exten... | null |
rustfs__rustfs__2421 | rustfs/rustfs | 2,421 | defect | 9cd1d6b4d54323941c2fc9a01456dda0aec05268 | 4f8527aef4d8915c753661204771cc45c433dc1a | Fix remaining review follow-ups for #2361 | ## Type of Change
- [x] Bug Fix
- [ ] New Feature
- [ ] Documentation
- [ ] Performance Improvement
- [x] Test/CI
- [ ] Refactor
- [ ] Other:
## Related Issues
- #2361
## Summary of Changes
- Triggered server config migration during embedded store initialization to address review feedback.
- Aligned TLS material note... | diff --git a/.gitignore b/.gitignore
index b188c5c80b..18d03f8a68 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,4 +49,7 @@ result*
rustfs-webdav.code-workspace
.aiexclude
-*.bak
\ No newline at end of file
+*.bak
+# Local test/benchmark artifacts
+benchmarks.logs
+tmp/
diff --git a/rustfs/Cargo.toml b/rustfs/Carg... | 14 | 13 | 5 | [{"id": "G0", "claim": "After start_http_server succeeds, the remaining fallible startup steps (ECStore::new, config init retries, IAM init) can return Err without sending the shutdown signal or canceling background work, leaving a live listener/tasks that the caller has no handle to stop.", "category": "correctness", ... | null |
rustfs__rustfs__2474 | rustfs/rustfs | 2,474 | defect | b8c45fc9e3941b7f76b55fd1f7928209591a1341 | 12d476391bee7028220bc8b4cf92191180b3afc3 | refactor(storage): trim thin s3 forwarding layers | ## Type of Change
- [ ] New Feature
- [ ] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [ ] Test/CI
- [x] Refactor
- [ ] Other:
## Related Issues
N/A
## Summary of Changes
- Removes the implementation-coupled S3 entrypoint delegation test.
- Deletes the storage-layer multipart mirror output type and com... | diff --git a/rustfs/src/app/admin_usecase.rs b/rustfs/src/app/admin_usecase.rs
index 616b21d2c3..5a3eee0b10 100644
--- a/rustfs/src/app/admin_usecase.rs
+++ b/rustfs/src/app/admin_usecase.rs
@@ -93,19 +93,11 @@ impl DefaultAdminUsecase {
}
pub async fn execute_query_server_info(&self, req: QueryServerInfoRe... | 1 | 1 | 1 | [{"id": "G0", "claim": "OperationHelper::complete is called with a placeholder Ok(S3Response::new(())) instead of the actual response, diverging from the build-result/complete/return pattern used elsewhere and risking missed response status/header changes in audit/notify bookkeeping; the real result should be construct... | null |
rustfs__rustfs__2484 | rustfs/rustfs | 2,484 | defect | b49570d87a578a7ce28b53593d5ef8b93c68e95f | 4afc1273ea760eb154a4de2e29fa9c5f8a90e38f | refactor(storage): drop ecfs test-only helper | ## Type of Change
- [ ] New Feature
- [ ] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [x] Refactor
- [ ] Test/CI
- [ ] Other:
## Related Issues
N/A
## Summary of Changes
- remove the `FS::normalize_delete_objects_version_id` test-only helper from `rustfs/src/storage/ecfs.rs`
- move the version-id norm... | diff --git a/rustfs/src/app/object_usecase.rs b/rustfs/src/app/object_usecase.rs
index c29ffd8b5e..e3b847ca51 100644
--- a/rustfs/src/app/object_usecase.rs
+++ b/rustfs/src/app/object_usecase.rs
@@ -3088,6 +3088,25 @@ mod tests {
assert_eq!(err.code(), &S3ErrorCode::InvalidStorageClass);
}
+ #[test]
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test name mentions handling \"empty values\" but never asserts the empty/whitespace-string behavior (trim + filter empty) of `normalize_delete_objects_version_id`; add `Some(\"\")` / `Some(\" \")` cases asserting `(None, None)` or rename the test to match what it covers.", "category": "tes... | null |
rustfs__rustfs__2485 | rustfs/rustfs | 2,485 | defect | 5e97377aa00cb79003d79416f254a3a01a54b738 | c9d4c3eb95facccaefba9f1d7e09ebe96e245706 | refactor(storage): inline object metadata read entrypoints | ## Type of Change
- [ ] New Feature
- [ ] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [ ] Test/CI
- [x] Refactor
- [ ] Other:
## Related Issues
N/A
## Summary of Changes
- inline `get_object_acl`, `get_object_legal_hold`, `get_object_retention`, and `get_object_tagging` into `rustfs/src/storage/ecfs.r... | diff --git a/rustfs/src/app/object_usecase.rs b/rustfs/src/app/object_usecase.rs
index 4054f2222a..75c0ba8729 100644
--- a/rustfs/src/app/object_usecase.rs
+++ b/rustfs/src/app/object_usecase.rs
@@ -36,7 +36,6 @@ use crate::storage::options::{
filter_object_metadata, get_content_sha256_with_query, get_opts, normal... | 7 | 6 | 3 | [{"id": "G0", "claim": "In get_object_legal_hold, get_object_info errors are always converted to InternalError, which masks expected S3 errors like NoSuchKey/NoSuchVersion (and possibly NoSuchBucket), so they should be mapped via ApiError::from (or by explicitly translating not-found/version-not-found cases) to return ... | null |
rustfs__rustfs__2486 | rustfs/rustfs | 2,486 | defect | 20e07519a175bf4125adfd5b2d2c652add192d98 | 9825ad0456868bcead3eab8b95cb8714ea9a5505 | refactor(storage): inline object tagging entrypoints | ## Type of Change
- [ ] New Feature
- [ ] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [ ] Test/CI
- [x] Refactor
- [ ] Other:
## Related Issues
N/A
## Summary of Changes
- Inline `put_object_tagging` and `delete_object_tagging` into `rustfs/src/storage/ecfs.rs` so the S3 entrypoints no longer bounce t... | diff --git a/rustfs/src/app/object_usecase.rs b/rustfs/src/app/object_usecase.rs
index 75c0ba8729..6a669d027d 100644
--- a/rustfs/src/app/object_usecase.rs
+++ b/rustfs/src/app/object_usecase.rs
@@ -46,7 +46,6 @@ use datafusion::arrow::{
use futures::StreamExt;
use http::{HeaderMap, HeaderValue, StatusCode};
use md5... | 2 | 2 | 1 | [{"id": "G0", "claim": "The newly inlined delete_object_tagging and put_object_tagging entrypoints do not call record_s3_op, so DeleteObjectTagging and PutObjectTagging calls are not reflected in the rustfs_s3_operations_total metric; record_s3_op should be called early in each handler, before any early returns.", "cat... | null |
rustfs__rustfs__2493 | rustfs/rustfs | 2,493 | defect | 11552eb722f1373395ed37c8076df5fc574122ed | 1508a92a906ac9a05aae489bb31317f01ce1861e | fix(storage): fix critical bug in range calculation | Hi,
While using rustfs locally as an s3 storage for my iceberg warehouse, I noticed that sometimes my requests using duckdb failed. Duckdb and other tools read the last 8 bytes of parquet files, as this format stores a metadata footer (end of the file).
While debugging the issue, I noticed that doing a Range: -8... | diff --git a/crates/e2e_test/src/range_request_test.rs b/crates/e2e_test/src/range_request_test.rs
index b5283129ca..df0f1f4ed0 100644
--- a/crates/e2e_test/src/range_request_test.rs
+++ b/crates/e2e_test/src/range_request_test.rs
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new `shard_length = till_offset - read_offset` computations (at read.rs:422 in build_reconstructed_part_stream and read.rs:1567 in SetDisks) can underflow and wrap on usize if invariants are violated, passing a huge length to create_bitrot_reader; use saturating_sub (or checked_sub with an e... | null |
rustfs__rustfs__2494 | rustfs/rustfs | 2,494 | defect | 11552eb722f1373395ed37c8076df5fc574122ed | 379ea9493bf7595f3774676c06062ee1341a9aa2 | refactor(storage): inline object lock config entrypoints | ## Type of Change
- [ ] New Feature
- [ ] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [ ] Test/CI
- [x] Refactor
- [ ] Other:
## Related Issues
N/A
## Summary of Changes
- Inline `get_object_lock_configuration` and `put_object_lock_configuration` into `rustfs/src/storage/ecfs.rs`
- Move Object Lock co... | diff --git a/rustfs/src/app/object_usecase.rs b/rustfs/src/app/object_usecase.rs
index 3408cb7e13..0dcc2079b0 100644
--- a/rustfs/src/app/object_usecase.rs
+++ b/rustfs/src/app/object_usecase.rs
@@ -54,7 +54,6 @@ use rustfs_ecstore::bucket::{
bucket_lifecycle_ops::{RestoreRequestOps, enqueue_transition_immedia... | 1 | 1 | 1 | [{"id": "G0", "claim": "get_object_lock_configuration treats any non-ConfigNotFound error from get_object_lock_config as InternalError without first verifying the bucket exists, so a nonexistent bucket gets an incorrect S3 response instead of NoSuchBucket; it should initialize the object layer and call store.get_bucket... | null |
rustfs__rustfs__2496 | rustfs/rustfs | 2,496 | defect | 6a2f98b4683782a201a9197e4fe857779f9784f3 | 4334a140842537d15a68e4b52626048832fe0b48 | fix(storage): align archive content-encoding with S3 semantics | ## Type of Change
- [ ] New Feature
- [x] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [x] Test/CI
- [ ] Refactor
- [ ] Other:
## Related Issues
- #2475
## Summary of Changes
- align archive `Content-Encoding` validation with S3/MinIO semantics by stripping `aws-chunk... | diff --git a/crates/e2e_test/src/archive_download_integrity_test.rs b/crates/e2e_test/src/archive_download_integrity_test.rs
index d5015e844d..4db6df2f70 100644
--- a/crates/e2e_test/src/archive_download_integrity_test.rs
+++ b/crates/e2e_test/src/archive_download_integrity_test.rs
@@ -15,6 +15,7 @@
#[cfg(test)]
mod ... | 3 | 3 | 0 | [{"id": "G0", "claim": "archive_content_encoding_strict_mode() logs the deprecation warning whenever RUSTFS_ALLOW_ARCHIVE_CONTENT_ENCODING is merely present, even when explicitly set to \"false\" (e.g. via Helm defaults), producing unexpected warning noise; consider warning only when the value is truthy or include the ... | null |
rustfs__rustfs__2501 | rustfs/rustfs | 2,501 | defect | 4ce374a181a0d189bf88fbbd972cf586ea494427 | 3dbc75cf8fbd09f28318a2dfe5329e08112a3308 | refactor(storage): inline acl entrypoints | ## Type of Change
- [ ] New Feature
- [ ] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [ ] Test/CI
- [x] Refactor
- [ ] Other:
## Related Issues
N/A
## Summary of Changes
- Inline `get_bucket_acl` and `put_bucket_acl` into `rustfs/src/storage/ecfs.rs`
- Inline `put_object_acl` into `rustfs/src/storage/... | diff --git a/rustfs/src/app/bucket_usecase.rs b/rustfs/src/app/bucket_usecase.rs
index ab90badca3..7d92ade6f6 100644
--- a/rustfs/src/app/bucket_usecase.rs
+++ b/rustfs/src/app/bucket_usecase.rs
@@ -23,7 +23,6 @@ use crate::error::ApiError;
use crate::server::RemoteAddr;
use crate::storage::access::{ReqInfo, authoriz... | 1 | 1 | 1 | [{"id": "G0", "claim": "The inlined put_bucket_acl does not call record_s3_op, so this S3 API entrypoint won't be counted in the rustfs_s3_operations_total metrics unlike other handlers; add record_s3_op(S3Operation::PutBucketAcl, &bucket) near the start of the method.", "category": "correctness", "verdict": "supported... | null |
rustfs__rustfs__2522 | rustfs/rustfs | 2,522 | defect | 315e8134eb4c9844ff479d30fb9852f7313a8c3a | 0136fa40061a5b0f5ee40278d7a3eb1f3f618731 | chore(lint): clippy rules needless_collect | <!--
Pull Request Template for RustFS
-->
## Type of Change
- [ ] New Feature
- [ ] Bug Fix
- [ ] Documentation
- [x] Performance Improvement
- [ ] Test/CI
- [ ] Refactor
- [x] Other: Clippy Rules
## Related Issues
<!-- List related Issue numbers, e.g. #123 -->
## Summary of Changes
<!-- Briefly des... | diff --git a/Cargo.toml b/Cargo.toml
index 6409d87d7e..ab13ffd93d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -74,6 +74,7 @@ unsafe_code = "deny"
[workspace.lints.clippy]
all = "warn"
+needless_collect = "warn"
[workspace.dependencies]
# RustFS Internal Crates
diff --git a/crates/targets/src/target/webhook.rs b... | 3 | 2 | 1 | [{"id": "G0", "claim": "Enabling clippy::needless_collect at workspace level will fail CI because the repo runs cargo clippy with -D warnings while needless_collect patterns still exist elsewhere in the workspace; the remaining occurrences should be fixed in this PR or the lint scoped/allowed until cleaned up.", "categ... | null |
rustfs__rustfs__2581 | rustfs/rustfs | 2,581 | defect | 38eb0781cf6fc12a735a90fdb23bfc4727460650 | a78ac82bdd953f92ed6a987c04480472ffbf8350 | fix(cache): wire trusted-proxy cache and remove stale cache traces | ## Type of Change
- [ ] New Feature
- [x] Bug Fix
- [x] Documentation
- [ ] Performance Improvement
- [ ] Test/CI
- [x] Refactor
- [ ] Other:
## Related Issues
N/A
## Summary of Changes
This PR cleans up stale cache-related traces and wires the trusted proxy cache into the real re... | diff --git a/crates/io-metrics/README_zh.md b/crates/io-metrics/README_zh.md
index 7ae4583039..b2baa09214 100644
--- a/crates/io-metrics/README_zh.md
+++ b/crates/io-metrics/README_zh.md
@@ -237,15 +237,6 @@ println!("最大并发读: {}", config.scheduler.max_concurrent_reads);
## 🔧 配置
-### 环境变量
-
-| 变量名 | 描述 | 默认值 |
-|--... | 2 | 2 | 1 | [{"id": "G0", "claim": "validate_request_internal falls back to 0.0.0.0:0 when peer_addr is missing and then uses that unspecified IP as the cache key, which can cause unrelated requests to share a cached trust decision for an unspecified address and in the worst case could incorrectly treat such traffic as trusted if ... | null |
rustfs__rustfs__2594 | rustfs/rustfs | 2,594 | defect | fb0d096d5dc17bd28996cd197522e9891dde70a2 | 1ad00115d7aca96db38c7b8ce8b750ab71b1ba1f | fix(scanner): stabilize data usage cache persistence under slow metadata I/O | ## Type of Change
- [ ] New Feature
- [x] Bug Fix
- [ ] Documentation
- [x] Performance Improvement
- [x] Test/CI
- [x] Refactor
- [ ] Other:
## Related Issues
- #2577
## Summary of Changes
This PR addresses repeated scanner errors after upgrade (`Failed to save data usage cache: deadline has elapsed`) b... | diff --git a/crates/scanner/src/data_usage_define.rs b/crates/scanner/src/data_usage_define.rs
index c5b2ca952e..9aff94f75c 100644
--- a/crates/scanner/src/data_usage_define.rs
+++ b/crates/scanner/src/data_usage_define.rs
@@ -17,13 +17,15 @@ use s3s::dto::BucketLifecycleConfiguration;
use serde::{Deserialize, Seriali... | 6 | 5 | 1 | [{"id": "G0", "claim": "A single cache-save failure gets logged twice — DataUsageCache::save logs the error internally and also returns it while its callers (e.g. persist_and_publish_cache_snapshot in scanner_io.rs) log it again — so the error should be logged only once overall.", "category": "maintainability", "verdic... | null |
rustfs__rustfs__2599 | rustfs/rustfs | 2,599 | defect | 1d1f00470d2773783b45bbc98dd75b3650fc74de | 868769943158dc42b299d5ee8329a4721a5ae3b6 | fix(replication): clean targets when deleting config | ## Type of Change
- [ ] New Feature
- [x] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [x] Test/CI
- [ ] Refactor
- [ ] Other:
## Related Issues
Closes #2591
## Summary of Changes
Deleting a bucket replication configuration removed the replication XML but left the referenced replication remote target i... | diff --git a/crates/e2e_test/src/replication_extension_test.rs b/crates/e2e_test/src/replication_extension_test.rs
index c41a82e64b..493dece367 100644
--- a/crates/e2e_test/src/replication_extension_test.rs
+++ b/crates/e2e_test/src/replication_extension_test.rs
@@ -190,6 +190,14 @@ async fn put_bucket_replication(
... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new flow deletes BUCKET_REPLICATION_CONFIG and only then runs remove_replication_targets_for_config, so if that cleanup hits a transient storage/serialization error the method returns an error even though the replication config is already gone, and it also skips the subsequent site-replicati... | null |
rustfs__rustfs__2619 | rustfs/rustfs | 2,619 | defect | 1511f9eacbd90062ca1e72c5c063a9d807d9ec2b | d7e1791d8511d1c6fe5268b13bff660ed740e1ce | refactor: update binary field types and conversions in RPC and protofiles |
- Changed binary fields in `UpdateMetadataRequest`, `WriteMetadataRequest`, `ReadVersionRequest`, and others from `Vec<u8>` to `Bytes` for better memory management.
- Updated related RPC implementations in `remote_disk.rs` and `disk.rs` to use `.into()` for conversions.
- Adjusted test cases to reflect the new bi... | diff --git a/crates/ecstore/src/rpc/remote_disk.rs b/crates/ecstore/src/rpc/remote_disk.rs
index 8c1990cad7..25db180672 100644
--- a/crates/ecstore/src/rpc/remote_disk.rs
+++ b/crates/ecstore/src/rpc/remote_disk.rs
@@ -897,7 +897,7 @@ impl DiskAPI for RemoteDisk {
volume: volume.to_string(),
... | 3 | 3 | 0 | [{"id": "G0", "claim": "In the two ReadMultipleResponse constructions in rustfs/src/storage/rpc/disk.rs, `read_multiple_resps_bin` (a `Vec<Bytes>`) is built as `Vec::new().into()`, a redundant conversion that can trigger `clippy::useless_conversion` warnings which workspace CI denies.", "category": "maintainability", "... | null |
rustfs__rustfs__2633 | rustfs/rustfs | 2,633 | defect | d4dcb2ac9ddd334d7c3a4864c1c0cc3f00f04c65 | 1d9ace91f64718acc6c3113aebd64ad436e686e7 | fix(lock): prevent stale distributed object locks | ## Type of Change
- [ ] New Feature
- [x] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [x] Test/CI
- [ ] Refactor
- [ ] Other:
## Related Issues
Fixes #2611
## Summary of Changes
- Preserve the request lock ID in the local lock client so remote lock holders can always be released by the ID known to the... | diff --git a/crates/e2e_test/src/reliant/grpc_lock_client.rs b/crates/e2e_test/src/reliant/grpc_lock_client.rs
index 1045dbf5ed..a0c621660e 100644
--- a/crates/e2e_test/src/reliant/grpc_lock_client.rs
+++ b/crates/e2e_test/src/reliant/grpc_lock_client.rs
@@ -120,11 +120,6 @@ impl LockClient for GrpcLockClient {
... | 3 | 3 | 2 | [{"id": "G0", "claim": "The quorum-rollback path awaits release_entries inline, and since release_entries now includes retry backoff sleeps, a lock acquisition failure can be delayed by up to the full retry window before returning to the caller; reviewer suggests making rollback release best-effort/async if that latenc... | null |
rustfs__rustfs__2648 | rustfs/rustfs | 2,648 | defect | fa1554be7ff3e5cd1bbd6f65c4ccc960739d6260 | e3829a5aa71dd9fe07384a21fe2aa8cefa3afe10 | fix: avoid sending HEAD bodies over TLS HTTP/2 | ## Type of Change
- [ ] New Feature
- [x] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [x] Test/CI
- [ ] Refactor
- [ ] Other:
## Related Issues
- #1426
## Summary of Changes
This PR fixes the TLS/HTTP2 regression reported in #1426 where RustFS could return a `404` for a missing object `HE... | diff --git a/crates/e2e_test/src/reliant/head_tls_bodyless_test.rs b/crates/e2e_test/src/reliant/head_tls_bodyless_test.rs
new file mode 100644
index 0000000000..98919388e8
--- /dev/null
+++ b/crates/e2e_test/src/reliant/head_tls_bodyless_test.rs
@@ -0,0 +1,203 @@
+// Copyright 2024 RustFS Team
+//
+// Licensed under t... | 7 | 3 | 2 | [{"id": "G0", "claim": "local_https_h2_client parses ca_pem into a Certificate but ignores it while setting danger_accept_invalid_certs(true), so the test does not actually validate the server certificate; use add_root_certificate and drop danger_accept_invalid_certs (or drop the unused CA plumbing).", "category": "tes... | null |
rustfs__rustfs__2662 | rustfs/rustfs | 2,662 | defect | 39f7de4450879b311539ec4ce2d228d8656ea63b | 18edc0f25c26ae7037c340c12c48725080a3bb4c | fix(admin): harden health readiness and add health response controls | <!--
Pull Request Template for RustFS
-->
## Type of Change
- [ ] New Feature
- [x] Bug Fix
- [ ] Documentation
- [x] Performance Improvement
- [x] Test/CI
- [ ] Refactor
- [ ] Other:
## Related Issues
- #2658
## Summary of Changes
This PR fixes readiness false-positives and adds operational control... | diff --git a/crates/config/src/constants/health.rs b/crates/config/src/constants/health.rs
new file mode 100644
index 0000000000..86fea1126d
--- /dev/null
+++ b/crates/config/src/constants/health.rs
@@ -0,0 +1,28 @@
+// Copyright 2024 RustFS Team
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+... | 9 | 5 | 5 | [{"id": "G0", "claim": "The PR description mentions a health response control RUSTFS_HEALTH_MINIMAL_RESPONSE_ENABLE (default false) that the constants module does not define, so either add the missing env constant/default and wire it into the health response builders or update the PR description to match what is implem... | null |
rustfs__rustfs__2674 | rustfs/rustfs | 2,674 | defect | 13b45002126f9a9bff48c08b4bf85a017ccc6bce | 13158b904fe70b3063864a34dbbf8de4d2fe279f | feat(trusted-proxies): add switchable simple and legacy modes | <!--
Pull Request Template for RustFS
-->
## Type of Change
- [x] New Feature
- [ ] Bug Fix
- [x] Documentation
- [ ] Performance Improvement
- [x] Test/CI
- [ ] Refactor
- [ ] Other:
## Related Issues
N/A
## Summary of Changes
Added `RUSTFS_TRUSTED_PROXY_IMPLEMENTATION` to switch the trusted-proxy ... | diff --git a/crates/config/src/constants/proxy.rs b/crates/config/src/constants/proxy.rs
index 09a367205b..647f19482f 100644
--- a/crates/config/src/constants/proxy.rs
+++ b/crates/config/src/constants/proxy.rs
@@ -20,6 +20,11 @@ pub const ENV_TRUSTED_PROXY_ENABLED: &str = "RUSTFS_TRUSTED_PROXY_ENABLED";
/// Trusted p... | 3 | 3 | 3 | [{"id": "G0", "claim": "is_enabled() uses the local parse_env_bool, which accepts fewer truthy/falsey values than rustfs_utils::get_env_bool used by the legacy path, so both implementations can interpret the env var differently (and in legacy mode this can lead to global::init() early-returning and global::layer() pani... | null |
rustfs__rustfs__2690 | rustfs/rustfs | 2,690 | defect | 37a3cbc497f4bdf64af1a16a93feeedffe136fe3 | 3cbf62790bd2093e843522e161010c172385f565 | feat: add console-managed audit and notify module switches | <!--
Pull Request Template for RustFS
-->
## Type of Change
- [x] New Feature
- [x] Refactor
- [ ] Bug Fix
- [ ] Documentation
- [ ] Performance Improvement
- [ ] Test/CI
- [ ] Other:
## Related Issues
- #2687
- #2608
## Summary of Changes
- add a new admin API for module switches:
- `GET /ru... | diff --git a/rustfs/src/admin/handlers/audit.rs b/rustfs/src/admin/handlers/audit.rs
index d13fa9a26c..806643373f 100644
--- a/rustfs/src/admin/handlers/audit.rs
+++ b/rustfs/src/admin/handlers/audit.rs
@@ -17,14 +17,14 @@ use crate::admin::{
handlers::target_descriptor::{
AdminTargetSpec, AdminTargetVali... | 3 | 3 | 3 | [{"id": "G0", "claim": "`refresh_persisted_module_switches_from_store` reads `MODULE_SWITCH_CONFIG_PATH` twice (via a second `new_object_layer_fn()` call) just to compute `configured`, which wastes I/O and can produce an inconsistent state if the first read succeeds but the second fails transiently: the atomics get the... | null |
rustfs__rustfs__2769 | rustfs/rustfs | 2,769 | defect | 08fab34804e3a167608fec89f0306bd4876edd54 | ad9ecdd5c756f5f07c99fd738dd1625a59e5c601 | security: same-origin console CORS, fail-closed helm creds, deny.toml, sample-config hardening | ## ⚠️ Breaking changes
Two changes in this PR are behavior-changing for existing users. Please flag if either should be split into its own PR or paired with a chart-major / app-minor version bump.
1. **Helm chart: `helm install` / `helm upgrade` with no overrides will start failing rendering.** The well-known `rustfs... | diff --git a/.docker/nginx/nginx.conf b/.docker/nginx/nginx.conf
index 2e574e04c9..88ff9f4183 100644
--- a/.docker/nginx/nginx.conf
+++ b/.docker/nginx/nginx.conf
@@ -74,6 +74,17 @@ http {
# ssl_certificate /etc/nginx/ssl/server.crt;
# ssl_certificate_key /etc/nginx/ssl/server.key;
#
+ # #... | 9 | 4 | 3 | [{"id": "G0", "claim": "When secret.allowInsecureDefaults=true, the helm template overwrites both keys with rustfsadmin whenever either key is empty, so a user who sets only one key silently gets the well-known default for the other instead of a hard error.", "category": "security", "verdict": "supported", "priority": ... | null |
rustfs__rustfs__2819 | rustfs/rustfs | 2,819 | defect | 090d60e00a27623b333b5803425a313dd87b18f4 | 8bed594943f1d5a4b2ad951a18e249e6f99c1d49 | fix: preserve data on self metadata copy | ## Summary
Fixes #2789.
When a same-key S3 `CopyObject` is used only to replace metadata (`MetadataDirective=REPLACE`), RustFS must update the object metadata without dropping the existing object data reference. This is the path used by tools such as rclone when only object metadata/mtime changes.
The previous metad... | diff --git a/crates/e2e_test/src/copy_object_metadata_test.rs b/crates/e2e_test/src/copy_object_metadata_test.rs
new file mode 100644
index 0000000000..43a24facb7
--- /dev/null
+++ b/crates/e2e_test/src/copy_object_metadata_test.rs
@@ -0,0 +1,100 @@
+// Copyright 2024 RustFS Team
+//
+// Licensed under the Apache Licen... | 1 | 1 | 1 | [{"id": "G0", "claim": "For a same-key CopyObject with MetadataDirective=REPLACE, the new update_object_meta path only merges fi.metadata into the existing xl meta and returns early when fi.metadata is empty, so user metadata keys omitted from the replacement set survive and a replacement with empty metadata cannot be ... | null |
rustfs__rustfs__2821 | rustfs/rustfs | 2,821 | defect | 090d60e00a27623b333b5803425a313dd87b18f4 | 3bc4fdc26ffff0f7f1542048ac31204569fa179b | refactor: unify credential env constants and deploy env usage | ## Related Issues
N/A
## Summary of Changes
- Removed duplicate credential env constants from `crates/ecstore/src/config/mod.rs` and kept canonical definitions in `rustfs-config`.
- Updated credential resolution paths to use `RUSTFS_ACCESS_KEY` and `RUSTFS_SECRET_KEY` directly in runtime config/snapshot code.
- Remove... | diff --git a/.docker/test/issue-2715/docker-compose-test.yml b/.docker/test/issue-2715/docker-compose-test.yml
new file mode 100644
index 0000000000..f19d7c3607
--- /dev/null
+++ b/.docker/test/issue-2715/docker-compose-test.yml
@@ -0,0 +1,52 @@
+services:
+ rustfs:
+ image: rustfs/rustfs:1.0.0-alpha.99-glibc
+ ... | 7 | 7 | 3 | [{"id": "G0", "claim": "Dropping the ROOT_*/MINIO_ROOT_* compatibility path means operators using those variables will silently fall back to default credentials; if that compatibility is still required, add an explicit mapping/alias so these variables populate RUSTFS_ACCESS_KEY/RUSTFS_SECRET_KEY (or restore deprecated ... | null |
rustfs__rustfs__2824 | rustfs/rustfs | 2,824 | defect | 3898d524fee2bf1b40cd5f57e4b3ab13da712c9b | 9bd0ffcf060285fff4c46077593e2606be5532de | fix(object-lock): materialize default retention metadata | ## Related Issues
Fixes #1734.
## Summary of Changes
- Materialize bucket default Object Lock retention into object metadata for PutObject, CreateMultipartUpload, CopyObject, and archive extract writes when no explicit retention is supplied.
- Reject put-like writes that provide only one Object Lock retention header, ... | diff --git a/crates/e2e_test/src/object_lock/object_lock_test.rs b/crates/e2e_test/src/object_lock/object_lock_test.rs
index 199ffb9d54..015a62497d 100644
--- a/crates/e2e_test/src/object_lock/object_lock_test.rs
+++ b/crates/e2e_test/src/object_lock/object_lock_test.rs
@@ -26,10 +26,12 @@
use super::common::*;
use... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new error string is duplicated (a matching string exists in crates/ecstore/src/bucket/object_lock/objectlock.rs); consider centralizing it (e.g., a shared constant) to avoid future drift between Object Lock validation paths.", "category": "maintainability", "verdict": "supported", "priority"... | null |
rustfs__rustfs__2835 | rustfs/rustfs | 2,835 | defect | 9f07029373af3c989bb26ac98a7df2c086b37c5c | 724b0ef3e23883c6d1d99705c7674079b23ad74e | fix(security): document unsafe and TLS overrides | ## Related Issues
Fixes #2770
## Summary of Changes
- Narrowed selected unsafe_code allowances and added nearby SAFETY documentation for audited unsafe call sites.
- Added a CI and pre-commit check that fails when new unsafe_code allowances lack nearby SAFETY comments.
- Added warnings when Keystone or Object Lambda w... | diff --git a/.config/make/lint-fmt.mak b/.config/make/lint-fmt.mak
index 88742c97fe..a342d1522f 100644
--- a/.config/make/lint-fmt.mak
+++ b/.config/make/lint-fmt.mak
@@ -16,6 +16,11 @@ clippy-check: core-deps ## Run clippy checks
cargo clippy --fix --allow-dirty
cargo clippy --all-targets --all-features -- -D warn... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new CI gate only scans the exact single-lint form `#[allow(unsafe_code)]`/`#![allow(unsafe_code)]`, so a valid combined attribute such as `#[allow(dead_code, unsafe_code)]` is never inspected and an allowance can be added without any nearby `SAFETY:` documentation; the script should match an... | null |
rustgd__collision-rs__42 | rustgd/collision-rs | 42 | defect | 174f1e7f19f6c70c469a052cf1a4f4c81ceeced8 | 89d8639ebb9506c60c0d67beef2018872ef7718d | Adding broad phase collision detection algorithms | Two algorithms for now:
- Brute force - does bounding box intersection tests for all shape pairs in the given world
- Sweep and prune - See the documentation for more information. | diff --git a/Cargo.toml b/Cargo.toml
index 26a3e2b..b3ce2c6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -42,4 +42,5 @@ serde_derive = { version = "1.0", optional = true }
bit-set = "0.4"
[dev-dependencies]
-genmesh = "*"
\ No newline at end of file
+genmesh = "*"
+
diff --git a/benches/polyhedron.rs b/benches/polyh... | 6 | 6 | 4 | [{"id": "G0", "claim": "The module directory should be named `broad_phase.rs`/`broad_phase` rather than `broadphase`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`BruteForce::find_collider_pairs` should return pairs of indices into the shapes... | null |
rusticata__der-parser__12 | rusticata/der-parser | 12 | defect | ac7a41446de443fd33700b5a2bfc556931361f9c | acbcffdf86ca1e099c9d3ad07ca8f264d9e031df | Handle BER/DER tags that are longer than one byte. | X.690 8.1.2 describes the encoding rules for tags including those that are
greater than (decimal) 30. The current code supports the format for values
up to 30 but mistakenly uses 31 (0x1f) as an "unknown" tag value in tests
while encoding it incorrectly and fails to support larger tags.
This change fixes both of ... | diff --git a/src/ber/ber.rs b/src/ber/ber.rs
index 0b6874b..4db3b44 100644
--- a/src/ber/ber.rs
+++ b/src/ber/ber.rs
@@ -8,7 +8,7 @@ use oid::Oid;
/// Defined in X.680 section 8.4
#[derive(Clone, Copy, PartialEq, Eq)]
-pub struct BerTag(pub u8);
+pub struct BerTag(pub u32);
newtype_enum!{
impl debug BerTag {
di... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the new long-tag loop, tag_byte_count is not bounds-checked before i[tag_byte_count] is read and the left shift can overflow u32, so malformed input could panic or wrap; the reviewer asks for both to be guarded (e.g. with error_if! checks) so the crate stays panic-free.", "category": "correct... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.