rustdoc-include 0.1.2

A utility for importing external Markdown files into `*.rs` file as doc comments.
{
  // See https://go.microsoft.com/fwlink/?LinkId=733558
  // for the documentation about the tasks.json format
  "version": "2.0.0",
  "options": {
    "env": {
      // "RUST_BACKTRACE": "1",
      // "RUSTFLAGS": "--cfg procmacro2_semver_exempt",
      // "CARGO_TARGET_DIR": "Z:/temporary/target_dirs/${workspaceFolderBasename}/target/",
    },
  },
  "presentation": {
    "panel": "dedicated",
    "clear": true,
  },
  "tasks": [
    {
      // Needed for run (F5)
      "type": "shell",
      "label": "cargo build",
      "command": "cargo",
      "args": [
        "build"
      ],
      "problemMatcher": [
        "$rustc"
      ],
    },
    {
      "type": "shell",
      "label": "cargo test",
      "command": "cargo",
      "args": [
        "test"
      ],
      "problemMatcher": [
        "$rustc"
      ],
      "group": {
        "kind": "build",
        "isDefault": true
      },
    },
    {
      "type": "shell",
      "label": "cargo watch test",
      "command": "wt",
      "args": [
        "new-tab",
        "cargo-watch",
        "-c",
        "-x",
        "test"
      ],
      "problemMatcher": [],
    },
    {
      "type": "shell",
      "label": "cargo watch run",
      "command": "wt",
      "args": [
        "new-tab",
        "cargo-watch",
        "-c",
        "-x",
        "run",
      ],
      "problemMatcher": [],
    },
    {
      "type": "shell",
      "label": "cargo run exmaple",
      "command": "cargo",
      "args": [
        "run",
        "--example",
        "${fileBasenameNoExtension}"
      ],
      "problemMatcher": [
        "$rustc"
      ],
    },
    {
      "type": "shell",
      "label": "cargo doc open",
      "command": "cargo",
      "args": [
        "doc",
        "--open",
        "--no-deps",
        "--all-features"
      ],
      "problemMatcher": [
        "$rustc"
      ],
    },
    {
      "type": "shell",
      "label": "cargo clippy",
      "command": "cargo",
      "args": [
        "clippy",
        "--all-features",
        "--tests",
        "--bin",
        "rustdoc-include",
        "--",
        "-W",
        "clippy::all"
      ],
      "problemMatcher": [
        "$rustc"
      ],
    },
    {
      "type": "shell",
      "label": "cargo fix & fmt",
      "command": "cargo fix && cargo clippy --fix --allow-dirty && cargo fmt",
      "problemMatcher": [
        "$rustc"
      ],
    },
    {
      "type": "shell",
      "label": "cargo bench",
      "command": "cargo",
      "args": [
        "bench"
      ],
      "options": {
        "cwd": "${workspaceFolder}/benchmarks"
      },
      "problemMatcher": [
        "$rustc"
      ],
    },
    {
      "type": "shell",
      "label": "cargo update minimal-versions",
      "command": "cargo",
      "args": [
        "+nightly",
        "update",
        "-Z",
        "minimal-versions"
      ],
      "problemMatcher": [
        "$rustc"
      ],
    },
    {
      "type": "shell",
      "label": "update compile error",
      "command": "cargo",
      "args": [
        "test",
        "--test",
        "compile_fail",
        "--",
        "--ignored"
      ],
      "problemMatcher": [
        "$rustc"
      ],
      "options": {
        "env": {
          "TRYBUILD": "overwrite",
        }
      }
    },
  ],
}