Rust (Beta)

Configuration - .deepsource.toml

This section covers configuration specific to the rust analyzer. Please make sure you read the general configuration guide first.

name

  • Type: String
  • Presence: mandatory
  • Description: Shortcode of the analyzer.
  • Example:
name = "rust"

enabled

  • Type: Boolean
  • Presence: mandatory
  • Description: Toggle whether this analyzer should be run.
  • Example:
enabled = true

meta

  • Type: Table
  • Presence: optional
  • Description: Any supported metadata to pass to the analyzer.
  • Example:
[analyzers.meta]
  msrv = "1.25.0"

msrv

  • Type: String
  • Presence: optional
  • Description: Minimum supported Rust version that your project builds against
  • Default Value: "1.30.0"
  • Example:
msrv = "1.58.1"

Sample config

version = 1

test_patterns = [
  "tests/**"
]

exclude_patterns = [
  "**/examples/**"
]

[[analyzers]]
name = "rust"
enabled = true

  [analyzers.meta]
  msrv = "1.30.0"
We currently support Rust 1.25.0 and above.