# cargo-to-dep-graph

> A small library that converts Cargo files (a `cargo.toml` and its respective `cargo.lock`) into a [dependency graph](https://www.npmjs.com/package/@snyk/dep-graph)

Latest version **1.2.0** (published 2022-07-04) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install cargo-to-dep-graph
pnpm add cargo-to-dep-graph
yarn add cargo-to-dep-graph
bun add cargo-to-dep-graph
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2022-07-04 |
| First published | 2022-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rob Cresswell |
| Maintainers | robcresswell |

## Links

- npm: https://www.npmjs.com/package/cargo-to-dep-graph
- Repository: https://github.com/robcresswell/cargo-to-dep-graph
- Issues: https://github.com/robcresswell/cargo-to-dep-graph/issues
- npm.io page: https://npm.io/package/cargo-to-dep-graph

## Dependencies (3)

- [@iarna/toml](https://npm.io/package/@iarna/toml.md) ^2.2.5
- [@snyk/dep-graph](https://npm.io/package/@snyk/dep-graph.md) ^2.3.0
- [event-loop-spinner](https://npm.io/package/event-loop-spinner.md) ^2.2.0

## Recent versions

- 1.2.0 (latest) — 2022-07-04
- 1.1.1 — 2022-01-27
- 1.1.0 — 2022-01-27

## README

# cargo-to-dep-graph

A small library that converts Cargo files (a `cargo.toml` and its respective
`cargo.lock`) into a
[dependency graph](https://www.npmjs.com/package/@snyk/dep-graph)

## Getting started

```console
npm i cargo-to-dep-graph
```

```ts
import { cargoToDepGraph } from 'cargo-to-dep-graph';

const depGraph = await cargoToDepGraph(
  'cargo.toml file contents',
  'cargo.lock file contents',
);
```

---
_Source: https://npm.io/package/cargo-to-dep-graph · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
