<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/introducing-function-level-reachability-for-rust-lmwjila3j" -->

---
title: Introducing Function-Level Reachability for Rust | daily.dev
description: Socket launched function-level reachability analysis for Rust that traces call paths from your code through dependencies, generated code and the standard...
canonical: https://daily.dev/posts/introducing-function-level-reachability-for-rust-lmwjila3j
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Introducing Function-Level Reachability for Rust | daily.dev
og:description: Socket launched function-level reachability analysis for Rust that traces call paths from your code through dependencies, generated code and the standard...
og:url: https://daily.dev/posts/introducing-function-level-reachability-for-rust-lmwjila3j
og:image: https://api.daily.dev/og/posts/lMwJila3j.png
og:image:alt: Introducing Function-Level Reachability for Rust
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introducing Function-Level Reachability for Rust

**[Socket](https://daily.dev/sources/socketdev)** · 7 min read · 5 upvotes · 1 comments

## Summary

Socket launched function-level reachability analysis for Rust that traces call paths from your code through dependencies, generated code and the standard library to individual vulnerable functions. It is build-aware: it accounts for the toolchain, Cargo features and target platform, runs build scripts and expands procedural macros. In validation against Rust test suites, it found 99.6% of executed functions and 99.6% of observed calls. Skipping generated code missed a median of 21% of reachable dependency functions. It supports Rust 1.74 and newer, and customers already using full application reachability for Rust get it with no configuration changes.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://socket.dev/blog/rust-function-level-reachability>

## Questions this post answers

### How can a static analyzer tell whether a vulnerable Rust dependency function is actually reachable when the call comes from derive-generated code?

It has to run build scripts and expand procedural macros, since derives can generate calls into dependencies that never appear in source. In a test across 43 open source Rust applications, skipping generated code missed a median of 21% of reachable dependency functions, and four applications showed no reachable dependency functions at all.

_Developers triaging Rust dependency CVEs follow this kind of security tooling on daily.dev._

### Why can two Rust apps using the same vulnerable time crate version have different CVE reachability results?

Reachability depends on which parser the code path actually hits. Using serde's time::serde::rfc2822 reaches the vulnerable RFC 2822 parser, while switching to time::serde::rfc3339 does not, even though both call OffsetDateTime::parse. A one-line change flipped the CVE-2026-25727 result between reachable and not reachable.

_Anyone deciding which Rust advisories deserve urgent fixes can keep up on daily.dev._

### How do I build a Rust call graph analyzer that works across many compiler versions instead of one nightly?

Avoid compiler-internal APIs, which tie tools to a specific nightly release. Socket instead adapted rust-analyzer, writing its own lowering of the source-level representation, standard library models checked against Rust 1.74 through 1.100, and over 30 fixes to type inference, trait solving and macro handling. Its analysis supports Rust 1.74 and newer.

_Engineers building Rust tooling can follow static analysis work like this on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@pdfopsdev** · 0 upvotes

> the proc-macro expansion step is the part that usually breaks these tools. most reachability scanners just skip anything behind a macro and call it unreachable, so that 21% miss rate on generated code tracks with what I've seen elsewhere.

## Similar posts on daily.dev

- [Introducing Reachability for PHP](https://daily.dev/posts/introducing-reachability-for-php-ihrgyb73d) · Socket · 33 upvotes · 0 comments
- [Rust Support in Socket Is Now Generally Available](https://daily.dev/posts/rust-support-in-socket-is-now-generally-available-o8w5fyqys) · Socket · 24 upvotes · 0 comments
- [Predict What a Code Change Breaks, with a Rust Call Graph and AI](https://daily.dev/posts/predict-what-a-code-change-breaks-with-a-rust-call-graph-and-ai-wp7xur8iu) · Medium · 3 upvotes · 0 comments
- [Callgraph analysis](https://daily.dev/posts/callgraph-analysis-eufsryslz) · Ferrous Systems · 2 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#rust](https://daily.dev/tags/rust)

[View this post on daily.dev](https://daily.dev/posts/introducing-function-level-reachability-for-rust-lmwjila3j)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Introducing Function-Level Reachability for Rust","url":"https://daily.dev/posts/introducing-function-level-reachability-for-rust-lmwjila3j","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/introducing-function-level-reachability-for-rust-lmwjila3j"},"datePublished":"2026-11-30T15:20:45.882Z","dateModified":"2026-11-30T22:44:39.343Z","description":"Socket launched function-level reachability analysis for Rust that traces call paths from your code through dependencies, generated code and the standard...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/dadf21864a6c70038e081f8b55365f22?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/dadf21864a6c70038e081f8b55365f22?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Socket","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Socket","logo":"https://media.daily.dev/image/upload/s---oEn9czC--/f_auto/v1716187892/logos/socketdev","url":"https://daily.dev/sources/socketdev"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/introducing-function-level-reachability-for-rust-lmwjila3j","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"security,rust","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Socket","item":"https://daily.dev/sources/socketdev"},{"@type":"ListItem","position":3,"name":"Introducing Function-Level Reachability for Rust"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/introducing-function-level-reachability-for-rust-lmwjila3j","comment":[{"@type":"Comment","text":"the proc-macro expansion step is the part that usually breaks these tools. most reachability scanners just skip anything behind a macro and call it unreachable, so that 21% miss rate on generated code tracks with what I’ve seen elsewhere.","datePublished":"2026-11-30T18:01:10.672Z","url":"https://daily.dev/posts/lMwJila3j#c-pNDF7Kcb5","author":{"@type":"Person","name":"PDFops","url":"https://daily.dev/pdfopsdev","image":"https://media.daily.dev/image/upload/s---8isRBKc--/f_auto/v1782922291/avatars/avatar_orjMeK8QKaaVZwGq7ScPz?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/introducing-function-level-reachability-for-rust-lmwjila3j#faq","mainEntity":[{"@type":"Question","name":"How can a static analyzer tell whether a vulnerable Rust dependency function is actually reachable when the call comes from derive-generated code?","acceptedAnswer":{"@type":"Answer","text":"It has to run build scripts and expand procedural macros, since derives can generate calls into dependencies that never appear in source. In a test across 43 open source Rust applications, skipping generated code missed a median of 21% of reachable dependency functions, and four applications showed no reachable dependency functions at all. Developers triaging Rust dependency CVEs follow this kind of security tooling on daily.dev."}},{"@type":"Question","name":"Why can two Rust apps using the same vulnerable time crate version have different CVE reachability results?","acceptedAnswer":{"@type":"Answer","text":"Reachability depends on which parser the code path actually hits. Using serde's time::serde::rfc2822 reaches the vulnerable RFC 2822 parser, while switching to time::serde::rfc3339 does not, even though both call OffsetDateTime::parse. A one-line change flipped the CVE-2026-25727 result between reachable and not reachable. Anyone deciding which Rust advisories deserve urgent fixes can keep up on daily.dev."}},{"@type":"Question","name":"How do I build a Rust call graph analyzer that works across many compiler versions instead of one nightly?","acceptedAnswer":{"@type":"Answer","text":"Avoid compiler-internal APIs, which tie tools to a specific nightly release. Socket instead adapted rust-analyzer, writing its own lowering of the source-level representation, standard library models checked against Rust 1.74 through 1.100, and over 30 fixes to type inference, trait solving and macro handling. Its analysis supports Rust 1.74 and newer. Engineers building Rust tooling can follow static analysis work like this on daily.dev."}}]}
```

