crates.io / serde_with / 3.25.0

serde_with 3.25.0

Source
https://github.com/jonasbb/serde_with
Tag scanned
v3.25.0
Directory
serde_with (only this part of the repository was scanned)
Compared with
v3.24.0 (0 signals introduced since)
Files
84 scanned, 85 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 6 info
Scan time
5.0 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 5 of 5 warn and critical signals; 5 demoted to info.
Disclude version
4.3.0
Scanned (UTC)
2026-11-20 09:28

Signals

Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.

  1. info proc-macro-presence serde_with/src/guide/serde_as.md:289:1

    [embedded rust] proc-macro attribute `#[proc_macro]` present (ast pass, confidence 0.95)

    
    #[proc_macro]
    pub fn define_some_type(_item: TokenStream) -> TokenStream {
        let def = quote! {
  2. info warn → info by review encoding-base64 serde_with/tests/base58.rs:64:22

    base64-like blob (67 bytes, compression ratio 1.16) (raw pass, confidence 0.60)

            B58Standard(bytes.to_vec()),
            expect![[r#""J7k4TCzq3PosUrUEF8e6YEeDpsCLXAibdXjiLDeSvLUFV2KDwjzWsCeWG8EQtGuBJYf""#]],
        );
    likely benign LLM, confidence 0.95 Test assertion comparing a Standard base58 encoding of a byte vector against an expected string.
    Reasoning

    The snippet is an expect! assertion holding a base58-encoded expected output for a bytes-to-base58 test case. The raw pass flagged a 67-byte base58 string as base64-like, but base58 is a different alphabet that also looks high-entropy. The file is a test suite for a base58 library, so this is a legitimate test vector.

  3. info warn → info by review encoding-base64 serde_with/tests/base58.rs:73:22

    base64-like blob (67 bytes, compression ratio 1.16) (raw pass, confidence 0.60)

            B58Bitcoin(bytes.to_vec()),
            expect![[r#""J7k4TCzq3PosUrUEF8e6YEeDpsCLXAibdXjiLDeSvLUFV2KDwjzWsCeWG8EQtGuBJYf""#]],
        );
    likely benign LLM, confidence 0.95 Test assertion checking the Bitcoin base58 encoding of a byte vector.
    Reasoning

    Same pattern as the other base58 test cases: an expect! macro checks the Bitcoin-alphabet base58 encoding of a fixed byte vector. The raw base64 heuristic fires on the base58 string, a false positive in a library test file.

  4. info warn → info by review encoding-base64 serde_with/tests/base58.rs:82:22

    base64-like blob (67 bytes, compression ratio 1.16) (raw pass, confidence 0.60)

            B58Flickr(bytes.to_vec()),
            expect![[r#""i7K4scZQ3oNStRtef8D6xeDdPSckwaHACwJHkdDrVktfu2jdWJZvScDvg8epTgUbixE""#]],
        );
    likely benign LLM, confidence 0.95 Test assertion checking the Flickr base58 encoding of a byte vector.
    Reasoning

    Expected-output string for the Flickr base58 alphabet variant inside a test assertion. It is a known-answer test vector, and the raw pass mistakes the base58 text for a base64 blob.

  5. info warn → info by review encoding-base64 serde_with/tests/base58.rs:91:22

    base64-like blob (67 bytes, compression ratio 1.16) (raw pass, confidence 0.60)

            B58Monero(bytes.to_vec()),
            expect![[r#""J7k4TCzq3PosUrUEF8e6YEeDpsCLXAibdXjiLDeSvLUFV2KDwjzWsCeWG8EQtGuBJYf""#]],
        );
    likely benign LLM, confidence 0.95 Test assertion checking the Monero base58 encoding of a byte vector.
    Reasoning

    A Monero base58 known-answer test in a base58 library's test suite. The encoded string is test data, not an encoded payload or dropper, and the file context is clearly a test.

  6. info warn → info by review encoding-base64 serde_with/tests/base58.rs:100:22

    base64-like blob (67 bytes, compression ratio 1.16) (raw pass, confidence 0.60)

            B58Ripple(bytes.to_vec()),
            expect![[r#""JfkhTUzqsPo17i7NE3eaYNeDF1ULXw5bdXj5LDeSvL7EVpKDAjzW1UeWG3NQtGuBJYC""#]],
        );
    }
    likely benign LLM, confidence 0.95 Test assertion checking the Ripple base58 encoding of a byte vector.
    Reasoning

    Ripple base58 expected-output string in an expect! test assertion. This is test vector data for a encoding variant, and the raw-pass base64 heuristic is a false positive on it.

Reproduce This Scan

Run disclude locally to verify. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.

cargo install disclude --version 4.3.0
git clone https://github.com/jonasbb/serde_with serde_with && cd serde_with
git checkout v3.25.0
disclude scan --untrusted --severity info --diff v3.24.0 serde_with